libSSD1306 icon indicating copy to clipboard operation
libSSD1306 copied to clipboard

clear/update display before turn on?

Open BillPlunkett opened this issue 5 years ago • 0 comments

Is anyone else is out there observing a short period after power up & initialization during which the display has random pixels set? Below is a fix for that (also need to remove const qualifier from init function).

// These seemed to be missing from the init sequence.
// We were seeing a brief 'starfield' on the display without them,
// presumably because the display ram isn't cleared by h/w reset
clear();
displayUpdate();

// Display On - AFh

sendCommand(OLED_SET_DISPLAY_ON);

BillPlunkett avatar Sep 20 '19 13:09 BillPlunkett