满天星灯带 =================== .. figure:: /_static/products/ledong-module/static/图片/乐动模块-满天星灯带.png :width: 65% :align: center 概述 -------------------- 彩色满天星LED彩灯,高电平亮。 技术参数 ------------------- 工作电压: VCC 3.3V -5V 长:2.0米 LED灯:5色,20颗 引脚定义 ------------------- ======= ============= 引脚 定义 ======= ============= 黑(GND) 负极 红(VCC) 正极 ======= ============= 示例程序 ------------------- **A按键按下,打开满天星灯带;B按键按下,则关闭。** .. code-block:: python 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 .. figure:: /_static/products/ledong-module/static/examples/满天星灯带.png :width: 100% :align: center