|
| 1 | +#ifndef Pins_Arduino_h |
| 2 | +#define Pins_Arduino_h |
| 3 | + |
| 4 | +#include <stdint.h> |
| 5 | + |
| 6 | +#define EXTERNAL_NUM_INTERRUPTS 16 |
| 7 | +#define NUM_DIGITAL_PINS 40 |
| 8 | +#define NUM_ANALOG_INPUTS 16 |
| 9 | + |
| 10 | +#define analogInputToDigitalPin(p) (((p)<20)?(esp32_adc2gpio[(p)]):-1) |
| 11 | +#define digitalPinToInterrupt(p) (((p)<40)?(p):-1) |
| 12 | +#define digitalPinHasPWM(p) (p < 34) |
| 13 | + |
| 14 | +static const uint8_t TX = 1; |
| 15 | +static const uint8_t RX = 3; |
| 16 | + |
| 17 | +static const uint8_t SDA = 21; |
| 18 | +static const uint8_t SCL = 22; |
| 19 | + |
| 20 | +static const uint8_t SS = 5; |
| 21 | +static const uint8_t MOSI = 23; |
| 22 | +static const uint8_t MISO = 19; |
| 23 | +static const uint8_t SCK = 18; |
| 24 | + |
| 25 | +static const uint8_t A0 = 36; |
| 26 | +static const uint8_t A3 = 39; |
| 27 | +static const uint8_t A4 = 32; |
| 28 | +static const uint8_t A5 = 33; |
| 29 | +static const uint8_t A6 = 34; |
| 30 | +static const uint8_t A7 = 35; |
| 31 | +static const uint8_t A10 = 4; |
| 32 | +static const uint8_t A11 = 0; |
| 33 | +static const uint8_t A12 = 2; |
| 34 | +static const uint8_t A13 = 15; |
| 35 | +static const uint8_t A14 = 13; |
| 36 | +static const uint8_t A15 = 12; |
| 37 | +static const uint8_t A16 = 14; |
| 38 | +static const uint8_t A17 = 27; |
| 39 | +static const uint8_t A18 = 25; |
| 40 | +static const uint8_t A19 = 26; |
| 41 | + |
| 42 | +static const uint8_t T0 = 4; |
| 43 | +static const uint8_t T1 = 0; |
| 44 | +static const uint8_t T2 = 2; |
| 45 | +static const uint8_t T3 = 15; |
| 46 | +static const uint8_t T4 = 13; |
| 47 | +static const uint8_t T5 = 12; |
| 48 | +static const uint8_t T6 = 14; |
| 49 | +static const uint8_t T7 = 27; |
| 50 | +static const uint8_t T8 = 33; |
| 51 | +static const uint8_t T9 = 32; |
| 52 | + |
| 53 | +static const uint8_t DAC1 = 25; |
| 54 | +static const uint8_t DAC2 = 26; |
| 55 | + |
| 56 | +static const uint8_t BUZZER = 25; |
| 57 | +static const uint8_t RED_LED = 32; |
| 58 | +static const uint8_t YELLOW_LED = 33; |
| 59 | +static const uint8_t GREEN_LED = 16; |
| 60 | +static const uint8_t BLUE_LED = 17; |
| 61 | +static const uint8_t LDR = 36; |
| 62 | +static const uint8_t POT = 39; |
| 63 | +static const uint8_t RIGHT_PUTTON = 34; |
| 64 | +static const uint8_t LEFT_BUTTON = 35; |
| 65 | +static const uint8_t MOTOR1A = 32; |
| 66 | +static const uint8_t MOTOR1B = 33; |
| 67 | +static const uint8_t MOTOR2A = 16; |
| 68 | +static const uint8_t MOTOR2B = 17; |
| 69 | + |
| 70 | + |
| 71 | +#endif /* Pins_Arduino_h */ |
0 commit comments