diff --git a/ESP32/main.py b/ESP32/main.py index d0a8b08..b61fe78 100644 --- a/ESP32/main.py +++ b/ESP32/main.py @@ -234,8 +234,9 @@ async def getBlink(request): @app.get('/api/color') async def getColor(request): - r, g, b = neoPixelStrip.__getitem__(0) - return {'color': {'r': r, 'g': g, 'b': b}} +# r, g, b = neoPixelStrip.__getitem__(0) + r, g, b = blColor + return {'r': r, 'g': g, 'b': b, 'brightness': blBrightness} @app.get('/api/status') async def getStatus(request):