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