Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <FastLED.h>
- #define NUM_LEDS 27
- #define DATA_PIN 3
- // Define the array of leds
- CRGB leds[NUM_LEDS];
- void setup() {
- Serial.begin(9600);
- FastLED.addLeds<WS2812B, DATA_PIN, GRB>(leds, NUM_LEDS); // GRB ordering is typical
- }
- void loop() {
- Serial.print("NumLED ");
- Serial.println(NUM_LEDS);
- for(int i = 0; i <= NUM_LEDS; i++){
- leds[i] = CHSV(255,255,30);
- FastLED.show();
- delay(50);
- Serial.println(i);
- }
- Serial.println("hi");
- }
Advertisement
Add Comment
Please, Sign In to add comment