RGB Unit
支持以下产品:
Micropython Example:
import M5
from M5 import *
from unit import *
M5.begin()
rgb_0 = RGB((36, 26), 3)
Widgets.fillScreen(0x222222)
rgb_0.set_brightness(80)
rgb_0.fill_color(0xff0000)
rgb_0.set_color(0, 0x33ff33)
UIFLOW2 Example:
class RGB
Constructors
- class RGB(port, number)
创建一个RGB对象。
- 参数是:
port
是端口的引脚号number
是灯珠数量
UIFLOW2: