Skip to content

Commit bb6f5dd

Browse files
committed
Compatibility with the multi-master i2c patch for esp8266
See esp8266/Arduino#7911
1 parent 093f6d9 commit bb6f5dd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Adafruit_SSD1306.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
@note Call the object's begin() function before use -- buffer
169169
allocation is performed there!
170170
*/
171-
Adafruit_SSD1306::Adafruit_SSD1306(uint8_t w, uint8_t h, TwoWire *twi,
171+
Adafruit_SSD1306::Adafruit_SSD1306(uint8_t w, uint8_t h, TwoWireBase *twi,
172172
int8_t rst_pin, uint32_t clkDuring,
173173
uint32_t clkAfter)
174174
: Adafruit_GFX(w, h), spi(NULL), wire(twi ? twi : &Wire), buffer(NULL),

Adafruit_SSD1306.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ typedef uint32_t PortMask;
126126
class Adafruit_SSD1306 : public Adafruit_GFX {
127127
public:
128128
// NEW CONSTRUCTORS -- recommended for new projects
129-
Adafruit_SSD1306(uint8_t w, uint8_t h, TwoWire *twi = &Wire,
129+
Adafruit_SSD1306(uint8_t w, uint8_t h, TwoWireBase *twi = &Wire,
130130
int8_t rst_pin = -1, uint32_t clkDuring = 400000UL,
131131
uint32_t clkAfter = 100000UL);
132132
Adafruit_SSD1306(uint8_t w, uint8_t h, int8_t mosi_pin, int8_t sclk_pin,
@@ -169,7 +169,7 @@ class Adafruit_SSD1306 : public Adafruit_GFX {
169169

170170
SPIClass *spi; ///< Initialized during construction when using SPI. See
171171
///< SPI.cpp, SPI.h
172-
TwoWire *wire; ///< Initialized during construction when using I2C. See
172+
TwoWireBase *wire; ///< Initialized during construction when using I2C. See
173173
///< Wire.cpp, Wire.h
174174
uint8_t *buffer; ///< Buffer data used for display buffer. Allocated when
175175
///< begin method is called.

0 commit comments

Comments
 (0)