-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
display_16x2.py
47 lines (33 loc) · 1006 Bytes
/
display_16x2.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
#!/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 sys
while True:
from module.corona import *
lcd_init()
time.sleep(1)
lcd_string((cc)+(" Infected ")+(infections_c),LCD_LINE_1)
lcd_string(("WW Infected ")+(infections_w),LCD_LINE_2)
time.sleep(10)
lcd_init()
time.sleep(1)
lcd_string((cc)+(" ")+(deaths_c)+(" Deaths"),LCD_LINE_1)
lcd_string(("WW ")+(deaths_w)+(" Deaths"),LCD_LINE_2)
time.sleep(10)
lcd_init()
time.sleep(1)
lcd_string((cc)+(" Recoverd ")+(survived_c),LCD_LINE_1)
lcd_string(("WW ")+(survived_w),LCD_LINE_2)
time.sleep(10)
lcd_init()
time.sleep(1)
lcd_string("Created by",LCD_LINE_1)
lcd_string("JULIAN BRUEGGER",LCD_LINE_2)
time.sleep(5)