File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 6
6
#define USB_VID 0x303a
7
7
#define USB_PID 0x1001
8
8
9
- // #define EXTERNAL_NUM_INTERRUPTS 46
9
+ #define EXTERNAL_NUM_INTERRUPTS 20
10
10
#define NUM_DIGITAL_PINS 20
11
11
#define NUM_ANALOG_INPUTS 6
12
12
13
+ #define analogInputToDigitalPin (p ) (((p)<6)?(analogChannelToDigitalPin(p)):-1)
14
+ #define digitalPinToInterrupt (p ) (((p)<20)?(p):-1)
15
+ #define digitalPinHasPWM (p ) (p < 20)
16
+
13
17
14
18
static const uint8_t LED_BUILTIN = 45 ;
15
19
#define BUILTIN_LED LED_BUILTIN // backward compatibility
@@ -20,12 +24,8 @@ static const uint8_t LED_BUILTIN = 45;
20
24
static const uint8_t TX = 43 ;
21
25
static const uint8_t RX = 44 ;
22
26
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 ;
29
29
30
30
static const uint8_t SS = 41 ;
31
31
static const uint8_t MOSI = 40 ;
You can’t perform that action at this time.
0 commit comments