Skip to content

Commit c5184be

Browse files
committed
added pins details
1 parent cdf85c2 commit c5184be

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

variants/Nebula_S3/pins_arduino.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@
66
#define USB_VID 0x303a
77
#define USB_PID 0x1001
88

9-
// #define EXTERNAL_NUM_INTERRUPTS 46
9+
#define EXTERNAL_NUM_INTERRUPTS 20
1010
#define NUM_DIGITAL_PINS 20
1111
#define NUM_ANALOG_INPUTS 6
1212

13+
#define analogInputToDigitalPin(p) (((p)<6)?(analogChannelToDigitalPin(p)):-1)
14+
#define digitalPinToInterrupt(p) (((p)<20)?(p):-1)
15+
#define digitalPinHasPWM(p) (p < 20)
16+
1317

1418
static const uint8_t LED_BUILTIN = 45;
1519
#define BUILTIN_LED LED_BUILTIN // backward compatibility
@@ -20,12 +24,8 @@ static const uint8_t LED_BUILTIN = 45;
2024
static const uint8_t TX = 43;
2125
static const uint8_t RX = 44;
2226

23-
static const uint8_t SDA = 02;
24-
static const uint8_t SCL = 01;
25-
26-
static const uint8_t ACC_SDA = 12;
27-
static const uint8_t ACC_SCL = 13;
28-
27+
static const uint8_t SDA = 12;
28+
static const uint8_t SCL = 13;
2929

3030
static const uint8_t SS = 41;
3131
static const uint8_t MOSI = 40;

0 commit comments

Comments
 (0)