Changed first bytes for Command::PreChargePeriod and Command::VcomhDeselect to be what they should be in the datasheet (0xD9 and 0xDB, respectively).
This fix got the driver working properly for my hardware setup (Raspberry Pi Zero W + WaveShare SH1106 HAT).
Before this fix, the display would behave differently in based on what seemed to be background cosmic radiation; sometimes it would work perfectly, sometimes it would go dark after a few seconds of displaying something.
Changed first bytes for
Command::PreChargePeriod
andCommand::VcomhDeselect
to be what they should be in the datasheet (0xD9
and0xDB
, respectively).This fix got the driver working properly for my hardware setup (Raspberry Pi Zero W + WaveShare SH1106 HAT). Before this fix, the display would behave differently in based on what seemed to be background cosmic radiation; sometimes it would work perfectly, sometimes it would go dark after a few seconds of displaying something.
This relates to issue https://github.com/jamwaffles/sh1106/issues/7.