Starlight LED Strip
Overview
Colorful starlight LED strip, lights up on high level.
Technical Specifications
Operating voltage: VCC 3.3V -5V
Length: 2.0 meters
LEDs: 5 colors, 20 pieces
Pin Definition
Pin |
Definition |
|---|---|
Black (GN |
|
Red (VCC) |
Positive |
Example Code
Press button A to turn on the starlight LED strip; press button B to turn it off.
from mpython import *
from mpython import ledong_shield
def on_button_a_pressed(_):
ledong_shield.set_motor(1, -50)
button_a.event_pressed = on_button_a_pressed
def on_button_b_pressed(_):
ledong_shield.set_motor(1, 0)
button_b.event_pressed = on_button_b_pressed