fixes
This commit is contained in:
parent
b8e3518d8a
commit
812912a95b
2 changed files with 2 additions and 7 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue