Skip to content

Commit 2e9d4ab

Browse files
authored
Add files via upload
1 parent d6f1bc3 commit 2e9d4ab

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#include <stdint.h>
5+
#include "soc/soc_caps.h"
6+
7+
// BN: ESP32 Family Device
8+
#define USB_VID 0x303a
9+
#define USB_PID 0x8290
10+
11+
#define USB_MANUFACTURER "Waveshare"
12+
#define USB_PRODUCT "ESP32-S3-Touch-LCD-1.85"
13+
#define USB_SERIAL ""
14+
15+
// display QSPI SPI2
16+
#define LCD_SPI_DATA0 46
17+
#define LCD_SPI_DATA1 45
18+
#define LCD_SPI_DATA2 42
19+
#define LCD_SPI_DATA3 41
20+
#define LCD_SPI_SCK 40
21+
#define LCD_SPI_CS 21
22+
#define LCD_TE_IO 18
23+
24+
#define LCD_Backlight_IO 5
25+
#define LCD_RESET_IO -1
26+
27+
// Touch I2C
28+
#define TP_SDA_IO 1
29+
#define TP_SCL_IO 3
30+
#define TP_INT_IO 4
31+
#define TP_RST_IO -1
32+
33+
// Onboard PCF85063 / QMI8658 / I2C Port
34+
#define I2C_SCL_IO 10
35+
#define I2C_SDA_IO 11
36+
37+
// Onboard RTC for PCF85063
38+
#define PCF85063_ADDRESS 0x51
39+
#define PCF85063_SCL_IO I2C_SCL_IO
40+
#define PCF85063_SDA_IO I2C_SDA_IO
41+
#define PCF85063__INT 9
42+
43+
// Onboard QMI8658 IMU
44+
#define QMI8658_L_SLAVE_ADDRESS 0x6B
45+
#define QMI8658_H_SLAVE_ADDRESS 0x6A
46+
47+
#define QMI8658_ADDRESS QMI8658_L_SLAVE_ADDRESS
48+
#define QMI8658_SCL_IO I2C_SCL_IO
49+
#define QMI8658_SDA_IO I2C_SDA_IO
50+
#define QMI8658_INT1_IO -1 // Using extended IO5
51+
#define QMI8658_INT2_IO -1 // Using extended IO4
52+
53+
// Partial voltage measurement method
54+
#define BAT_ADC_IO 8
55+
56+
// Def for I2C that shares the IMU I2C pins
57+
static const uint8_t SDA = I2C_SDA_IO;
58+
static const uint8_t SCL = I2C_SCL_IO;
59+
60+
// UART0 pins
61+
static const uint8_t TX = 43;
62+
static const uint8_t RX = 44;
63+
64+
//esp32s3-PSFlash SPI1/SPI0
65+
static const uint8_t SS = 34; // FSPICS0
66+
static const uint8_t MOSI = 35; // FSPID
67+
static const uint8_t MISO = 37; // FSPIQ
68+
static const uint8_t SCK = 36; // FSPICLK
69+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)