Skip to content

Commit 1862e53

Browse files
Add some required definitions to pins_arduino.h
1 parent cc1d639 commit 1862e53

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

variants/esp32s3_powerfeather/pins_arduino.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@
99
#define USB_PRODUCT "ESP32-S3 PowerFeather"
1010
#define USB_SERIAL ""
1111

12+
#define NUM_DIGITAL_PINS 48
13+
#define EXTERNAL_NUM_INTERRUPTS NUM_DIGITAL_PINS
14+
#define NUM_ANALOG_INPUTS 20
15+
16+
#define analogInputToDigitalPin(p) (((p)<NUM_ANALOG_INPUTS)?(analogChannelToDigitalPin(p)):-1)
17+
#define digitalPinToInterrupt(p) (((p)<=NUM_DIGITAL_PINS)?(p):-1)
18+
#define digitalPinHasPWM(p) (p<=NUM_DIGITAL_PINS)
19+
1220
static const uint8_t ALARM = 21;
1321
static const uint8_t INT = 5;
1422

0 commit comments

Comments
 (0)