me-no-dev
2016-12-12 02:12:13 +02:00
parent 54b1b8b1d3
commit a6c02bc710
11 changed files with 28 additions and 18 deletions

View File

@ -65,6 +65,7 @@ typedef struct {
} esp32_gpioMux_t;
extern const esp32_gpioMux_t esp32_gpioMux[40];
extern const int8_t esp32_adc2gpio[20];
#define digitalPinIsValid(pin) ((pin) < 40 && esp32_gpioMux[(pin)].reg)
#define digitalPinCanOutput(pin) ((pin) < 34 && esp32_gpioMux[(pin)].reg)