Skip to content

Rainbow Pattern

Prompt

Please generate a new MicroPython program that draws the seven main colors of the rainbow on an LED strip and then moves the seven pixels down the strip. Assume the following config.py file:

config.py

NEOPIXEL_PIN = 0
NUMBER_PIXELS = 30
BUTTON_PIN_1 = 14
BUTTON_PIN_2 = 15