1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

Add pre-defined ESPRESSO_LITE_VERSION

This commit is contained in:
Nat Weerawan 2016-03-10 12:08:31 +07:00
parent d2d1ca2fd2
commit a0454787b7
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)