|
| 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)?(analogChannelToDigitalPin(p)):-1) |
| 11 | +#define digitalPinToInterrupt(p) (((p)<40)?(p):-1) |
| 12 | +#define digitalPinHasPWM(p) (p < 34) |
| 13 | + |
| 14 | +#if defined (ARDUINO_ESP32_GATEWAY_E) || defined (ARDUINO_ESP32_GATEWAY_F) |
| 15 | +#define ETH_CLK_MODE ETH_CLOCK_GPIO17_OUT |
| 16 | +#define ETH_PHY_POWER 5 |
| 17 | +#endif |
| 18 | + |
| 19 | +static const uint8_t LED_BUILTIN = 33; |
| 20 | +#define BUILTIN_LED LED_BUILTIN // backward compatibility |
| 21 | +#define LED_BUILTIN LED_BUILTIN |
| 22 | + |
| 23 | +static const uint8_t KEY_BUILTIN = 34; |
| 24 | + |
| 25 | +static const uint8_t SCL = 16; // This is extention pin 11 |
| 26 | +static const uint8_t SDA = 32; // This is extention pin 13 |
| 27 | + |
| 28 | +static const uint8_t SS = 5; |
| 29 | +static const uint8_t MOSI = 23; |
| 30 | +static const uint8_t MISO = 19; |
| 31 | +static const uint8_t SCK = 18; |
| 32 | + |
| 33 | +static const uint8_t TX = 1; |
| 34 | +static const uint8_t RX = 3; |
| 35 | + |
| 36 | +static const uint8_t A0 = 36; |
| 37 | +static const uint8_t A3 = 39; |
| 38 | +static const uint8_t A4 = 32; |
| 39 | +static const uint8_t A7 = 35; |
| 40 | + |
| 41 | +static const uint8_t T9 = 32; |
| 42 | + |
| 43 | +#if defined (ARDUINO_ESP32_GATEWAY_F) |
| 44 | +#define BOARD_HAS_1BIT_SDMMC |
| 45 | +#endif |
| 46 | + |
| 47 | +#endif /* Pins_Arduino_h */ |
0 commit comments