forked from dirkx/makerspaceleiden-payment-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpins_ttgo.h
22 lines (18 loc) · 849 Bytes
/
pins_ttgo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// TTGO boards
// Manual config:
// Once TFT_eSPI is installed - it needs to be configured to select the right board.
// Go to .../Arduino/library/TFT_eSPI and open the file "User_Setup_Select.h".
// Uncomment the line with that says:
// // #include <User_Setups/Setup25_TTGO_T_Display.h> // Setup file for ESP32 and TTGO T-Display ST7789V SPI bus TFT
// and chagne it to:
// #include <User_Setups/Setup25_TTGO_T_Display.h> // Setup file for ESP32 and TTGO T-Display ST7789V SPI bus TFT
// i.e. remove the first two // characters. Then save it again in the same place.
//
#define BUTTON_1 35
#define BUTTON_2 0
#define RFID_CS 12 // SDA on board, SS in library
#define RFID_SCLK 13
#define RFID_MOSI 15
#define RFID_MISO 02
#define RFID_RESET 21
#define TFT_ROTATION 1