ThingPulse / esp8266-oled-ssd1306

Driver for the SSD1306 and SH1106 based 128x64, 128x32, 64x48 pixel OLED display running on ESP8266/ESP32
https://thingpulse.com
Other
1.99k stars 637 forks source link

Add support for I2c mux 8 channel - SSD1306 #308

Closed acaspi closed 3 years ago

acaspi commented 3 years ago

This might be done more generic - but it works well for ssd1306 and does not seem to impact other protocols so decided to open a PR.

gives the option to support a hardware multiplexer and utilize up to 8 oled screens using only a single i2c address. simply add in the constructor the mux i2c address and the pin used in the mux for current screen.

Also added an option to use external memory like in some of the esp32 flavours.