Skip to content

Commit 0bfa6fe

Browse files
authored
Add variant for Waveshare ESP32 board.
Variant for https://www.waveshare.com/wiki/ESP32-S3-Touch-LCD-1.28
1 parent 0a26a8c commit 0bfa6fe

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#include <stdint.h>
5+
6+
#define USB_VID 0x1A86
7+
#define USB_PID 0x55D3
8+
#define USB_MANUFACTURER "Waveshare"
9+
#define USB_PRODUCT "ESP32-S3 Touch LCD 1.28"
10+
#define USB_SERIAL "" // Empty string for MAC adddress
11+
12+
#define LCD_BACKLIGHT 2
13+
#define LCD_DC 8
14+
#define LCD_RST 14
15+
16+
#define TP_INT 5
17+
#define TP_RST 13
18+
19+
#define IMU_INT1 4
20+
#define IMU_INT2 3
21+
22+
static const uint8_t TX = 43;
23+
static const uint8_t RX = 44;
24+
#define TX1 TX
25+
#define RX1 RX
26+
27+
static const uint8_t SCL = 7;
28+
static const uint8_t SDA = 6;
29+
30+
static const uint8_t SS = 9;
31+
static const uint8_t MOSI = 11;
32+
static const uint8_t MISO = 12;
33+
static const uint8_t SCK = 10;
34+
35+
static const uint8_t A0 = 1; // Connected through voltage divider to battery pin
36+
37+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)