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
2k stars 638 forks source link

Use multiple OLEDs via I2C #87

Closed derhannesb closed 7 years ago

derhannesb commented 7 years ago

When trying to use multiple OLEDs I get the following error:

Linking .pioenvs\nodemcuv2\firmware.elf .pioenvs\nodemcuv2\src\main.o:(.text._ZN11OLEDDisplayC2Ev[_ZN11OLEDDisplayC5Ev]+0x0): undefined reference to `vtable for OLEDDisplay'

Code: SH1106 display(0x3c, D1, D2); SH1106 display2(0x3c, D3, D4);

The same happens when using different i2c addresses: SH1106 display(0x3c, D1, D2); SH1106 display2(0x3d, D1, D2);

FWeinb commented 7 years ago

I did not have time to do a proper release but this issue is fixed on master. See this for how to fix this yourself. I hope there will be another release some time.