From 812912a95bb50beee08ac8fa93c5ad8029cca88d Mon Sep 17 00:00:00 2001 From: John Park Date: Sat, 29 Aug 2020 14:50:22 -0700 Subject: [PATCH] fixes --- Weather_Display_Matrix/openweather_graphics.py | 1 - Weather_Display_Matrix/weather_display_matrix.py | 8 ++------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Weather_Display_Matrix/openweather_graphics.py b/Weather_Display_Matrix/openweather_graphics.py index 866dac9ba..4bb8c90fd 100644 --- a/Weather_Display_Matrix/openweather_graphics.py +++ b/Weather_Display_Matrix/openweather_graphics.py @@ -167,7 +167,6 @@ class OpenWeather_Graphics(displayio.Group): if icon_name[2] == "n": column = 1 if row is not None: - print(column, row) self._icon_sprite[0] = (row * 2) + column self._icon_group.append(self._icon_sprite) diff --git a/Weather_Display_Matrix/weather_display_matrix.py b/Weather_Display_Matrix/weather_display_matrix.py index ad63edf34..efbc6a205 100644 --- a/Weather_Display_Matrix/weather_display_matrix.py +++ b/Weather_Display_Matrix/weather_display_matrix.py @@ -49,13 +49,9 @@ SCROLL_HOLD_TIME = 0 # set this to hold each line before finishing scroll # --- Display setup --- matrix = Matrix() network = Network(status_neopixel=board.NEOPIXEL, debug=True) -if UNITS == "imperial": +if UNITS == "imperial" or UNITS == "metric": gfx = openweather_graphics.OpenWeather_Graphics( - matrix.display, am_pm=True, units="imperial" - ) -elif UNITS == "metric": - gfx = openweather_graphics.OpenWeather_Graphics( - matrix.display, am_pm=True, units="metric" + matrix.display, am_pm=True, units=UNITS ) print("gfx loaded")