Add "WEMOS LoLin32" boards support. (#35)

This commit is contained in:
WEMOS Electronics
2016-11-08 02:54:56 -06:00
committed by Me No Dev
parent fb8f1244b7
commit 6cc5a9f05b
3 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,23 @@
#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)
#define LED_BUILTIN 2
#define KEY_BUILTIN 0
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 */