Skip to content

Commit 7d9b474

Browse files
committed
Make TwiMaster-portion of TwiMasterOrSlave singletion available for TwoWire
1 parent cbb5a59 commit 7d9b474

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

cores/esp8266/core_esp8266_si2c.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ class TwiMasterOrSlave : public TwiMaster
123123
};
124124

125125
static TwiMasterOrSlave twi;
126+
TwiMaster& twiMasterSingleton = twi;
126127

127128
#ifndef FCPU80
128129
#define FCPU80 80000000L

cores/esp8266/twi.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ class TwiMaster
9797
uint8_t status();
9898
};
9999

100+
extern TwiMaster& twiMasterSingleton;
101+
100102
#endif
101103

102104
#endif

0 commit comments

Comments
 (0)