Merge pull request #132 from helgibbons/main

Fixes colours in the MP cheerlights example
This commit is contained in:
Philip Howard 2021-04-30 09:43:33 +01:00 committed by GitHub
commit a4033a344d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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: