Skip to content

Commit 575c45d

Browse files
authored
Merge pull request esp8266#4222 from boneskull/oak-fix
add missing constants to variants/oak
2 parents 589eb29 + 87b9097 commit 575c45d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

variants/oak/pins_arduino.h

+7-2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
#ifndef Pins_Arduino_h
2727
#define Pins_Arduino_h
2828

29+
#include "../generic/common.h"
30+
31+
#define PIN_WIRE_SDA (2)
32+
#define PIN_WIRE_SCL (0)
33+
2934
static const uint8_t P0 = 2;
3035
static const uint8_t P1 = 5;
3136
static const uint8_t P2 = 0;
@@ -39,8 +44,8 @@ static const uint8_t P9 = 14;
3944
static const uint8_t P10 = 16;
4045
static const uint8_t P11 = 17;
4146

42-
static const uint8_t SDA = 2;
43-
static const uint8_t SCL = 0;
47+
static const uint8_t SDA = PIN_WIRE_SDA;
48+
static const uint8_t SCL = PIN_WIRE_SCL;
4449

4550
static const uint8_t SS = 15;
4651
static const uint8_t MOSI = 13;

0 commit comments

Comments
 (0)