-
Notifications
You must be signed in to change notification settings - Fork 0
/
pin_config-keyestudio-ESP32.h
50 lines (27 loc) · 1.75 KB
/
pin_config-keyestudio-ESP32.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
#pragma once
// KEYESTUDIO-ESP32 *******************************************************************************
//#define PIN_LCD_RES NOT_USED // NOTE : Can be assigned in tcmenu designer.
//#define PIN_LCD_BL NOT_USED // NOTE : Can be assigned in tcmenu designer.
// BOOT 0 // IO00 - 2-button DOWN test. Many boards use a button marked “Flash” “BOOT” that pulls GPIO0 low when pressed.
//#define PIN_ENCODE_BTN 26 // NOTE : Assigned in tcmenu designer. Also used for BOOT button on board.
//#define PIN_SERIAL0_TX 1
//#define PIN_DEBUG_LED 2 // Monorail SmartCar
//#define PIN_DEBUG_LED 5 // ESP32-WROOM-32 keystudio bare breadboard module
//#define PIN_ENCODE_B 14 // NOTE : Assigned in tcmenu designer.
//#define PIN_SERIAL1_RX 16
//#define PIN_SERIAL1_TX 17
#define PIN_SERIAL2_TX 16
#define PIN_SERIAL2_RX 17
//#define PIN_LCD_CLK 18 // NOTE : Assigned in tcmenu designer.
// 2-button UP test 19
#define PIN_DEBUG_LED 19
//#define PIN_SERIAL0_RX 21
//#define PIN_LCD_DC 21 // NOTE : Assigned in tcmenu designer.
//#define PIN_LCD_CS 22 // NOTE : Assigned in tcmenu designer.
//#define PIN_LCD_MOSI 23 // NOTE : Assigned in tcmenu designer. SPI DATA
//#define PIN_ENCODE_A 27 // NOTE : Assigned in tcmenu designer.
//#define MYSERIAL0_BEGIN Serial0.begin(BAUD_SERIAL0, SERIAL_8N1, PIN_SERIAL0_RX, PIN_SERIAL0_TX);
//#define MYSERIAL1_BEGIN Serial1.begin(BAUD_SERIAL1, SERIAL_8N1, PIN_SERIAL1_RX, PIN_SERIAL1_TX);
#define MYSERIAL2_BEGIN Serial2.begin(BAUD_SERIAL2, SERIAL_8N1, PIN_SERIAL2_RX, PIN_SERIAL2_TX);
// KEYESTUDIO-ESP32 *******************************************************************************
// END_OF_FILE