File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ #ifndef Pins_Arduino_h
2+ #define Pins_Arduino_h
3+
4+ #include <stdint.h>
5+
6+ #define EXTERNAL_NUM_INTERRUPTS 22
7+ #define NUM_DIGITAL_PINS 22
8+ #define NUM_ANALOG_INPUTS 6
9+
10+ #define analogInputToDigitalPin (p ) (((p)<NUM_ANALOG_INPUTS)?(analogChannelToDigitalPin(p)):-1)
11+ #define digitalPinToInterrupt (p ) (((p)<NUM_DIGITAL_PINS)?(p):-1)
12+ #define digitalPinHasPWM (p ) (p < EXTERNAL_NUM_INTERRUPTS)
13+
14+ static const uint8_t LED_BUILTIN = 10 ;
15+ #define BUILTIN_LED LED_BUILTIN // backward compatibility
16+
17+ static const uint8_t TX = 21 ;
18+ static const uint8_t RX = 20 ;
19+
20+ static const uint8_t SDA = 8 ;
21+ static const uint8_t SCL = 9 ;
22+
23+ static const uint8_t SS = 7 ;
24+ static const uint8_t MOSI = 6 ;
25+ static const uint8_t MISO = 5 ;
26+ static const uint8_t SCK = 4 ;
27+
28+ static const uint8_t A0 = 0 ;
29+ static const uint8_t A1 = 1 ;
30+ static const uint8_t A2 = 2 ;
31+ static const uint8_t A3 = 3 ;
32+ static const uint8_t A4 = 4 ;
33+ static const uint8_t A5 = 5 ;
34+
35+ #endif /* Pins_Arduino_h */
You can’t perform that action at this time.
0 commit comments