Wed. Jan 7th, 2026

Here’s a minimal test program in micropython

from hardware import RGB
import time

# Initialize LED
rgb = RGB()
rgb.set_brightness(70)  # visible intensity

# Define the colors to toggle (RGB tuples)
colors = [
    (255, 0, 0),    # Red
    (0, 255, 0),    # Green
    (0, 0, 255),    # Blue
    (255, 255, 0),  # Yellow
    (0, 255, 255),  # Cyan
    (255, 0, 255),  # Magenta
    (255, 255, 255) # White
]

while True:
    for color in colors:
        rgb.fill(color)  # set LED color in buffer
        rgb.write()      # flush buffer → LED updates
        time.sleep(1)    # hold color for 1 second

By admin

Leave a Reply

Your email address will not be published. Required fields are marked *