1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-10 14:42:08 +03:00

Merge pull request #1746 from cmmakerclub/master

Add pre-defined ESPRESSO_LITE_VERSION to ESPresso Lite * variants
This commit is contained in:
Ivan Grokhotkov
2016-03-10 12:53:00 +03:00
2 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,8 @@
#define NUM_DIGITAL_PINS 17
#define NUM_ANALOG_INPUTS 1
#define ESPRESSO_LITE_VERSION 1
#define analogInputToDigitalPin(p) ((p > 0)?NOT_A_PIN:0)
#define digitalPinToInterrupt(p) (((p) < EXTERNAL_NUM_INTERRUPTS)?p:NOT_A_PIN)
#define digitalPinHasPWM(p) (((p) < NUM_DIGITAL_PINS)?p:NOT_A_PIN)

View File

@ -30,6 +30,8 @@
#define NUM_DIGITAL_PINS 17
#define NUM_ANALOG_INPUTS 1
#define ESPRESSO_LITE_VERSION 2
#define analogInputToDigitalPin(p) ((p > 0)?NOT_A_PIN:0)
#define digitalPinToInterrupt(p) (((p) < EXTERNAL_NUM_INTERRUPTS)?p:NOT_A_PIN)
#define digitalPinHasPWM(p) (((p) < NUM_DIGITAL_PINS)?p:NOT_A_PIN)