From cde1b97e570338dab848c2f6d528a7fbca6883be Mon Sep 17 00:00:00 2001 From: helgibbons <50950368+helgibbons@users.noreply.github.com> Date: Thu, 29 Apr 2021 20:18:24 +0100 Subject: [PATCH] Green fixed! --- micropython/examples/pico_wireless/cheerlights.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/micropython/examples/pico_wireless/cheerlights.py b/micropython/examples/pico_wireless/cheerlights.py index 7efe3b81..449bda11 100644 --- a/micropython/examples/pico_wireless/cheerlights.py +++ b/micropython/examples/pico_wireless/cheerlights.py @@ -99,8 +99,8 @@ def handler(head, body): if head["Status"] == "200 OK": color = body[1:] r = int(color[0:2], 16) - g = int(color[3:4], 16) - b = int(color[5:6], 16) + g = int(color[2:4], 16) + b = int(color[4:6], 16) picowireless.set_led(r, g, b) print("Set LED to {} {} {}".format(r, g, b)) else: