Skip to content

Commit 6779646

Browse files
committed
SSD1306: don't call begin again on i2c (2nd bus)
1 parent 7ce2b17 commit 6779646

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/i2c/drivers/WipperSnapper_I2C_Driver_Out_Ssd1306.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class WipperSnapper_I2C_Driver_Out_Ssd1306
6868
bool begin() {
6969
// Attempt to create and allocate a SSD1306 obj.
7070
_display = new Adafruit_SSD1306(_width, _height, _i2c);
71-
if (!_display->begin(SSD1306_SWITCHCAPVCC, _sensorAddress))
71+
if (!_display->begin(SSD1306_SWITCHCAPVCC, _sensorAddress, false, false))
7272
return false;
7373
// Configure the text size and color
7474
_display->setTextSize(_text_sz);

0 commit comments

Comments
 (0)