clear display on init to avoid static

This commit is contained in:
liamcottle
2025-04-01 14:46:48 +13:00
parent 0a62ab663f
commit 87443ad43f
4 changed files with 8 additions and 0 deletions
+5
View File
@@ -20,6 +20,11 @@ void SSD1306Display::turnOff() {
_isOn = false;
}
void SSD1306Display::clear() {
display.clearDisplay();
display.display();
}
void SSD1306Display::startFrame(Color bkg) {
display.clearDisplay(); // TODO: apply 'bkg'
_color = SSD1306_WHITE;