Skip to content

Commit 7decacf

Browse files
committed
re-fix pinout that was reverted
1 parent 2fa396f commit 7decacf

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed
Binary file not shown.

variants/adafruit_metro_esp32s3/pins_arduino.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#define BUILTIN_LED LED_BUILTIN // backward compatibility
1515

1616
// Neopixel
17-
#define PIN_NEOPIXEL 45
17+
#define PIN_NEOPIXEL 46
1818
// RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API neopixelWrite() and digitalWrite() for blinking
1919
#define RGB_BUILTIN (PIN_NEOPIXEL+SOC_GPIO_PIN_COUNT)
2020
#define RGB_BRIGHTNESS 64
@@ -31,10 +31,10 @@ static const uint8_t RX = 41;
3131
static const uint8_t SDA = 47;
3232
static const uint8_t SCL = 48;
3333

34-
static const uint8_t SS = 21;
35-
static const uint8_t MOSI = 35;
36-
static const uint8_t SCK = 36;
37-
static const uint8_t MISO = 37;
34+
static const uint8_t SS = 45;
35+
static const uint8_t MOSI = 42;
36+
static const uint8_t SCK = 39;
37+
static const uint8_t MISO = 21;
3838

3939
static const uint8_t A0 = 14;
4040
static const uint8_t A1 = 15;
0 Bytes
Binary file not shown.

variants/adafruit_metro_esp32s3/variant.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ extern "C" {
3030

3131
// Initialize variant/board, called before setup()
3232
void initVariant(void) {
33-
// default SD_CS to input pullup
33+
// default SD_CS to input pullup (we cannot have built in pullup since its
34+
// a strapping pin!)
3435
pinMode(SS, INPUT_PULLUP);
3536
}
3637

0 commit comments

Comments
 (0)