Skip to content

Commit 260f8a0

Browse files
authored
ESP-Box-3 pins_arduino.h
1 parent 8d1a845 commit 260f8a0

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

variants/esp32s3box3/pins_arduino.h

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#include <stdint.h>
5+
6+
#define USB_VID 0x303a
7+
#define USB_PID 0x1001
8+
9+
static const uint8_t TX = 43;
10+
static const uint8_t RX = 44;
11+
12+
static const uint8_t SDA = 41;
13+
static const uint8_t SCL = 40;
14+
15+
static const uint8_t SS = 10;
16+
static const uint8_t MOSI = 11;
17+
static const uint8_t MISO = 13;
18+
static const uint8_t SCK = 12;
19+
20+
static const uint8_t A8 = 9;
21+
static const uint8_t A9 = 10;
22+
static const uint8_t A10 = 11;
23+
static const uint8_t A11 = 12;
24+
static const uint8_t A12 = 13;
25+
static const uint8_t A13 = 14;
26+
27+
static const uint8_t T9 = 9;
28+
static const uint8_t T10 = 10;
29+
static const uint8_t T11 = 11;
30+
static const uint8_t T12 = 12;
31+
static const uint8_t T13 = 13;
32+
static const uint8_t T14 = 14;
33+
34+
// Wire1 for ES7210 MIC ADC, ES8311 I2S DAC, ICM-42607-P IMU and TT21100 + ST7789 or GT911 + ILI9341 (Display + Touch Panel)
35+
#define I2C_SDA 8
36+
#define I2C_SCL 18
37+
38+
#define ES7210_ADDR 0x40 //MIC ADC
39+
#define ES8311_ADDR 0x18 //I2S DAC
40+
#define TT21100_ADDR 0x24 //Touch Panel option 1
41+
#define GT911_ADDR 0x5D //Touch Panel option 2
42+
#define GT911_ADDR_2 0x14 // Backup Address for GT911
43+
44+
// Display Driver ILI9341 or ST7789
45+
#define TFT_DC 4
46+
#define TFT_CS 5
47+
#define TFT_MOSI 6
48+
#define TFT_CLK 7
49+
#define TFT_MISO 0
50+
#define TFT_BL 47
51+
#define TFT_RST 48
52+
53+
#define I2S_LRCK 45
54+
#define I2S_MCLK 2
55+
#define I2S_SCLK 17
56+
#define I2S_SDIN 16
57+
#define I2S_DOUT 15
58+
59+
#define PA_PIN 46 //Audio Amp Power
60+
#define MUTE_PIN 1 //MUTE Button
61+
#define TS_IRQ 3 //Touch Screen IRQ
62+
63+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)