Skip to content
Snippets Groups Projects
Commit c97e3947 authored by Bernard Blackham's avatar Bernard Blackham
Browse files

Make clock blink

parent 914a9603
Branches
Tags
No related merge requests found
...@@ -240,7 +240,9 @@ class ClockIdler(Idler): ...@@ -240,7 +240,9 @@ class ClockIdler(Idler):
self.last = None self.last = None
def next(self): def next(self):
output = time.strftime("%H:%M:%S") colonchar = ':'
if int(time.time()*2) & 1: colonchar = ' '
output = time.strftime("%%H%c%%M%c%%S"%(colonchar,colonchar))
if output != self.last: if output != self.last:
self.v.display(" %8.8s " % (output)) self.v.display(" %8.8s " % (output))
self.last = output self.last = output
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment