Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from time import gmtime, strftime, sleep
- import sched, time
- s=sched.scheduler(time.time,time.sleep)
- def printt(sc):
- lcd = HD44780()
- lcd.message("Witaj!"+strftime("%Y-%m-%d", gmtime())+"\n"+strftime("%H:%M:%S", gmtime()))
- sc.enter(10,1,printt,(sc,))
- s.enter(10,1,printt,(s,))
- s.run()
Advertisement
Add Comment
Please, Sign In to add comment