arduino-esp32/variants/Bee_Motion_Mini/pins_arduino.h
Rodrigo Garcia 11c7d8e62a
fixes non existent esp32_adc2gpio (#7526)
* 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>
2022-12-13 11:54:59 +02:00

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 */