forked from axiom-team/astroport
21 lines
445 B
Python
Executable File
21 lines
445 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
import time
|
|
import fourletterphat
|
|
|
|
while True:
|
|
fourletterphat.clear()
|
|
|
|
str_time = time.strftime("%H%M")
|
|
|
|
# Display the time
|
|
fourletterphat.print_number_str(str_time)
|
|
|
|
# Blink the middle decimal point
|
|
# int(time.time() % 2) will alternate 1 0 1 0
|
|
# which we can use to directly set the point
|
|
fourletterphat.set_decimal(1, int(time.time() % 2))
|
|
|
|
fourletterphat.show()
|
|
time.sleep(0.1)
|