|
4 | 4 | #include <stdint.h> |
5 | 5 | #include "soc/soc_caps.h" |
6 | 6 |
|
7 | | -#define PIN_NEOPIXEL 9 |
| 7 | +#define PIN_NEOPIXEL 9 |
8 | 8 | // BUILTIN_LED can be used in new Arduino API digitalWrite() like in Blink.ino |
9 | 9 | static const uint8_t LED_BUILTIN = 15; |
10 | | -#define BUILTIN_LED LED_BUILTIN // backward compatibility |
| 10 | +#define BUILTIN_LED LED_BUILTIN // backward compatibility |
11 | 11 | #define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN |
12 | 12 | // RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API neopixelWrite() |
13 | | -#define RGB_BUILTIN (SOC_GPIO_PIN_COUNT+PIN_NEOPIXEL) |
| 13 | +#define RGB_BUILTIN (SOC_GPIO_PIN_COUNT + PIN_NEOPIXEL) |
14 | 14 | #define RGB_BRIGHTNESS 64 |
15 | 15 |
|
16 | | - |
17 | | -#define NEOPIXEL_I2C_POWER 20 // I2C power pin |
18 | | -#define PIN_NEOPIXEL_I2C_POWER 20 // I2C power pin |
| 16 | +#define NEOPIXEL_I2C_POWER 20 // I2C power pin |
| 17 | +#define PIN_NEOPIXEL_I2C_POWER 20 // I2C power pin |
19 | 18 |
|
20 | 19 | static const uint8_t TX = 16; |
21 | 20 | static const uint8_t RX = 17; |
22 | 21 |
|
23 | 22 | static const uint8_t SDA = 19; |
24 | 23 | static const uint8_t SCL = 18; |
25 | 24 |
|
26 | | -static const uint8_t SS = 0; |
27 | | -static const uint8_t MOSI = 22; |
28 | | -static const uint8_t MISO = 23; |
29 | | -static const uint8_t SCK = 21; |
| 25 | +static const uint8_t SS = 0; |
| 26 | +static const uint8_t MOSI = 22; |
| 27 | +static const uint8_t MISO = 23; |
| 28 | +static const uint8_t SCK = 21; |
30 | 29 |
|
31 | 30 | static const uint8_t A0 = 1; |
32 | 31 | static const uint8_t A1 = 4; |
|
0 commit comments