- Notifications
You must be signed in to change notification settings - Fork 7.6k
/
Copy pathpins_arduino.h
30 lines (20 loc) · 699 Bytes
/
pins_arduino.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndefPins_Arduino_h
#definePins_Arduino_h
#include<stdint.h>
#defineEXTERNAL_NUM_INTERRUPTS 16
#defineNUM_DIGITAL_PINS 40
#defineNUM_ANALOG_INPUTS 16
#defineanalogInputToDigitalPin(p) (((p)<20)?(esp32_adc2gpio[(p)]):-1)
#definedigitalPinToInterrupt(p) (((p)<40)?(p):-1)
#definedigitalPinHasPWM(p) (p < 34)
staticconstuint8_tKEY_BUILTIN=34;
staticconstuint8_tTX=1;
staticconstuint8_tRX=3;
staticconstuint8_tSDA=13;
staticconstuint8_tSCL=16;
staticconstuint8_tSS=17;
staticconstuint8_tMOSI=2;
staticconstuint8_tMISO=15;
staticconstuint8_tSCK=14;
#defineBOARD_HAS_1BIT_SDMMC
#endif/* Pins_Arduino_h */