-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdisplay_20x4.py
74 lines (57 loc) · 1.98 KB
/
display_20x4.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/usr/bin/python3
# Created By Julian Bruegger
# 29.03.2020
# Questions please contact jul.bruegger(at)gmail.com
# To change country edit ./module/corona.py
from bs4 import BeautifulSoup
from module.i2c import *
import requests
import time
import math
import csv
import sys
while True:
from module.corona import *
for i in range(30):
lcd_init()
time.sleep(1)
lcd_string((first_c),LCD_LINE_1)
lcd_string(("Infected ")+(infections_c)+(" +")+(today_c),LCD_LINE_2)
lcd_string("Worldwide",LCD_LINE_3)
lcd_string(("Infected ")+(infections_w)+(" +")+(today_w),LCD_LINE_4)
time.sleep(10)
lcd_init()
time.sleep(1)
lcd_string((first_c),LCD_LINE_1)
lcd_string((deaths_c)+(" Deaths"),LCD_LINE_2)
lcd_string("Worldwide",LCD_LINE_3)
lcd_string((deaths_w)+(" Deaths"),LCD_LINE_4)
time.sleep(10)
lcd_init()
time.sleep(1)
lcd_string(("Recoverd ")+(first_c),LCD_LINE_1)
lcd_string((survived_c),LCD_LINE_2)
lcd_string("Recoverd Worldwide",LCD_LINE_3)
lcd_string(survived_w,LCD_LINE_4)
time.sleep(10)
lcd_init()
time.sleep(1)
lcd_string(("Percentage ")+(cc),LCD_LINE_1)
lcd_string((percent_c),LCD_LINE_2)
lcd_string("Percentage Worldwide",LCD_LINE_3)
lcd_string((percent_w),LCD_LINE_4)
time.sleep(10)
lcd_init()
time.sleep(1)
lcd_string((first_b),LCD_LINE_1)
lcd_string(("Infected & Death"),LCD_LINE_2)
lcd_string((infections_b),LCD_LINE_3)
lcd_string((deaths_b),LCD_LINE_4)
time.sleep(10)
lcd_init()
lcd_string(" Corona-Ticker by ",LCD_LINE_1)
lcd_string("####################",LCD_LINE_2)
lcd_string(" Julian Bruegger ",LCD_LINE_3)
lcd_string("####################",LCD_LINE_4)
time.sleep(5)
time.sleep(5)