的Arduino_SK6812
用于基于SK6812的4通道RGBxx LED的Arduino库
用法
将存储库下载为.zip文件
在Arduino IDE中:草图->包含库->添加.ZIP库
使用“ #include <SK6812>”指令将库包含在项目中
例子
#include <SK6812>
SK6812 LED(2);
RGBW color1 = {0, 0, 255, 50}; // 255 blue, 50 white
void setup() {
LED.set_output(4); // Digital Pin 4
LED.set_rgbw(0, color); // Set first LED to color1
}
void loop() {
LED.set_rgbw(1, {0, 0, 0, 255}); // Set second LED t