ThingPulse / esp8266-weather-station

ESP8266 Weather Station library supporting OpenWeatherMap, Aeris and other sources
MIT License
1.07k stars 363 forks source link

Add second overlay to acknowledge button press? #45

Closed terrag42 closed 5 years ago

terrag42 commented 7 years ago

Hello, I noticed that there is a place to add more overlays. I'd like to add overlay number 2 that shows a "mode" message for one second when a button is pressed, then switches back to the normal overlay (number 1). Is this possible? Here's what I am thinking:

`OverlayCallback overlays[ ] = { drawHeaderOverlay, MoonMode };

int numberOfOverlays = 2;

void MoonMode(OLEDDisplay *display, String label) { display->clear(); display->setTextAlignment(TEXT_ALIGN_CENTER); display->setFont(ArialMT_Plain_10); display->drawString(2, 52, "Moon Mode:"); display->drawString(64, 52, label); display->display(); }`

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.