Init
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
#pragma once
|
||||
#include "soc/gpio_num.h"
|
||||
|
||||
#define WS2812_PIN GPIO_NUM_21
|
||||
#define BUTTON_BACK GPIO_NUM_0
|
||||
|
||||
#define LCD_BACKLIGHT_AND_RGB_POWER GPIO_NUM_38
|
||||
#define LCD_RESET GPIO_NUM_33
|
||||
#define LCD_RS GPIO_NUM_34
|
||||
#define LCD_DAT GPIO_NUM_35
|
||||
#define LCD_SCK GPIO_NUM_36
|
||||
#define LCD_CS GPIO_NUM_37
|
||||
|
||||
#define BUS_I2C_SDA GPIO_NUM_8
|
||||
#define BUS_I2C_SCL GPIO_NUM_9
|
||||
|
||||
// audio ic is an es8311
|
||||
// class d pa(not controlled) is ns415db
|
||||
#define AUDIO_SCLK GPIO_NUM_41
|
||||
#define AUDIO_ASDOUT GPIO_NUM_46
|
||||
#define AUDIO_LRCK GPIO_NUM_43
|
||||
#define AUDIO_DSDIN GPIO_NUM_42
|
||||
|
||||
// imu is bmi270
|
||||
#define IMU_I2C_ADDRESS 0x69
|
||||
// the keyboard is tca8418
|
||||
#define KEYBOARD_I2C_ADDRESS 0x34
|
||||
#define ES8311_I2C_ADDR 0x18
|
||||
#define KEYBOARD_INT GPIO_NUM_11
|
||||
// uses the i2c bus
|
||||
|
||||
#define IR_LED GPIO_NUM_44
|
||||
|
||||
#define BATTERY_ADC GPIO_NUM_10
|
||||
|
||||
#define MICROSD_CS GPIO_NUM_12
|
||||
#define MICROSD_MOSI GPIO_NUM_14
|
||||
#define MICROSD_CLK GPIO_NUM_40
|
||||
#define MICROSD_MISO GPIO_NUM_39
|
||||
|
||||
#define SIDE_PORT_A GPIO_NUM_1
|
||||
#define SIDE_PORT_B GPIO_NUM_2
|
||||
|
||||
#define HEADER_RESET GPIO_NUM_3
|
||||
#define HEADER_INT GPIO_NUM_4
|
||||
#define HEADER_BUSY GPIO_NUM_6
|
||||
/*
|
||||
#define HEADER_SCK GPIO_NUM_40
|
||||
#define HEADER_MOSI GPIO_NUM_14
|
||||
#define HEADER_MISO GPIO_NUM_39
|
||||
*/
|
||||
#define HEADER_CS GPIO_NUM_5
|
||||
// also has i2c bus
|
||||
#define HEADER_UART_RX GPIO_NUM_13
|
||||
#define HEADER_UART_TX GPIO_NUM_15
|
||||
|
||||
void set_pin_dirs();
|
||||
Reference in New Issue
Block a user