Skip to content

Commit dbc060b

Browse files
authoredAug 29, 2023
add Adafruit metro S3 16MB Flash, 8MB PSRam (espressif#8478)
* add Adafruit metro S3 16MB Flash, 8MB PSRam also reorder to have feather boards next to each others * correct SS pin to 21, also add NEOPIXEL_PIN * change metro s3 psram type to opi, default SD_CS (SS) to input pull up * remove psram qspi option
1 parent b0f84a2 commit dbc060b

File tree

6 files changed

+548
-238
lines changed

6 files changed

+548
-238
lines changed
 

‎boards.txt

Lines changed: 423 additions & 238 deletions
Large diffs are not rendered by default.
Binary file not shown.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# ESP-IDF Partition Table
2+
# Name, Type, SubType, Offset, Size, Flags
3+
# bootloader.bin,, 0x1000, 32K
4+
# partition table,, 0x8000, 4K
5+
nvs, data, nvs, 0x9000, 20K,
6+
otadata, data, ota, 0xe000, 8K,
7+
ota_0, app, ota_0, 0x10000, 2048K,
8+
ota_1, app, ota_1, 0x210000, 2048K,
9+
uf2, app, factory,0x410000, 256K,
10+
ffat, data, fat, 0x450000, 11968K,
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#include <stdint.h>
5+
6+
#define USB_VID 0x239A
7+
#define USB_PID 0x8145
8+
#define USB_MANUFACTURER "Adafruit"
9+
#define USB_PRODUCT "Metro ESP32-S3"
10+
#define USB_SERIAL "" // Empty string for MAC adddress
11+
12+
#define EXTERNAL_NUM_INTERRUPTS 46
13+
#define NUM_DIGITAL_PINS 48
14+
#define NUM_ANALOG_INPUTS 20
15+
16+
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
17+
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
18+
#define digitalPinHasPWM(p) (p < 46)
19+
20+
#define LED_BUILTIN 13
21+
22+
#define PIN_NEOPIXEL 45
23+
#define NEOPIXEL_PIN 45
24+
#define NEOPIXEL_NUM 1
25+
26+
#define PIN_BUTTON1 0 // BOOT0 switch
27+
28+
static const uint8_t TX = 40;
29+
static const uint8_t RX = 41;
30+
#define TX1 TX
31+
#define RX1 RX
32+
33+
static const uint8_t SDA = 47;
34+
static const uint8_t SCL = 48;
35+
36+
static const uint8_t SS = 21;
37+
static const uint8_t MOSI = 35;
38+
static const uint8_t SCK = 36;
39+
static const uint8_t MISO = 37;
40+
41+
static const uint8_t A0 = 14;
42+
static const uint8_t A1 = 15;
43+
static const uint8_t A2 = 16;
44+
static const uint8_t A3 = 17;
45+
static const uint8_t A4 = 18;
46+
static const uint8_t A5 = 1;
47+
48+
static const uint8_t A6 = 40;
49+
static const uint8_t A7 = 41;
50+
static const uint8_t A8 = 2;
51+
static const uint8_t A9 = 3;
52+
static const uint8_t A10 = 4;
53+
static const uint8_t A11 = 5;
54+
static const uint8_t A12 = 6;
55+
static const uint8_t A13 = 7;
56+
static const uint8_t A14 = 8;
57+
static const uint8_t A15 = 9;
58+
static const uint8_t A16 = 10;
59+
static const uint8_t A17 = 11;
60+
static const uint8_t A18 = 12;
61+
static const uint8_t A19 = 13;
62+
63+
static const uint8_t T1 = 1;
64+
static const uint8_t T2 = 2;
65+
static const uint8_t T3 = 3;
66+
static const uint8_t T4 = 4;
67+
static const uint8_t T5 = 5;
68+
static const uint8_t T6 = 6;
69+
static const uint8_t T7 = 7;
70+
static const uint8_t T8 = 8;
71+
static const uint8_t T9 = 9;
72+
static const uint8_t T10 = 10;
73+
static const uint8_t T11 = 11;
74+
static const uint8_t T12 = 12;
75+
static const uint8_t T13 = 13;
76+
static const uint8_t T14 = 14;
77+
78+
#endif /* Pins_Arduino_h */
171 KB
Binary file not shown.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
* The MIT License (MIT)
3+
*
4+
* Copyright (c) 2021 Ha Thach (tinyusb.org) for Adafruit Industries
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in
14+
* all copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
* THE SOFTWARE.
23+
*/
24+
25+
26+
#include "esp32-hal-gpio.h"
27+
#include "pins_arduino.h"
28+
29+
extern "C" {
30+
31+
// Initialize variant/board, called before setup()
32+
void initVariant(void) {
33+
// default SD_CS to input pullup
34+
pinMode(SS, INPUT_PULLUP);
35+
}
36+
37+
}

0 commit comments

Comments
 (0)
Please sign in to comment.