u8g2 and ssd1306
Posted: Mon Oct 15, 2018 7:12 pm
I've been flailing with a tiny ssd1306 display for the ESP8266 and have run into a hurdle that I don't understand. There are tons of examples using the outdated u8g, and lots of examples using Arduino, but precious few for u8g2 and LUA. When I attempt to initialize the display using:
disp = u8g2.ssd1306_i2c_128x64_noname(id,sla) --id=0, sla=0x3c
I get the error:
attempt to call field 'ssd1306_i2c_128x64_noname' (a nil value)
In the u8g2 documentation it says:
Add the desired entries to the I2C or SPI display tables in app/include/u8g2_displays.h.
This sounds like something that must be done when the firmware is built...otherwise, where is the app/include/u8g2_displays.h directory? Is it safe to assume that this happened when the firmware was built (using Marcel Stoer's handy site) since I specified the ssd1306 info? If so, any idea why I'm getting the nil value?
disp = u8g2.ssd1306_i2c_128x64_noname(id,sla) --id=0, sla=0x3c
I get the error:
attempt to call field 'ssd1306_i2c_128x64_noname' (a nil value)
In the u8g2 documentation it says:
Add the desired entries to the I2C or SPI display tables in app/include/u8g2_displays.h.
This sounds like something that must be done when the firmware is built...otherwise, where is the app/include/u8g2_displays.h directory? Is it safe to assume that this happened when the firmware was built (using Marcel Stoer's handy site) since I specified the ssd1306 info? If so, any idea why I'm getting the nil value?