Do not show seconds, the serial is not fast enough

This commit is contained in:
Stefan Bethke 2025-06-02 21:10:59 +02:00
commit 864fb46c2f

View file

@ -10,12 +10,12 @@ class BubaTime(BubaAnimation):
super().__init__(buba)
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=2, col=0, text="Hansestadt Hamburg")
self.buba.simple_text(page=0, row=3, col=0, text="Hello, world!")
self.buba.set_page(0)
for i in range(5):
self.buba.text(page=0, row=0, col_start=93, col_end=119, text=datetime.now().strftime("%H:%M:%S"), align=BubaCmd.ALIGN_RIGHT)
sleep(1)
for i in range(3):
self.buba.text(page=0, row=0, col_start=93, col_end=119, text=datetime.now().strftime("%H:%M:"), align=BubaCmd.ALIGN_RIGHT)
sleep(2)