Skip to content

Add support for ESP32-S3 PowerFeather #8889

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 22, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove redefinitions, add pin aliases to pins_arduino.h
  • Loading branch information
powerfeatherdev committed Nov 22, 2023
commit 0aba0358320529219a7bad5dbb6bc16da2d21602
12 changes: 4 additions & 8 deletions variants/esp32s3_powerfeather/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@
#define USB_PRODUCT "ESP32-S3 PowerFeather"
#define USB_SERIAL ""

#define EXTERNAL_NUM_INTERRUPTS 46
#define NUM_DIGITAL_PINS 23
#define NUM_ANALOG_INPUTS 13

#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
#define digitalPinHasPWM(p) (p < 46)

static const uint8_t ALARM = 7;
static const uint8_t INT = 5;

Expand All @@ -28,6 +20,7 @@ static const uint8_t TX = 44;
static const uint8_t RX = 42;
static const uint8_t TX0 = 43;

static const uint8_t SS = -1;
static const uint8_t MISO = 41;
static const uint8_t MOSI = 40;
static const uint8_t SCK = 39;
Expand All @@ -50,4 +43,7 @@ static const uint8_t D11 = 45;
static const uint8_t D12 = 12;
static const uint8_t D13 = 11;

#define LED_BUILTIN 46
#define BUILTIN_LED LED_BUILTIN // backward compatibility

#endif /* Pins_Arduino_h */