Skip to content

Commit 812912a

Browse files
committed
fixes
1 parent b8e3518 commit 812912a

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

Weather_Display_Matrix/openweather_graphics.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ def set_icon(self, icon_name):
167167
if icon_name[2] == "n":
168168
column = 1
169169
if row is not None:
170-
print(column, row)
171170
self._icon_sprite[0] = (row * 2) + column
172171
self._icon_group.append(self._icon_sprite)
173172

Weather_Display_Matrix/weather_display_matrix.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,9 @@
4949
# --- Display setup ---
5050
matrix = Matrix()
5151
network = Network(status_neopixel=board.NEOPIXEL, debug=True)
52-
if UNITS == "imperial":
52+
if UNITS == "imperial" or UNITS == "metric":
5353
gfx = openweather_graphics.OpenWeather_Graphics(
54-
matrix.display, am_pm=True, units="imperial"
55-
)
56-
elif UNITS == "metric":
57-
gfx = openweather_graphics.OpenWeather_Graphics(
58-
matrix.display, am_pm=True, units="metric"
54+
matrix.display, am_pm=True, units=UNITS
5955
)
6056

6157
print("gfx loaded")

0 commit comments

Comments
 (0)