main: better document GPIO connections
This commit is contained in:
parent
7d8a98d0ea
commit
d823f18526
13
main/main.c
13
main/main.c
|
@ -30,18 +30,13 @@
|
|||
// GPIO for on-board LED (WEMOS S2 mini, source on)
|
||||
#define LED_BOARD 15
|
||||
|
||||
/* GM1352 test pads:
|
||||
* - CS: LCD chip select, to start data communication
|
||||
* - DATA: LCD data bits
|
||||
* - WR: LCD data clock (not periodic)
|
||||
* - S: ??? (low)
|
||||
* - 1: HOLD button (press low)
|
||||
* - 2: MIN/MAX button (press low)
|
||||
* - 3: POWER button (press low)
|
||||
*/
|
||||
// connect GPIO to test pad 3
|
||||
#define GPIO_POWER (16U)
|
||||
// connect GPIO to test pad DATA
|
||||
#define GPIO_MOSI (18U)
|
||||
// connect GPIO to test pad WR
|
||||
#define GPIO_SCLK (35U)
|
||||
// connect GPIO to test pad CS
|
||||
#define GPIO_CS (33U)
|
||||
|
||||
static const char *TAG = "main";
|
||||
|
|
Loading…
Reference in New Issue