Skip to content

Commit 616947c

Browse files
strid3r21SuGlider
authored andcommitted
updated some pin defs
1 parent c8371ee commit 616947c

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

variants/Bee_Motion/pins_arduino.h

+4-4
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 46
12+
#define EXTERNAL_NUM_INTERRUPTS 33
1313
#define NUM_DIGITAL_PINS 21
14-
#define NUM_ANALOG_INPUTS 29
14+
#define NUM_ANALOG_INPUTS 12
1515

16-
#define analogInputToDigitalPin(p) (((p)<29)?(esp32_adc2gpio[(p)]):-1)
17-
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
16+
#define analogInputToDigitalPin(p) (((p)<12)?(esp32_adc2gpio[(p)]):-1)
17+
#define digitalPinToInterrupt(p) (((p)<21)?(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)<29)?(esp32_adc2gpio[(p)]):-1)
12-
#define digitalPinToInterrupt(p) (((p)<48)?(p):-1)
11+
#define analogInputToDigitalPin(p) (((p)<2)?(esp32_adc2gpio[(p)]):-1)
12+
#define digitalPinToInterrupt(p) (((p)<4)?(p):-1)
1313
#define digitalPinHasPWM(p) (p < 46)
1414

1515
static const uint8_t TX = 21;

variants/Bee_Motion_S3/pins_arduino.h

+16-16
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 46
13-
#define NUM_DIGITAL_PINS 48
14-
#define NUM_ANALOG_INPUTS 20
12+
#define EXTERNAL_NUM_INTERRUPTS 38
13+
#define NUM_DIGITAL_PINS 27
14+
#define NUM_ANALOG_INPUTS 11
1515

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

2020
static const uint8_t TX = 43;
@@ -30,17 +30,17 @@ static const uint8_t SDO = 35;
3030
static const uint8_t SDI = 37;
3131
static const uint8_t SCK = 17;
3232

33-
static const uint8_t A4 = 5;
34-
static const uint8_t A5 = 6;
35-
static const uint8_t A6 = 7;
36-
static const uint8_t A7 = 8;
37-
static const uint8_t A8 = 9;
38-
static const uint8_t A9 = 10;
39-
static const uint8_t A10 = 11;
40-
static const uint8_t A11 = 12;
41-
static const uint8_t A12 = 13;
42-
static const uint8_t A13 = 14;
43-
static const uint8_t A14 = 15;
33+
static const uint8_t A5 = 5;
34+
static const uint8_t A6 = 6;
35+
static const uint8_t A7 = 7;
36+
static const uint8_t A8 = 8;
37+
static const uint8_t A9 = 9;
38+
static const uint8_t A10 = 10;
39+
static const uint8_t A11 = 11;
40+
static const uint8_t A12 = 12;
41+
static const uint8_t A13 = 13;
42+
static const uint8_t A14 = 14;
43+
static const uint8_t A15 = 15;
4444

4545
static const uint8_t D5 = 5;
4646
static const uint8_t D6 = 6;

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

2020
static const uint8_t TX = 43;

0 commit comments

Comments
 (0)