-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add variant for Waveshare ESP32 board.
- Loading branch information
1 parent
0a26a8c
commit 0bfa6fe
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#ifndef Pins_Arduino_h | ||
#define Pins_Arduino_h | ||
|
||
#include <stdint.h> | ||
|
||
#define USB_VID 0x1A86 | ||
#define USB_PID 0x55D3 | ||
#define USB_MANUFACTURER "Waveshare" | ||
#define USB_PRODUCT "ESP32-S3 Touch LCD 1.28" | ||
#define USB_SERIAL "" // Empty string for MAC adddress | ||
|
||
#define LCD_BACKLIGHT 2 | ||
#define LCD_DC 8 | ||
#define LCD_RST 14 | ||
|
||
#define TP_INT 5 | ||
#define TP_RST 13 | ||
|
||
#define IMU_INT1 4 | ||
#define IMU_INT2 3 | ||
|
||
static const uint8_t TX = 43; | ||
static const uint8_t RX = 44; | ||
#define TX1 TX | ||
#define RX1 RX | ||
|
||
static const uint8_t SCL = 7; | ||
static const uint8_t SDA = 6; | ||
|
||
static const uint8_t SS = 9; | ||
static const uint8_t MOSI = 11; | ||
static const uint8_t MISO = 12; | ||
static const uint8_t SCK = 10; | ||
|
||
static const uint8_t A0 = 1; // Connected through voltage divider to battery pin | ||
|
||
#endif /* Pins_Arduino_h */ |