Add board ESPea32 (#36)

* Add from original Arduino.h

* Add board "ESPea32"

* cleanup

* cleanup

* Change SS to 5
This commit is contained in:
volca
2016-11-12 01:06:13 +08:00
committed by Me No Dev
parent bb9ea85ae2
commit d1b94df9a9
2 changed files with 64 additions and 1 deletions

View File

@ -0,0 +1,22 @@
#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 5
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 */