|
| 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 | + |
| 10 | +#define EXTERNAL_NUM_INTERRUPTS 46 |
| 11 | +#define NUM_DIGITAL_PINS 48 |
| 12 | +#define NUM_ANALOG_INPUTS 20 |
| 13 | + |
| 14 | +#define analogInputToDigitalPin(p) (((p)<20)?(analogChannelToDigitalPin(p)):-1) |
| 15 | +#define digitalPinToInterrupt(p) (((p)<48)?(p):-1) |
| 16 | +#define digitalPinHasPWM(p) (p < 46) |
| 17 | + |
| 18 | +static const uint8_t TX = 43; |
| 19 | +static const uint8_t RX = 44; |
| 20 | + |
| 21 | +static const uint8_t SDA = 8; |
| 22 | +static const uint8_t SCL = 9; |
| 23 | + |
| 24 | +static const uint8_t SS = 10; |
| 25 | +static const uint8_t MOSI = 11; |
| 26 | +static const uint8_t MISO = 13; |
| 27 | +static const uint8_t SCK = 12; |
| 28 | + |
| 29 | +#define LCD_CS SS |
| 30 | +#define LCD_SCK SCK |
| 31 | +#define LCD_SDA MOSI |
| 32 | +static const uint8_t LCD_DC = 21; |
| 33 | +static const uint8_t LCD_RES = 14; |
| 34 | + |
| 35 | +static const uint8_t BTN_A = 4; |
| 36 | +static const uint8_t BTN_B = 5; |
| 37 | +static const uint8_t BTN_C = 45; |
| 38 | +#define KEY_BUILTIN BTN_A |
| 39 | + |
| 40 | +static const uint8_t A0 = 1; |
| 41 | +static const uint8_t A1 = 2; |
| 42 | +static const uint8_t A2 = 3; |
| 43 | +static const uint8_t A3 = 4; |
| 44 | +static const uint8_t A4 = 5; |
| 45 | +static const uint8_t A5 = 6; |
| 46 | +static const uint8_t A6 = 7; |
| 47 | +static const uint8_t A7 = 8; |
| 48 | +static const uint8_t A8 = 9; |
| 49 | +static const uint8_t A9 = 10; |
| 50 | +static const uint8_t A10 = 11; |
| 51 | +static const uint8_t A11 = 12; |
| 52 | +static const uint8_t A12 = 13; |
| 53 | +static const uint8_t A13 = 14; |
| 54 | +static const uint8_t A14 = 15; |
| 55 | +static const uint8_t A15 = 16; |
| 56 | +static const uint8_t A16 = 17; |
| 57 | +static const uint8_t A17 = 18; |
| 58 | +static const uint8_t A18 = 19; |
| 59 | +static const uint8_t A19 = 20; |
| 60 | + |
| 61 | +static const uint8_t T1 = 1; |
| 62 | +static const uint8_t T2 = 2; |
| 63 | +static const uint8_t T3 = 3; |
| 64 | +static const uint8_t T4 = 4; |
| 65 | +static const uint8_t T5 = 5; |
| 66 | +static const uint8_t T6 = 6; |
| 67 | +static const uint8_t T7 = 7; |
| 68 | +static const uint8_t T8 = 8; |
| 69 | +static const uint8_t T9 = 9; |
| 70 | +static const uint8_t T10 = 10; |
| 71 | +static const uint8_t T11 = 11; |
| 72 | +static const uint8_t T12 = 12; |
| 73 | +static const uint8_t T13 = 13; |
| 74 | +static const uint8_t T14 = 14; |
| 75 | + |
| 76 | +#endif /* Pins_Arduino_h */ |
0 commit comments