Created
January 3, 2021 18:37
-
-
Save prueker/2203d9dfa33cab3511ad6a00423e3bee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("Setting LED " + str(i) + " for " + airportcode + " to " + ("lightning " if lightningConditions else "") + ("windy " if windy else "") + (conditions["flightCategory"] if conditions != None else "None") + " " + str(color)) | |
pixels[i] = color | |
i += 1 | |
# Update actual LEDs all at once | |
pixels[i] = COLOR_VFR | |
pixels[i+1] = COLOR_MVFR | |
pixels[i+2] = COLOR_IFR | |
pixels[i+3] = COLOR_LIFR | |
pixels.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment