So, looks good for now.
This commit is contained in:
parent
377afd55fa
commit
847e8205d7
@ -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!")
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user