Skip to content

Instantly share code, notes, and snippets.

@prueker
Created January 3, 2021 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prueker/2203d9dfa33cab3511ad6a00423e3bee to your computer and use it in GitHub Desktop.
Save prueker/2203d9dfa33cab3511ad6a00423e3bee to your computer and use it in GitHub Desktop.
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