forgot some files

This commit is contained in:
Neythen 2021-05-14 14:06:57 +01:00
parent 3e59b011e1
commit b511b4f69e
10 changed files with 54136 additions and 4 deletions

54128
7x14.bdf Normal file

File diff suppressed because it is too large Load Diff

BIN
7x14.pbm Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
7x14.pil Normal file

Binary file not shown.

3
csv/crypto.csv Normal file
View File

@ -0,0 +1,3 @@
name,current,24hr change
bitcoin,50378,0.18956930030648758
ethereum,4007.97,4.564560454952176
1 name current 24hr change
2 bitcoin 50378 0.18956930030648758
3 ethereum 4007.97 4.564560454952176

1
csv/scroll_text.csv Normal file
View File

@ -0,0 +1 @@
hello world!,255,255,0
1 hello world! 255 255 0

View File

@ -1,2 +1,2 @@
speed,brightness speed,brightness
f,7 s,5
1 speed brightness
2 f s 7 5

BIN
final.ppm

Binary file not shown.

BIN
scroll_text.ppm Executable file

Binary file not shown.

View File

@ -173,7 +173,7 @@ class StockTicker():
width, height = self.get_text_dimensions(text, font) width, height = self.get_text_dimensions(text, font)
print(text) print(text)
print('dims:', width, height) print('dims:', width, height)
img = Image.new('RGB', (width + 10, 32)) img = Image.new('RGB', (width + 50, 32))
d = ImageDraw.Draw(img) d = ImageDraw.Draw(img)
d.text((4, 0), text, fill=(int(r), int(g), int(b)), font=font) d.text((4, 0), text, fill=(int(r), int(g), int(b)), font=font)
@ -439,8 +439,8 @@ if __name__ == '__main__':
#stock_ticker.getFullStockImage(1) #stock_ticker.getFullStockImage(1)
#stock_ticker.displayStocks() #stock_ticker.displayStocks()
stock_ticker.delay = 0.001 #stock_ticker.delay = 0.001
stock_ticker.scrollImageTransition(['final.ppm', 'final.ppm'], offset_x = 0, offset_y = 0) #stock_ticker.scrollImageTransition(['final.ppm', 'final.ppm'], offset_x = 0, offset_y = 0)
while True: while True:
msg = getInput() msg = getInput()