start socket after lights defined

This commit is contained in:
jane 2020-11-08 02:48:12 -05:00
parent 9fb1e00619
commit ee040dad58

View file

@ -63,9 +63,9 @@ def socket_loop():
def loop(): def loop():
socket_thread = threading.Thread(target=socket_loop) socket_thread = threading.Thread(target=socket_loop)
socket_thread.start()
lcd = lcd_manager.Adafruit_CharLCD() lcd = lcd_manager.Adafruit_CharLCD()
this.lights = light_manager.LightStrip() this.lights = light_manager.LightStrip()
socket_thread.start()
while True: while True:
logger.debug("loop") logger.debug("loop")
this.lights.tick() this.lights.tick()