guys i need some help modifying a program to work on the lilypad arduino.

guys i need some help modifying a program to work on the lilypad arduino.

#include “FastLED.h”

FASTLED_USING_NAMESPACE

#define DATA_PIN 0
#define LED_TYPE WS2812B
#define COLOR_ORDER GRB
#define NUM_LEDS 23
CRGB leds[NUM_LEDS];

const int interval = 25;

unsigned long previousMillis = millis();

#define BRIGHTNESS 255
#define FRAMES_PER_SECOND 120

void setup(){
FastLED.addLeds<LED_TYPE, DATA_PIN, COLOR_ORDER>(leds, NUM_LEDS).setCorrection(TypicalLEDStrip);
FastLED.setBrightness(BRIGHTNESS);
}

uint8_t gHue = 0;

void loop(){
confetti();
FastLED.show();
EVERY_N_MILLISECONDS( 20 ) { gHue++; }
}

void confetti() {
if(millis() - previousMillis >= interval) {
previousMillis = millis();
fadeToBlackBy(leds, NUM_LEDS, 10);
int pos = random16(NUM_LEDS);
leds[pos] += CHSV( gHue + random8(64), 200, 255);
}
}

@Cristian_Martinez What doesn’t work about it? I just copy and pasted the code you posted and it compiles just fine for the lillypad. I don’t have one to actually test with though.

Last time i tried it it compiled and uploaded correctly but nothing would show…

I just downloaded the FastLED 3.1.3 so im gonna try it later and hopefully it will work. Also i changed the PIN to 6

@Cristian_Martinez Let me know how it goes with version 3.1.3 and changing the pin. I’m guessing you have everything powered and wired up correctly?

Yes. And i have no problems with my other boards. Even the attiny85’s

I noticed that i had to change the bitstream from 800 KHz to 400 KHz for the sample code to work on my flora. Any thoughts as to why?

I am not sure. Hopefully someone else here can answer that question. You’re positive the LEDs are WS2812B? I bought some off of Aliexpress awhile back that said they were WS2812B but they definitely weren’t.

Yes these are WS2812B

Tested the code on the lilypad and nothing would come up on the strip. At all. Tested the neopixel strip test code clocked at 400KHz and it showed up just fine. I dont get it?