1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00

Add PIN defines, so the pins can easily be used by external libraries

See: arduino/Arduino#4814

For instance this is used by the USB Host library: 231fb542a8
This commit is contained in:
Kristian Sloth Lauszus
2016-10-26 01:29:14 -05:00
parent 4897e0006b
commit 6d6f22e6be
16 changed files with 113 additions and 47 deletions

View File

@ -28,8 +28,11 @@
#include "../generic/common.h"
static const uint8_t SDA = 4;
static const uint8_t SCL = 5;
#define PIN_WIRE_SDA (4)
#define PIN_WIRE_SCL (5)
static const uint8_t SDA = PIN_WIRE_SDA;
static const uint8_t SCL = PIN_WIRE_SCL;
static const uint8_t LED_BUILTIN = 0;
static const uint8_t BUILTIN_LED = 0;