Skip to content

Commit 6ff7e7e

Browse files
committed
updated pin defs again
1 parent 0cc245e commit 6ff7e7e

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

variants/Bee_Motion/pins_arduino.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
#define USB_PRODUCT "Bee Motion S3"
1010
#define USB_SERIAL ""
1111

12-
#define EXTERNAL_NUM_INTERRUPTS 33
12+
#define EXTERNAL_NUM_INTERRUPTS 46
1313
#define NUM_DIGITAL_PINS 21
1414
#define NUM_ANALOG_INPUTS 12
1515

16-
#define analogInputToDigitalPin(p) (((p)<12)?(esp32_adc2gpio[(p)]):-1)
17-
#define digitalPinToInterrupt(p) (((p)<21)?(p):-1)
16+
#define analogInputToDigitalPin(p) (((p)<29)?(esp32_adc2gpio[(p)]):-1)
17+
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
1818
#define digitalPinHasPWM(p) (p < 46)
1919

2020
static const uint8_t TX = 43;

variants/Bee_Motion_Mini/pins_arduino.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
#define NUM_DIGITAL_PINS 4
99
#define NUM_ANALOG_INPUTS 2
1010

11-
#define analogInputToDigitalPin(p) (((p)<2)?(esp32_adc2gpio[(p)]):-1)
12-
#define digitalPinToInterrupt(p) (((p)<4)?(p):-1)
11+
#define analogInputToDigitalPin(p) (((p)<29)?(esp32_adc2gpio[(p)]):-1)
12+
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
1313
#define digitalPinHasPWM(p) (p < 46)
1414

1515
static const uint8_t TX = 21;

variants/Bee_Motion_S3/pins_arduino.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
#define USB_PRODUCT "Bee Motion S3"
1010
#define USB_SERIAL ""
1111

12-
#define EXTERNAL_NUM_INTERRUPTS 38
12+
#define EXTERNAL_NUM_INTERRUPTS 46
1313
#define NUM_DIGITAL_PINS 27
1414
#define NUM_ANALOG_INPUTS 11
1515

16-
#define analogInputToDigitalPin(p) (((p)<11)?(analogChannelToDigitalPin(p)):-1)
17-
#define digitalPinToInterrupt(p) (((p)<27)?(p):-1)
16+
#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
17+
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
1818
#define digitalPinHasPWM(p) (p < 46)
1919

2020
static const uint8_t TX = 43;

variants/Bee_S3/pins_arduino.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
#define NUM_DIGITAL_PINS 15
1414
#define NUM_ANALOG_INPUTS 8
1515

16-
#define analogInputToDigitalPin(p) (((p)<8)?(esp32_adc2gpio[(p)]):-1)
17-
#define digitalPinToInterrupt(p) (((p)<15)?(p):-1)
16+
#define analogInputToDigitalPin(p) (((p)<20)?(esp32_adc2gpio[(p)]):-1)
17+
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
1818
#define digitalPinHasPWM(p) (p < 46)
1919

2020
static const uint8_t TX = 43;

0 commit comments

Comments
 (0)