Starlight LED Strip

../../../../_images/ledong_module_starlight_led_strip.png

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

  1. Negative

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
../../../../_images/starlight_led_strip.png