|
| 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 "RFtek Electronics" |
| 10 | +#define USB_PRODUCT "cezerio mini dev ESP32C6" |
| 11 | +#define USB_SERIAL "" |
| 12 | + |
| 13 | +#define PIN_RGB_LED 15 |
| 14 | +// BUILTIN_LED can be used in new Arduino API digitalWrite() like in Blink.ino |
| 15 | +static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT + PIN_RGB_LED; |
| 16 | +#define BUILTIN_LED LED_BUILTIN // backward compatibility |
| 17 | +#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN |
| 18 | +// RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API rgbLedWrite() |
| 19 | +#define RGB_BUILTIN LED_BUILTIN |
| 20 | +#define RGBLED LED_BUILTIN |
| 21 | +#define RGB_BRIGHTNESS 64 |
| 22 | + |
| 23 | +static const uint8_t BUT_BUILTIN = 9; |
| 24 | +#define BUILTIN_BUT BUT_BUILTIN // backward compatibility |
| 25 | +#define BUT_BUILTIN BUT_BUILTIN // allow testing #ifdef BUT_BUILTIN |
| 26 | +#define BOOT BUT_BUILTIN |
| 27 | + |
| 28 | +static const uint8_t TX = 16; |
| 29 | +static const uint8_t RX = 17; |
| 30 | + |
| 31 | +static const uint8_t SDA = 8; |
| 32 | +static const uint8_t SCL = 7; |
| 33 | + |
| 34 | +static const uint8_t SS = 14; |
| 35 | +static const uint8_t MOSI = 22; |
| 36 | +static const uint8_t MISO = 23; |
| 37 | +static const uint8_t SCK = 21; |
| 38 | + |
| 39 | +static const uint8_t A0 = 0; |
| 40 | +static const uint8_t A1 = 1; |
| 41 | +static const uint8_t A2 = 2; |
| 42 | +static const uint8_t A3 = 3; |
| 43 | +static const uint8_t A6 = 6; |
| 44 | + |
| 45 | +static const uint8_t MATRIX = 8; |
| 46 | + |
| 47 | +#endif /* Pins_Arduino_h */ |
0 commit comments