|
| 1 | +#ifndef Pins_Arduino_h |
| 2 | +#define Pins_Arduino_h |
| 3 | + |
| 4 | +#include <stdint.h> |
| 5 | +#include "soc/soc_caps.h" |
| 6 | + |
| 7 | +#define USB_VID 0x1a86 |
| 8 | +#define USB_PID 0x7523 |
| 9 | + |
| 10 | +// Some boards have too low voltage on this pin (board design bug) |
| 11 | +// Use different pin with 3V and connect with 48 |
| 12 | +// and change this setup for the chosen pin (for example 38) |
| 13 | +static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + 48; |
| 14 | +#define BUILTIN_LED LED_BUILTIN // backward compatibility |
| 15 | +#define LED_BUILTIN LED_BUILTIN |
| 16 | +#define RGB_BUILTIN LED_BUILTIN |
| 17 | +#define RGB_BRIGHTNESS 64 |
| 18 | + |
| 19 | +static const uint8_t TX = 37; |
| 20 | +static const uint8_t RX = 40; |
| 21 | + |
| 22 | +static const uint8_t TXD2 = 17; |
| 23 | +static const uint8_t RXD2 = 18; |
| 24 | + |
| 25 | +static const uint8_t SDA = 19; |
| 26 | +static const uint8_t SCL = 20; |
| 27 | + |
| 28 | +static const uint8_t SS = 10; |
| 29 | +static const uint8_t MOSI = 11; |
| 30 | +static const uint8_t MISO = 13; |
| 31 | +static const uint8_t SCK = 12; |
| 32 | + |
| 33 | +static const uint8_t G0 = 0; |
| 34 | +static const uint8_t G1 = 1; |
| 35 | +static const uint8_t G2 = 2; |
| 36 | +static const uint8_t G3 = 3; |
| 37 | +static const uint8_t G4 = 4; |
| 38 | +static const uint8_t G5 = 5; |
| 39 | +static const uint8_t G6 = 6; |
| 40 | +static const uint8_t G7 = 7; |
| 41 | +static const uint8_t G8 = 8; |
| 42 | +static const uint8_t G9 = 9; |
| 43 | +static const uint8_t G11 = 11; |
| 44 | +static const uint8_t G12 = 12; |
| 45 | +static const uint8_t G13 = 13; |
| 46 | +static const uint8_t G14 = 14; |
| 47 | +static const uint8_t G17 = 17; |
| 48 | +static const uint8_t G18 = 18; |
| 49 | +static const uint8_t G19 = 19; |
| 50 | +static const uint8_t G20 = 20; |
| 51 | +static const uint8_t G21 = 21; |
| 52 | +static const uint8_t G33 = 33; |
| 53 | +static const uint8_t G34 = 34; |
| 54 | +static const uint8_t G35 = 35; |
| 55 | +static const uint8_t G36 = 36; |
| 56 | +static const uint8_t G37 = 37; |
| 57 | +static const uint8_t G38 = 38; |
| 58 | +static const uint8_t G45 = 45; |
| 59 | +static const uint8_t G46 = 46; |
| 60 | +static const uint8_t G47 = 47; |
| 61 | +static const uint8_t G48 = 48; |
| 62 | + |
| 63 | +static const uint8_t ADC = 38; |
| 64 | + |
| 65 | +#endif /* Pins_Arduino_h */ |
0 commit comments