You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given that library doesn't leverage hardware I2C and I need low energy consumption, I wanted to try U8G2. However, I tried all IC2 128x64 constructors and didn't get it to work.
Hi!
In case anybody else is running into this: I managed to this OLED display working using https://github.com/durydevelop/arduino-lib-oled with the code
Given that library doesn't leverage hardware I2C and I need low energy consumption, I wanted to try U8G2. However, I tried all IC2 128x64 constructors and didn't get it to work.
I did notice that https://github.com/durydevelop/arduino-lib-oled sends different data to the chip than e.g. with
U8G2_SH1106_128X64_VCOMH0_F_SW_I2C u8g2(U8G2_R0, A3, A2, U8X8_PIN_NONE)
. To see this, I changedhttps://github.com/durydevelop/arduino-lib-oled/blob/f29660f46bd523d7a724b0f2b5f86ef60dcb2546/src/oled.cpp#L188-L190
to
Here's the output of this, with some annotations referring to the
Serial.printf
s in the above code. The first bytes are coming from https://github.com/durydevelop/arduino-lib-oled/blob/f29660f46bd523d7a724b0f2b5f86ef60dcb2546/src/oled.cpp#L260-L299 and differ from whatU8G2_SH1106_128X64_VCOMH0_F_SW_I2C()
produces.Does anybody have more knowledge than me to point me to what changes U8G2 would be required to make this chip work?
The text was updated successfully, but these errors were encountered: