Skip to content

Commit f90368e

Browse files
committed
Add note about i2cBus parameter
Fixes #387
1 parent 01fe242 commit f90368e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/SSD1306TwoScreenDemo/SSD1306TwoScreenDemo.ino

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@
3434
#include "images.h"
3535

3636
// Initialize the OLED display using Wire library
37+
//
38+
// GOTCHA!
39+
//
40+
// Pay attention if you work with ESP32 as some have two I2C buses.
41+
// You need to set the 'i2cBus' constructor parameter accordingly.
42+
// See https://github.com/ThingPulse/esp8266-oled-ssd1306/issues/387#issuecomment-2874437238 for a discussion.
3743
SSD1306Wire display(0x3c, 0, 14);
3844
SSD1306Wire display2(0x3c, 5, 4);
3945

0 commit comments

Comments
 (0)