From 847e8205d71f4d879929154625ca92410919d269 Mon Sep 17 00:00:00 2001 From: Remy Moll Date: Tue, 13 Oct 2020 21:59:07 +0200 Subject: [PATCH] So, looks good for now. --- dashboard.py | 5 ++--- dashboard_api/hat/unicorn.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/dashboard.py b/dashboard.py index 4be81cc..5f6e6b4 100644 --- a/dashboard.py +++ b/dashboard.py @@ -9,12 +9,11 @@ from threading import Thread #start of actual programm. class DashBoard(object): """runs all the dashboard operations autonomusly. Accepts outside pokes to change output.""" - def __init__(self, text_speed=7): + def __init__(self, text_speed=10): self.IO = led_out.OutputHandler(32,16) self.tspeed = text_speed self.start() # self.text_threads = [] - print("INIT") def mainloop(self): @@ -24,7 +23,6 @@ class DashBoard(object): if prev_time == datetime.datetime.now().strftime("%H:%M"): time.sleep(5) else: - print("implement me!") prev_time = datetime.datetime.now().strftime("%H:%M") self.IO.clock_face([]) @@ -44,6 +42,7 @@ class DashBoard(object): self.IO.text_scroll(text, self.tspeed, color) self.start() + test = DashBoard() # time.sleep(5) # test.text_scroll("Hello my choupinous!") diff --git a/dashboard_api/hat/unicorn.py b/dashboard_api/hat/unicorn.py index 7af9f47..f56dac2 100644 --- a/dashboard_api/hat/unicorn.py +++ b/dashboard_api/hat/unicorn.py @@ -60,7 +60,7 @@ class UnicornHat(object): def set_brightness(self, b): """Set the display brightness between 0.0 and 1.0. - :param b: Brightness from 0.0 to 1.0 (default 0.5) + :param b: Brightness from 0.0 to 1.0 (default 1) """ self.brightness = b