Update weather display

This commit is contained in:
Mike Cifelli 2022-12-30 16:16:48 -05:00
parent 158be1a0f0
commit e962b59d4e
2 changed files with 11 additions and 10 deletions

View File

@ -1,8 +1,9 @@
BLACK = [0, 0, 0 ] BLACK = [0, 0, 0 ]
WHITE = [255, 255, 255] WHITE = [255, 255, 255]
GRAY = [50, 50, 50 ] GRAY = [50, 50, 50 ]
RED = [255, 0, 0 ] RED = [255, 0, 0 ]
PINK = [255, 0, 64 ] ORANGE = [255, 64, 0 ]
GREEN = [0, 255, 0 ] PINK = [255, 0, 64 ]
BLUE = [0, 64, 128] GREEN = [0, 255, 0 ]
BLUE = [0, 64, 128]

View File

@ -5,11 +5,11 @@ class WeatherDisplay:
def __init__(self, characterDisplay, topRow): def __init__(self, characterDisplay, topRow):
self.characterDisplay = characterDisplay self.characterDisplay = characterDisplay
self.topRow = topRow self.topRow = topRow
self.twoDigitStartColumn = 5 self.twoDigitStartColumn = 4
self.oneDigitStartColumn = 9 self.oneDigitStartColumn = 8
self.digitWidth = 4 self.digitWidth = 4
self.currentTemperature = '' self.currentTemperature = ''
self.color = colors.BLUE self.color = colors.ORANGE
self.weatherFile = 'weather.txt' self.weatherFile = 'weather.txt'
def showWeather(self): def showWeather(self):