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