* fixes non existent esp32_adc2gpio * remove blank spaces (style) Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
24 lines
510 B
C
24 lines
510 B
C
#ifndef Pins_Arduino_h
|
|
#define Pins_Arduino_h
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
#define EXTERNAL_NUM_INTERRUPTS 4
|
|
#define NUM_DIGITAL_PINS 4
|
|
#define NUM_ANALOG_INPUTS 2
|
|
|
|
#define analogInputToDigitalPin(p) (((p)<6)?(analogChannelToDigitalPin(p)):-1)
|
|
#define digitalPinToInterrupt(p) (((p)<22)?(p):-1)
|
|
#define digitalPinHasPWM(p) (p < 22)
|
|
|
|
static const uint8_t TX = 21;
|
|
static const uint8_t RX = 20;
|
|
|
|
static const uint8_t BOOT_BTN = 9;
|
|
static const uint8_t PIR = 5;
|
|
|
|
|
|
|
|
#endif /* Pins_Arduino_h */
|
|
|