Double buffering and Force Clear

Attempting to clean up flicker - otherwise working
This commit is contained in:
Chuck
2025-04-07 21:31:26 -05:00
parent a5f91040f6
commit d49f901ffc
4 changed files with 32 additions and 19 deletions

View File

@@ -39,7 +39,7 @@ class WeatherManager:
self._fetch_weather()
return self.weather_data
def display_weather(self) -> None:
def display_weather(self, force_clear: bool = False) -> None:
"""Display weather information on the LED matrix."""
weather_data = self.get_weather()
if not weather_data:
@@ -52,4 +52,4 @@ class WeatherManager:
display_text = f"{temp}°F\n{condition}"
# Draw both lines at once using the multi-line support in draw_text
self.display_manager.draw_text(display_text)
self.display_manager.draw_text(display_text, force_clear=force_clear)