File tree 1 file changed +35
-0
lines changed
variants/sparkfun_esp32c6_thing_plus
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
+ #include "soc/soc_caps.h"
6
+
7
+ #define PIN_NEOPIXEL 23
8
+ // BUILTIN_LED can be used in new Arduino API digitalWrite() like in Blink.ino
9
+ static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + PIN_NEOPIXEL ;
10
+ #define BUILTIN_LED LED_BUILTIN // backward compatibility
11
+ #define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN
12
+ // RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API neopixelWrite()
13
+ #define RGB_BUILTIN LED_BUILTIN
14
+ #define RGB_BRIGHTNESS 64
15
+
16
+ static const uint8_t TX = 16 ;
17
+ static const uint8_t RX = 17 ;
18
+
19
+ static const uint8_t SDA = 6 ;
20
+ static const uint8_t SCL = 7 ;
21
+
22
+ static const uint8_t SS = 5 ;
23
+ static const uint8_t MOSI = 20 ;
24
+ static const uint8_t MISO = 21 ;
25
+ static const uint8_t SCK = 19 ;
26
+
27
+ static const uint8_t A0 = 0 ;
28
+ static const uint8_t A1 = 1 ;
29
+ static const uint8_t A2 = 2 ;
30
+ static const uint8_t A3 = 3 ;
31
+ static const uint8_t A4 = 4 ;
32
+ static const uint8_t A5 = 5 ;
33
+ static const uint8_t A6 = 6 ;
34
+
35
+ #endif /* Pins_Arduino_h */
You can’t perform that action at this time.
0 commit comments