用Arduino FastLED.h库制作一条每颗灯珠可独立寻址的WS2812B灯带

#include <SoftwareSerial.h> SoftwareSerial Serial1(2, 3); #include <FastLED.h> #define LED_PIN 4 #define NUM_LEDS 120 CRGB leds[NUM_LEDS]; String comdata = ""; void setup() { Serial1.begin(9600);
相关文章
相关标签/搜索