Skip to content

Instantly share code, notes, and snippets.

@gallaugher
Created October 25, 2021 12:58
Show Gist options
  • Save gallaugher/44225d9385224e77b41abfa7c9321899 to your computer and use it in GitHub Desktop.
Save gallaugher/44225d9385224e77b41abfa7c9321899 to your computer and use it in GitHub Desktop.
CircuitPython Colors from the adafruit_led_animation library
from adafruit_led_animation.color import (
AMBER, #(255, 100, 0)
AQUA, # (50, 255, 255)
BLACK, #OFF (0, 0, 0)
BLUE, # (0, 0, 255)
CYAN, # (0, 255, 255)
GOLD, # (255, 222, 30)
GREEN, # (0, 255, 0)
JADE, # (0, 255, 40)
MAGENTA, #(255, 0, 20)
OLD_LACE, # (253, 245, 230)
ORANGE, # (255, 40, 0)
PINK, # (242, 90, 255)
PURPLE, # (180, 0, 255)
RED, # (255, 0, 0)
TEAL, # (0, 255, 120)
WHITE, # (255, 255, 255)
YELLOW, # (255, 150, 0)
RAINBOW # a list of colors to cycle through
# RAINBOW is RED, ORANGE, YELLOW, GREEN, BLUE, and PURPLE ((255, 0, 0), (255, 40, 0), (255, 150, 0), (0, 255, 0), (0, 0, 255), (180, 0, 255))
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment