Skip to content

Commit 63a1af2

Browse files
committed
feat(board): Add Waveshare ESP32-S3-Tiny
Add support for Waveshare ESP32-S3-Tiny base on ESP32-S3FH4R2 chip
1 parent f0ded24 commit 63a1af2

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
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+
#define USB_MANUFACTURER "Waveshare"
9+
#define USB_PRODUCT "ESP32-S3-Tiny"
10+
#define USB_SERIAL "" // Empty string for MAC address
11+
12+
#define RGB_BUILTIN 38
13+
#define RGB_BRIGHTNESS 64
14+
15+
#define MTDO 45
16+
#define MTDI 47
17+
#define MTMS 48
18+
#define MTCK 44
19+
20+
// UART0 pins
21+
static const uint8_t TX = 49;
22+
static const uint8_t RX = 50;
23+
24+
static const uint8_t SDA = -1;
25+
static const uint8_t SCL = -1;
26+
27+
// Mapping based on the ESP32S3 data sheet - alternate for SPI2
28+
static const uint8_t SS = 32; // FSPICS0
29+
static const uint8_t MOSI = 35; // FSPID
30+
static const uint8_t MISO = 34; // FSPIQ
31+
static const uint8_t SCK = 33; // FSPICLK
32+
33+
//static const uint8_t XTAL_32K_N = 22;
34+
//static const uint8_t XTAL_32K_P = 21;
35+
36+
//static const uint8_t SPIWP = 31;
37+
//static const uint8_t SPIHD = 30;
38+
39+
// Mapping based on the ESP32S3 data sheet - alternate for OUTPUT
40+
static const uint8_t GPIO1 = 1;
41+
static const uint8_t GPIO2 = 2;
42+
static const uint8_t GPIO3 = 3;
43+
static const uint8_t GPIO4 = 4;
44+
static const uint8_t GPIO5 = 5;
45+
static const uint8_t GPIO6 = 6;
46+
static const uint8_t GPIO7 = 7;
47+
static const uint8_t GPIO8 = 8;
48+
static const uint8_t GPIO9 = 9;
49+
static const uint8_t GPIO10 = 10;
50+
static const uint8_t GPIO11 = 11;
51+
static const uint8_t GPIO12 = 12;
52+
static const uint8_t GPIO13 = 13;
53+
static const uint8_t GPIO14 = 14;
54+
static const uint8_t GPIO15 = 15;
55+
static const uint8_t GPIO16 = 16;
56+
static const uint8_t GPIO17 = 17;
57+
static const uint8_t GPIO18 = 18;
58+
59+
static const uint8_t GPIO21 = 21;
60+
61+
static const uint8_t GPIO33 = 33;
62+
static const uint8_t GPIO34 = 34;
63+
static const uint8_t GPIO35 = 35;
64+
static const uint8_t GPIO36 = 36;
65+
static const uint8_t GPIO37 = 37;
66+
static const uint8_t GPIO38 = 38;
67+
static const uint8_t GPIO39 = 39;
68+
static const uint8_t GPIO40 = 40;
69+
static const uint8_t GPIO41 = 41;
70+
static const uint8_t GPIO42 = 42;
71+
72+
static const uint8_t GPIO45 = 45;
73+
74+
static const uint8_t GPIO47 = 47;
75+
static const uint8_t GPIO48 = 48;
76+
77+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)