From 864fb46c2fb5e3b777e373212869aa821360fe8b Mon Sep 17 00:00:00 2001 From: Stefan Bethke Date: Mon, 2 Jun 2025 21:10:59 +0200 Subject: [PATCH] Do not show seconds, the serial is not fast enough --- buba/animations/time.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/buba/animations/time.py b/buba/animations/time.py index 9e3d99b..5affeef 100644 --- a/buba/animations/time.py +++ b/buba/animations/time.py @@ -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)