Skip to content

Commit 2981bde

Browse files
ladyadacaternusonkattnijeplerhathach
authored
Add some more adafruit boards and fix some board typos (#6014)
Co-authored-by: caternuson <[email protected]> Co-authored-by: Kattni Rembor <[email protected]> Co-authored-by: Jeff Epler <[email protected]> Co-authored-by: Jeff Epler <[email protected]> Co-authored-by: Ha Thach <[email protected]>
1 parent 6d400df commit 2981bde

File tree

12 files changed

+482
-28
lines changed

12 files changed

+482
-28
lines changed

Diff for: boards.txt

+327
Large diffs are not rendered by default.

Diff for: variants/adafruit_feather_esp32s2/pins_arduino.h

+4-9
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,13 @@ static const uint8_t A4 = 14;
4242
static const uint8_t A5 = 8;
4343

4444

45+
static const uint8_t TX = 39;
46+
static const uint8_t RX = 38;
47+
#define TX1 TX
48+
#define RX1 RX
4549

46-
47-
static const uint8_t TX = 43;
48-
static const uint8_t RX = 44;
49-
50-
static const uint8_t T1 = 1;
51-
static const uint8_t T2 = 2;
52-
static const uint8_t T3 = 3;
53-
static const uint8_t T4 = 4;
5450
static const uint8_t T5 = 5;
5551
static const uint8_t T6 = 6;
56-
static const uint8_t T7 = 7;
5752
static const uint8_t T8 = 8;
5853
static const uint8_t T9 = 9;
5954
static const uint8_t T10 = 10;

Diff for: variants/adafruit_feather_esp32s2_tft/bootloader.bin

21.5 KB
Binary file not shown.

Diff for: variants/adafruit_feather_esp32s2_tft/partitions.csv

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ESP-IDF Partition Table
2+
# Name, Type, SubType, Offset, Size, Flags
3+
# bootloader.bin,, 0x1000, 32K
4+
# partition table, 0x8000, 4K
5+
6+
nvs, data, nvs, 0x9000, 20K,
7+
otadata, data, ota, 0xe000, 8K,
8+
ota_0, 0, ota_0, 0x10000, 1408K,
9+
ota_1, 0, ota_1, 0x170000, 1408K,
10+
uf2, app, factory,0x2d0000, 256K,
11+
ffat, data, fat, 0x310000, 960K,

Diff for: variants/adafruit_feather_esp32s2_tft/pins_arduino.h

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#include <stdint.h>
5+
6+
7+
#define USB_VID 0x239A
8+
#define USB_PID 0x810F
9+
#define USB_MANUFACTURER "Adafruit"
10+
#define USB_PRODUCT "Feather ESP32-S2 TFT"
11+
#define USB_SERIAL "" // Empty string for MAC adddress
12+
13+
14+
#define EXTERNAL_NUM_INTERRUPTS 46
15+
#define NUM_DIGITAL_PINS 48
16+
#define NUM_ANALOG_INPUTS 20
17+
18+
#define analogInputToDigitalPin(p) (((p)<20)?(esp32_adc2gpio[(p)]):-1)
19+
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
20+
#define digitalPinHasPWM(p) (p < 46)
21+
22+
#define LED_BUILTIN 13
23+
24+
#define PIN_NEOPIXEL 33
25+
#define NEOPIXEL_NUM 1 // number of neopixels
26+
#define NEOPIXEL_POWER 34 // power pin
27+
#define NEOPIXEL_POWER_ON HIGH // power pin state when on
28+
29+
#define TFT_CS 42
30+
#define TFT_RST 41
31+
#define TFT_DC 40
32+
#define TFT_BACKLITE 45
33+
34+
static const uint8_t SDA = 42;
35+
static const uint8_t SCL = 41;
36+
37+
static const uint8_t SS = 21;
38+
static const uint8_t MOSI = 35;
39+
static const uint8_t SCK = 36;
40+
static const uint8_t MISO = 37;
41+
42+
static const uint8_t A0 = 18;
43+
static const uint8_t A1 = 17;
44+
static const uint8_t A2 = 16;
45+
static const uint8_t A3 = 15;
46+
static const uint8_t A4 = 14;
47+
static const uint8_t A5 = 8;
48+
49+
static const uint8_t TX = 1;
50+
static const uint8_t RX = 2;
51+
52+
static const uint8_t T1 = 1;
53+
static const uint8_t T2 = 2;
54+
static const uint8_t T5 = 5;
55+
static const uint8_t T6 = 6;
56+
static const uint8_t T8 = 8;
57+
static const uint8_t T9 = 9;
58+
static const uint8_t T10 = 10;
59+
static const uint8_t T11 = 11;
60+
static const uint8_t T12 = 12;
61+
static const uint8_t T13 = 13;
62+
static const uint8_t T14 = 14;
63+
64+
static const uint8_t DAC1 = 17;
65+
static const uint8_t DAC2 = 18;
66+
67+
#endif /* Pins_Arduino_h */

Diff for: variants/adafruit_feather_esp32s2_tft/tinyuf2.bin

156 KB
Binary file not shown.

Diff for: variants/adafruit_funhouse_esp32s2/pins_arduino.h

-6
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,6 @@ static const uint8_t A3 = 18; // light sensor
6161
static const uint8_t TX = 43;
6262
static const uint8_t RX = 44;
6363

64-
static const uint8_t T1 = 1;
65-
static const uint8_t T2 = 2;
66-
static const uint8_t T3 = 3;
67-
static const uint8_t T4 = 4;
68-
static const uint8_t T5 = 5;
6964
static const uint8_t T6 = 6;
7065
static const uint8_t T7 = 7;
7166
static const uint8_t T8 = 8;
@@ -74,7 +69,6 @@ static const uint8_t T10 = 10;
7469
static const uint8_t T11 = 11;
7570
static const uint8_t T12 = 12;
7671
static const uint8_t T13 = 13;
77-
static const uint8_t T14 = 14;
7872

7973
static const uint8_t DAC1 = 17;
8074
static const uint8_t DAC2 = 18;

Diff for: variants/adafruit_magtag29_esp32s2/pins_arduino.h

+1-13
Original file line numberDiff line numberDiff line change
@@ -87,20 +87,8 @@ static const uint8_t A18 = 19;
8787
static const uint8_t A19 = 20;
8888

8989

90-
static const uint8_t T1 = 1;
91-
static const uint8_t T2 = 2;
92-
static const uint8_t T3 = 3;
93-
static const uint8_t T4 = 4;
94-
static const uint8_t T5 = 5;
95-
static const uint8_t T6 = 6;
96-
static const uint8_t T7 = 7;
97-
static const uint8_t T8 = 8;
98-
static const uint8_t T9 = 9;
9990
static const uint8_t T10 = 10;
100-
static const uint8_t T11 = 11;
101-
static const uint8_t T12 = 12;
102-
static const uint8_t T13 = 13;
103-
static const uint8_t T14 = 14;
91+
10492

10593
static const uint8_t DAC1 = 17;
10694
static const uint8_t DAC2 = 18;

Diff for: variants/adafruit_qtpy_esp32s2/bootloader.bin

21.9 KB
Binary file not shown.

Diff for: variants/adafruit_qtpy_esp32s2/partitions.csv

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ESP-IDF Partition Table
2+
# Name, Type, SubType, Offset, Size, Flags
3+
# bootloader.bin,, 0x1000, 32K
4+
# partition table, 0x8000, 4K
5+
6+
nvs, data, nvs, 0x9000, 20K,
7+
otadata, data, ota, 0xe000, 8K,
8+
ota_0, 0, ota_0, 0x10000, 1408K,
9+
ota_1, 0, ota_1, 0x170000, 1408K,
10+
uf2, app, factory,0x2d0000, 256K,
11+
ffat, data, fat, 0x310000, 960K,

Diff for: variants/adafruit_qtpy_esp32s2/pins_arduino.h

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#include <stdint.h>
5+
6+
7+
#define USB_VID 0x239A
8+
#define USB_PID 0x8111
9+
#define USB_MANUFACTURER "Adafruit"
10+
#define USB_PRODUCT "QT Py ESP32-S2"
11+
#define USB_SERIAL "" // Empty string for MAC adddress
12+
13+
14+
#define EXTERNAL_NUM_INTERRUPTS 46
15+
#define NUM_DIGITAL_PINS 48
16+
#define NUM_ANALOG_INPUTS 20
17+
18+
#define analogInputToDigitalPin(p) (((p)<20)?(esp32_adc2gpio[(p)]):-1)
19+
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
20+
#define digitalPinHasPWM(p) (p < 46)
21+
22+
//#define LED_BUILTIN 13
23+
24+
#define PIN_NEOPIXEL 39
25+
#define NEOPIXEL_NUM 1 // number of neopixels
26+
#define NEOPIXEL_POWER 38 // power pin
27+
#define NEOPIXEL_POWER_ON HIGH // power pin state when on
28+
29+
static const uint8_t SDA = 7;
30+
static const uint8_t SCL = 6;
31+
32+
static const uint8_t SDA1 = 41;
33+
static const uint8_t SCL1 = 40;
34+
35+
static const uint8_t SS = 42;
36+
static const uint8_t MOSI = 35;
37+
static const uint8_t SCK = 34;
38+
static const uint8_t MISO = 33;
39+
40+
static const uint8_t A0 = 18;
41+
static const uint8_t A1 = 17;
42+
static const uint8_t A2 = 9;
43+
static const uint8_t A3 = 8;
44+
static const uint8_t A4 = 7;
45+
static const uint8_t A5 = 6;
46+
static const uint8_t A6 = 5;
47+
static const uint8_t A7 = 16;
48+
49+
static const uint8_t TX = 5;
50+
static const uint8_t RX = 16;
51+
52+
static const uint8_t T5 = 5;
53+
static const uint8_t T6 = 6;
54+
static const uint8_t T7 = 7;
55+
static const uint8_t T8 = 8;
56+
static const uint8_t T9 = 9;
57+
58+
static const uint8_t DAC1 = 17;
59+
static const uint8_t DAC2 = 18;
60+
61+
#endif /* Pins_Arduino_h */

Diff for: variants/adafruit_qtpy_esp32s2/tinyuf2.bin

130 KB
Binary file not shown.

0 commit comments

Comments
 (0)