From 6e72ca1999f9af57709244389f25072c95462fea Mon Sep 17 00:00:00 2001 From: Jane Petrovna Date: Sun, 8 Nov 2020 02:45:47 -0500 Subject: [PATCH] issues! --- leds.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/leds.py b/leds.py index 7c9ede8..f945bcc 100644 --- a/leds.py +++ b/leds.py @@ -65,17 +65,18 @@ def loop(): socket_thread = threading.Thread(target=socket_loop) socket_thread.start() lcd = lcd_manager.Adafruit_CharLCD() - lights = light_manager.LightStrip() - this.lights = lights + this.lights = light_manager.LightStrip() + this.lights + this.lights.set_pattern(pattern.pat) while True: logger.debug("loop") - lights.tick() + this.lights.tick() query() state = get_state() if state == "level": - if lights.get_light_level() != (this.level / this.level_max): - lights.set_light_level(this.level / this.level_max) + if this.lights.get_light_level() != (this.level / this.level_max): + this.lights.set_light_level(this.level / this.level_max) lightlevel(lcd, this.level) elif state == "color": color(lcd)