forked from mrlcosta/Auto-atendimento
-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.py
38 lines (28 loc) · 1.16 KB
/
main.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
""" A project by: Future Club members
*******************************************************
*************** We started at:12/10/2019 **************
********************* Developers: *********************
********************* Muriel Costa ********************
********************** ********************* #put your name here
********************** *********************
********************** *********************
********************** *********************
*******************************************************
*******************************************************
"""
import lcd
import time
import keyboard
def deposit(): #to do
lcd.lcd_write("FLUXOGRAMA DE", "DEPOSITO")
time.sleep(2) # wait 2 seconds
def main():
while True: #infinite loop
last_time = 0
if (time.time() - last_time) > 500: # 500 milliseconds == 1/2 second. 1000 milliseconds == 1 second.
last_time = time.time()
lcd.lcd_write("FUTURE CLUB!", "APERTE ENTER")
if keyboard.is_pressed("enter"):
deposit()
if __name__ == "__main__": #if program was executed by user.
main()