forked from julianbruegger/corona-display
-
Notifications
You must be signed in to change notification settings - Fork 0
/
display_20x4.py
44 lines (31 loc) · 960 Bytes
/
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
#!/usr/bin/python
from bs4 import BeautifulSoup
from module.i2c import *
import requests
import time
import math
import csv
import sys
while True:
from module.corona import *
lcd_init()
time.sleep(1)
lcd_string((first),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),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),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)