1
+ #ifndef Pins_Arduino_h
2
+ #define Pins_Arduino_h
3
+
4
+ #include <stdint.h>
5
+ #include "soc/soc_caps.h"
6
+
7
+ #define WIFI_LoRa_32_V3 true
8
+
9
+ #define USB_VID 0x303a
10
+ #define USB_PID 0x1001
11
+
12
+ #define EXTERNAL_NUM_INTERRUPTS 46
13
+ #define NUM_DIGITAL_PINS 48
14
+ #define NUM_ANALOG_INPUTS 20
15
+
16
+ // Some boards have too low voltage on this pin (board design bug)
17
+ // Use different pin with 3V and connect with 48
18
+ // and change this setup for the chosen pin (for example 38)
19
+ static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + 48 ;
20
+ #define BUILTIN_LED LED_BUILTIN // backward compatibility
21
+ #define LED_BUILTIN LED_BUILTIN
22
+ #define RGB_BUILTIN LED_BUILTIN
23
+ #define RGB_BRIGHTNESS 64
24
+
25
+ #define analogInputToDigitalPin (p ) (((p)<20)?(analogChannelToDigitalPin(p)):-1)
26
+ #define digitalPinToInterrupt (p ) (((p)<48)?(p):-1)
27
+ #define digitalPinHasPWM (p ) (p < 46)
28
+
29
+ static const uint8_t TX = 43 ;
30
+ static const uint8_t RX = 44 ;
31
+
32
+ static const uint8_t SDA = 8 ;
33
+ static const uint8_t SCL = 9 ;
34
+
35
+ static const uint8_t SS = 10 ;
36
+ static const uint8_t MOSI = 11 ;
37
+ static const uint8_t MISO = 13 ;
38
+ static const uint8_t SCK = 12 ;
39
+
40
+ static const uint8_t A0 = 1 ;
41
+ static const uint8_t A1 = 2 ;
42
+ static const uint8_t A2 = 3 ;
43
+ static const uint8_t A3 = 4 ;
44
+ static const uint8_t A4 = 5 ;
45
+ static const uint8_t A5 = 6 ;
46
+ static const uint8_t A6 = 7 ;
47
+ static const uint8_t A7 = 8 ;
48
+ static const uint8_t A8 = 9 ;
49
+ static const uint8_t A9 = 10 ;
50
+ static const uint8_t A10 = 11 ;
51
+ static const uint8_t A11 = 12 ;
52
+ static const uint8_t A12 = 13 ;
53
+ static const uint8_t A13 = 14 ;
54
+ static const uint8_t A14 = 15 ;
55
+ static const uint8_t A15 = 16 ;
56
+ static const uint8_t A16 = 17 ;
57
+ static const uint8_t A17 = 18 ;
58
+ static const uint8_t A18 = 19 ;
59
+ static const uint8_t A19 = 20 ;
60
+
61
+ static const uint8_t T1 = 1 ;
62
+ static const uint8_t T2 = 2 ;
63
+ static const uint8_t T3 = 3 ;
64
+ static const uint8_t T4 = 4 ;
65
+ static const uint8_t T5 = 5 ;
66
+ static const uint8_t T6 = 6 ;
67
+ static const uint8_t T7 = 7 ;
68
+ static const uint8_t T8 = 8 ;
69
+ static const uint8_t T9 = 9 ;
70
+ static const uint8_t T10 = 10 ;
71
+ static const uint8_t T11 = 11 ;
72
+ static const uint8_t T12 = 12 ;
73
+ static const uint8_t T13 = 13 ;
74
+ static const uint8_t T14 = 14 ;
75
+
76
+ static const uint8_t Vext = 36 ;
77
+ static const uint8_t LED = 35 ;
78
+ static const uint8_t RST_OLED = 21 ;
79
+ static const uint8_t SCL_OLED = 18 ;
80
+ static const uint8_t SDA_OLED = 17 ;
81
+ #endif /* Pins_Arduino_h */
0 commit comments