|
| 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 0x303A |
| 8 | +#define USB_PID 0x1001 |
| 9 | +#define USB_MANUFACTURER "Unexpected Maker" |
| 10 | +#define USB_PRODUCT "TinyC6" |
| 11 | +#define USB_SERIAL "" |
| 12 | + |
| 13 | +static const uint8_t TX = 16; |
| 14 | +static const uint8_t RX = 17; |
| 15 | + |
| 16 | +static const uint8_t SDA = 6; |
| 17 | +static const uint8_t SCL = 7; |
| 18 | + |
| 19 | +static const uint8_t SS = 18; |
| 20 | +static const uint8_t MOSI = 21; |
| 21 | +static const uint8_t MISO = 20; |
| 22 | +static const uint8_t SDO = 21; |
| 23 | +static const uint8_t SDI = 20; |
| 24 | +static const uint8_t SCK = 19; |
| 25 | + |
| 26 | +static const uint8_t A0 = 1; |
| 27 | +static const uint8_t A1 = 2; |
| 28 | +static const uint8_t A2 = 3; |
| 29 | +static const uint8_t A3 = 4; |
| 30 | +static const uint8_t A4 = 5; |
| 31 | +static const uint8_t A5 = 6; |
| 32 | +static const uint8_t A6 = 7; |
| 33 | +static const uint8_t A7 = 8; |
| 34 | +static const uint8_t A8 = 9; |
| 35 | + |
| 36 | +static const uint8_t T1 = 1; |
| 37 | +static const uint8_t T2 = 2; |
| 38 | +static const uint8_t T3 = 3; |
| 39 | +static const uint8_t T4 = 4; |
| 40 | +static const uint8_t T5 = 5; |
| 41 | +static const uint8_t T6 = 6; |
| 42 | +static const uint8_t T7 = 7; |
| 43 | +static const uint8_t T8 = 8; |
| 44 | +static const uint8_t T9 = 9; |
| 45 | + |
| 46 | +static const uint8_t VBAT_SENSE = 4; |
| 47 | +static const uint8_t VBUS_SENSE = 10; |
| 48 | + |
| 49 | +static const uint8_t RGB_DATA = 23; |
| 50 | +// RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API neopixelWrite() |
| 51 | +#define RGB_BUILTIN (RGB_DATA + SOC_GPIO_PIN_COUNT) |
| 52 | +#define RGB_BRIGHTNESS 64 |
| 53 | +// BUILTIN_LED can be used in new Arduino API digitalWrite() like in Blink.ino |
| 54 | +static const uint8_t LED_BUILTIN = RGB_BUILTIN; |
| 55 | +#define BUILTIN_LED LED_BUILTIN // backward compatibility |
| 56 | +#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN |
| 57 | + |
| 58 | +static const uint8_t RGB_PWR = 22; |
| 59 | + |
| 60 | +#endif /* Pins_Arduino_h */ |
0 commit comments