-
Notifications
You must be signed in to change notification settings - Fork 0
/
pins.h
58 lines (47 loc) · 1.3 KB
/
pins.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
From Kconfig
LCD D0 - D7: 10, 11, 12, 13, 14, 21, 47, 48
LCD CS 3
LCD DC 46
LCD WR 9
#define I2C_SCL 7
#define I2C_SDA 6
// MOSI -1
// MISO -1
// RESET -1
// SCLK -1
// TOUCH CS -1
// TOUCH IRQ 38
*/
#define TOUCH_IRQ GPIO_NUM_38
#define I2C_MASTER_NUM I2C_NUM_0
#define I2C_0_SCL GPIO_NUM_40
#define I2C_0_SDA GPIO_NUM_39
#define BACKLITE_PIN GPIO_NUM_45
#define USE_RMT -1
#if CONFIG_ESP_CONSOLE_UART_NUM == 0
#define FLYSKY_UART_PORT USE_RMT
#define EXTMOD_UART_PORT UART_NUM_1
#define INTMOD_UART_PORT UART_NUM_2
#else
#define FLYSKY_UART_PORT UART_NUM_0
#define EXTMOD_UART_PORT UART_NUM_1
#define INTMOD_UART_PORT UART_NUM_2
#endif
#define FLYSKY_UART_RX_PIN GPIO_NUM_41 // GIMBLE_TX
#define FLYSKY_UART_TX_PIN GPIO_NUM_42 // GIMBLE_RX
#define INTMOD_ESP_UART_TX GPIO_NUM_2 // INTMOD_RX
#define INTMOD_ESP_UART_RX GPIO_NUM_1 // INTMOD_TX
#define EXTMOD_UART_TX GPIO_NUM_15 // EXTMOD_RX
#define EXTMOD_UART_RX GPIO_NUM_8 // EXTMOD_TX
#define SD_DEDICATED_SPI
#ifdef SD_DEDICATED_SPI
#define SD_SPI_HOST SPI2_HOST
#define SDSPI_CLK GPIO_NUM_5
#define SDSPI_MOSI GPIO_NUM_6
#define SDSPI_MISO GPIO_NUM_4
#endif
#define SDCARD_CS_GPIO GPIO_NUM_7
#define I2S_DOUT GPIO_NUM_16
#define I2S_BCLK GPIO_NUM_17
#define I2S_LRCLK GPIO_NUM_18