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.
|
#start of actual programm.
|
||||||
class DashBoard(object):
|
class DashBoard(object):
|
||||||
"""runs all the dashboard operations autonomusly. Accepts outside pokes to change output."""
|
"""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.IO = led_out.OutputHandler(32,16)
|
||||||
self.tspeed = text_speed
|
self.tspeed = text_speed
|
||||||
self.start()
|
self.start()
|
||||||
# self.text_threads = []
|
# self.text_threads = []
|
||||||
print("INIT")
|
|
||||||
|
|
||||||
|
|
||||||
def mainloop(self):
|
def mainloop(self):
|
||||||
@ -24,7 +23,6 @@ class DashBoard(object):
|
|||||||
if prev_time == datetime.datetime.now().strftime("%H:%M"):
|
if prev_time == datetime.datetime.now().strftime("%H:%M"):
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
else:
|
else:
|
||||||
print("implement me!")
|
|
||||||
|
|
||||||
prev_time = datetime.datetime.now().strftime("%H:%M")
|
prev_time = datetime.datetime.now().strftime("%H:%M")
|
||||||
self.IO.clock_face([])
|
self.IO.clock_face([])
|
||||||
@ -44,6 +42,7 @@ class DashBoard(object):
|
|||||||
self.IO.text_scroll(text, self.tspeed, color)
|
self.IO.text_scroll(text, self.tspeed, color)
|
||||||
self.start()
|
self.start()
|
||||||
|
|
||||||
|
|
||||||
test = DashBoard()
|
test = DashBoard()
|
||||||
# time.sleep(5)
|
# time.sleep(5)
|
||||||
# test.text_scroll("Hello my choupinous!")
|
# test.text_scroll("Hello my choupinous!")
|
||||||
|
@ -60,7 +60,7 @@ class UnicornHat(object):
|
|||||||
|
|
||||||
def set_brightness(self, b):
|
def set_brightness(self, b):
|
||||||
"""Set the display brightness between 0.0 and 1.0.
|
"""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
|
self.brightness = b
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user