upper case crypto

This commit is contained in:
Neythen 2021-05-14 13:06:19 +01:00
parent c4d0a61ec0
commit 5c0fb44766
4 changed files with 9 additions and 7 deletions

BIN
final.ppm

Binary file not shown.

Binary file not shown.

View File

@ -271,11 +271,11 @@ class StockTicker():
try:
logos_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'logos')
print(os.path.join(logos_path, ticker + '.png'))
logo = Image.open(os.path.join(logos_path, ticker + '.png'))
stitchedStock = self.stitchImage([logo,midFrame])
except:
print('no logo for ' + ticker)
stitchedStock = midFrame
@ -287,7 +287,7 @@ class StockTicker():
info = self.coin_info[coin]
change = float(info[1]) #TEXT
ticker = coin #TEXT
ticker = coin.upper() #TEXT
current = '%.2f' % float(info[0]) #TEXT
@ -299,11 +299,11 @@ class StockTicker():
try:
logos_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'logos')
print(os.path.join(logos_path, ticker + '.png'))
logo = Image.open(os.path.join(logos_path, ticker + '.png'))
stitchedStock = self.stitchImage([logo,midFrame])
except:
print('no logo for ' + ticker)
stitchedStock = midFrame
image_list.append(self.blank)
@ -316,6 +316,8 @@ class StockTicker():
elif updated_img == 2:
finalDisplayImage.save('final1.ppm')
#Send the final stitched image to the display for set amount of time
def displayStocks(self):
#os.system("sudo ./demo -D1 final.ppm -t " + str(displayTime) +" -m "+ str(speedDisplay) +" --led-gpio-mapping=adafruit-hat --led-rows=32 --led-cols=256")
@ -427,8 +429,8 @@ if __name__ == '__main__':
#stock_ticker.displayText()
stock_ticker.getFullStockImage(1)
stock_ticker.displayStocks()
#stock_ticker.getFullStockImage(1)
#stock_ticker.displayStocks()