From 67fd6521777a16e406639a0eb0d113bf2e896f97 Mon Sep 17 00:00:00 2001 From: lamloei Date: Tue, 22 Nov 2016 02:16:13 +0700 Subject: [PATCH] Create pins_arduino.h for Node32s(#64) --- variants/node32s/pins_arduino.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 variants/node32s/pins_arduino.h diff --git a/variants/node32s/pins_arduino.h b/variants/node32s/pins_arduino.h new file mode 100644 index 00000000..9a7ecd3e --- /dev/null +++ b/variants/node32s/pins_arduino.h @@ -0,0 +1,20 @@ +#ifndef Pins_Arduino_h +#define Pins_Arduino_h + +#define EXTERNAL_NUM_INTERRUPTS 16 +#define NUM_DIGITAL_PINS 40 +#define NUM_ANALOG_INPUTS 18 + +#define analogInputToDigitalPin(p) +#define digitalPinToInterrupt(p) (((p)<40)?(p):-1) +#define digitalPinHasPWM(p) (p < 34) + +static const uint8_t SDA = 21; +static const uint8_t SCL = 22; + +static const uint8_t SS = 5; +static const uint8_t MOSI = 23; +static const uint8_t MISO = 19; +static const uint8_t SCK = 18; + +#endif /* Pins_Arduino_h */