Do not show seconds, the serial is not fast enough
This commit is contained in:
parent
7c720f3b0d
commit
864fb46c2f
1 changed files with 4 additions and 4 deletions
|
@ -10,12 +10,12 @@ class BubaTime(BubaAnimation):
|
||||||
super().__init__(buba)
|
super().__init__(buba)
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
self.buba.simple_text(page=0, row=0, col=92, text="Bus-Bahn-Anzeige")
|
self.buba.simple_text(page=0, row=0, col=91, text="Bus-Bahn-Anzeige")
|
||||||
self.buba.simple_text(page=0, row=1, col=0, text="Chaos Computer Club")
|
self.buba.simple_text(page=0, row=1, col=0, text="Chaos Computer Club")
|
||||||
self.buba.simple_text(page=0, row=2, col=0, text="Hansestadt Hamburg")
|
self.buba.simple_text(page=0, row=2, col=0, text="Hansestadt Hamburg")
|
||||||
self.buba.simple_text(page=0, row=3, col=0, text="Hello, world!")
|
self.buba.simple_text(page=0, row=3, col=0, text="Hello, world!")
|
||||||
self.buba.set_page(0)
|
self.buba.set_page(0)
|
||||||
|
|
||||||
for i in range(5):
|
for i in range(3):
|
||||||
self.buba.text(page=0, row=0, col_start=93, col_end=119, text=datetime.now().strftime("%H:%M:%S"), align=BubaCmd.ALIGN_RIGHT)
|
self.buba.text(page=0, row=0, col_start=93, col_end=119, text=datetime.now().strftime("%H:%M:"), align=BubaCmd.ALIGN_RIGHT)
|
||||||
sleep(1)
|
sleep(2)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue