forked from espressif/arduino-esp32
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpins_arduino.h
197 lines (178 loc) · 7.43 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
//
// Copyright (c) 2023 Namino Team, version: 1.0.20 @ 2023-10-06
//
//
#ifndef Pins_Arduino_h
#define Pins_Arduino_h
#include <stdint.h>
#define USB_VID 0x303a
#define USB_PID 0x1001
#define NAMINO_ARANCIO_BOARD
/* Begin Pins on ESP32-S3-WROOM-1U-N4R8 */
static const uint8_t GPIO4 = 4;
static const uint8_t GPIO5 = 5;
static const uint8_t GPIO6 = 6;
static const uint8_t GPIO7 = 7;
static const uint8_t GPIO15 = 15;
static const uint8_t GPIO16 = 16;
static const uint8_t GPIO17 = 17;
static const uint8_t GPIO18 = 18;
static const uint8_t GPIO8 = 8;
static const uint8_t GPIO19 = 19;
static const uint8_t GPIO20 = 20;
static const uint8_t GPIO3 = 3;
static const uint8_t GPIO46 = 46;
static const uint8_t GPIO9 = 9;
static const uint8_t GPIO10 = 10;
static const uint8_t GPIO11 = 11;
static const uint8_t GPIO12 = 12;
static const uint8_t GPIO13 = 13;
static const uint8_t GPIO14 = 14;
static const uint8_t GPIO21 = 21;
static const uint8_t GPIO47 = 47;
static const uint8_t GPIO48 = 48;
static const uint8_t GPIO45 = 45;
static const uint8_t GPIO0 = 0;
static const uint8_t GPIO35 = 35;
static const uint8_t GPIO36 = 36;
static const uint8_t GPIO37 = 37;
static const uint8_t GPIO38 = 38;
static const uint8_t GPIO39 = 39;
static const uint8_t GPIO40 = 40;
static const uint8_t GPIO41 = 41;
static const uint8_t GPIO42 = 42;
static const uint8_t GPIO44 = 44;
static const uint8_t GPIO43 = 43;
static const uint8_t GPIO2 = 2;
static const uint8_t GPIO1 = 1;
static const uint8_t RESET_ADD_ON = GPIO46;
static const uint8_t SS = GPIO10;
static const uint8_t MOSI = GPIO11;
static const uint8_t MISO = GPIO13;
static const uint8_t SCK = GPIO12;
// SPI SD CARD
static const uint8_t CS_SDCARD = GPIO2;
// prog pins
static const uint8_t BOOT_MODE = GPIO47;
static const uint8_t ISP_TX = GPIO17;
static const uint8_t ISP_RX = GPIO18;
static const uint8_t NM_RESET = GPIO48;
/* End Pins on ESP32-S3-WROOM-1U-N4R8 */
/* Begin Analog Pins on ESP32-S3-WROOM-1U-N4R8 */
static const uint8_t ADC1_CH3 = GPIO4;
static const uint8_t ADC1_CH4 = GPIO5;
static const uint8_t ADC1_CH5 = GPIO6;
static const uint8_t ADC1_CH6 = GPIO7;
static const uint8_t ADC2_CH4 = GPIO15;
static const uint8_t ADC2_CH5 = GPIO16;
static const uint8_t ADC2_CH6 = GPIO17;
static const uint8_t ADC2_CH7 = GPIO18;
static const uint8_t ADC1_CH7 = GPIO8;
static const uint8_t ADC2_CH8 = GPIO19;
static const uint8_t ADC2_CH9 = GPIO20;
static const uint8_t ADC1_CH2 = GPIO3;
static const uint8_t ADC1_CH8 = GPIO9;
static const uint8_t ADC1_CH9 = GPIO10;
static const uint8_t ADC2_CH0 = GPIO11;
static const uint8_t ADC2_CH1 = GPIO12;
static const uint8_t ADC2_CH2 = GPIO13;
static const uint8_t ADC2_CH3 = GPIO14;
static const uint8_t ADC1_CH1 = GPIO2;
static const uint8_t ADC1_CH0 = GPIO1;
/* End Analog Pins on ESP32-S3-WROOM-1U-N4R8 */
/* Begin Touch Pins on ESP32-S3-WROOM-1U-N4R8 */
static const uint8_t TOUCH4 = GPIO4;
static const uint8_t TOUCH5 = GPIO5;
static const uint8_t TOUCH6 = GPIO6;
static const uint8_t TOUCH7 = GPIO7;
static const uint8_t TOUCH8 = GPIO8;
static const uint8_t TOUCH3 = GPIO3;
static const uint8_t TOUCH9 = GPIO9;
static const uint8_t TOUCH10 = GPIO10;
static const uint8_t TOUCH11 = GPIO11;
static const uint8_t TOUCH12 = GPIO12;
static const uint8_t TOUCH13 = GPIO13;
static const uint8_t TOUCH14 = GPIO14;
static const uint8_t TOUCH2 = GPIO2;
static const uint8_t TOUCH1 = GPIO1;
/* End Touch Pins on ESP32-S3-WROOM-1U-N4R8 */
static const uint8_t TX = GPIO17;
static const uint8_t RX = GPIO18;
static const uint8_t SDA = GPIO1;
static const uint8_t SCL = GPIO0;
static const uint8_t NAMINO_ARANCIO_I2C_SDA = SDA;
static const uint8_t NAMINO_ARANCIO_I2C_SCL = SCL;
static const uint8_t NM_I2C_SDA = SDA;
static const uint8_t NM_I2C_SCL = SCL;
static const uint8_t A0 = ADC1_CH0;
static const uint8_t A1 = ADC1_CH1;
static const uint8_t A2 = ADC1_CH2;
static const uint8_t A3 = ADC1_CH3;
static const uint8_t A4 = ADC1_CH4;
static const uint8_t A5 = ADC1_CH5;
static const uint8_t A6 = ADC1_CH6;
static const uint8_t A7 = ADC1_CH7;
static const uint8_t A8 = ADC2_CH0;
static const uint8_t A9 = ADC2_CH1;
static const uint8_t A10 = ADC2_CH2;
static const uint8_t A11 = ADC2_CH3;
static const uint8_t A12 = ADC2_CH4;
static const uint8_t A13 = ADC2_CH5;
static const uint8_t A14 = ADC2_CH6;
static const uint8_t A15 = ADC2_CH7;
static const uint8_t DAC1 = 0;
static const uint8_t DAC2 = 0;
/* Begin Arduino naming */
static const uint8_t RESET_ARDUINO = GPIO46;
static const uint8_t PC0 = GPIO3;
static const uint8_t PC1 = GPIO4;
static const uint8_t PC2 = GPIO5;
static const uint8_t PC3 = GPIO6;
static const uint8_t PC4 = GPIO7;
static const uint8_t PC5 = GPIO8;
static const uint8_t PB5 = GPIO35;
static const uint8_t PB4 = GPIO36;
static const uint8_t PB3 = GPIO37;
static const uint8_t PB2 = GPIO38;
static const uint8_t PB1 = GPIO39;
static const uint8_t PB0 = GPIO40;
static const uint8_t PD7 = GPIO41;
static const uint8_t PD6 = GPIO42;
static const uint8_t PD5 = GPIO21;
static const uint8_t PD4 = GPIO16;
static const uint8_t PD3 = GPIO14;
static const uint8_t PD2 = GPIO9;
static const uint8_t PD1 = GPIO17;
static const uint8_t PD0 = GPIO18;
/* End Arduino naming */
/* Begin alternate naming */
static const uint8_t J1_io0 = SCL;
static const uint8_t J2_35 = PB5;
static const uint8_t J2_36 = PB4;
static const uint8_t J2_37 = PB3;
static const uint8_t J2_38 = PB2;
static const uint8_t J2_39 = PB1;
static const uint8_t J2_40 = PB0;
static const uint8_t J3_io8 = PD7;
static const uint8_t J3_7 = PD6;
static const uint8_t J3_21 = PD5;
static const uint8_t J3_16 = PD4;
static const uint8_t J3_14 = PD3;
static const uint8_t J3_9 = PD2;
static const uint8_t J3_17 = TX;
static const uint8_t J3_18 = RX;
static const uint8_t J4_cs_io2 = CS_SDCARD;
static const uint8_t J4_sclk = SCK;
static const uint8_t J4_mosi = MOSI;
static const uint8_t J4_miso = MISO;
static const uint8_t J9_io3 = PC0;
static const uint8_t J9_4 = PC1;
static const uint8_t J9_5 = PC2;
static const uint8_t J9_6 = PC3;
static const uint8_t J9_7 = PC4;
static const uint8_t J9_8 = PC5;
static const uint8_t J10_enc_A = 0;
static const uint8_t J10_enc_B = 0;
static const uint8_t J10_sw = 0;
/* End alternate naming */
#endif /* Pins_Arduino_h */