start socket after lights defined
This commit is contained in:
parent
9fb1e00619
commit
ee040dad58
1 changed files with 1 additions and 1 deletions
2
leds.py
2
leds.py
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue