FastLED WS2812B change code with adding one function

Hello,

I would like to add one animation into one code for Attiny85 and WS2812B Led's.
Take one animation from exemples like "ColorPalette" of "FastLED" that will animate ONLY ONCE all leds (like wave), when you putt power ON.
Can somebody help me please?

Here is the original code:

Thank you very much.

The size of original code on your link is 8144 bytes, while the max size of Attiny85 flash is 8192 bytes. To add a new effect to this code, you must first remove something from it.

1 Like

What is the quantity of WS2812B? I would recommend experimenting with only one WS2812B.

Here is a video on programming for the WS2812B in Assembly all in the Arduio IDE. You will need to change the output pin for the ATtiny85. You will be creating the timing that Libraries normally do.

1 Like

Thank's for advice xfpd.
I would like to add some "wave" affect with 12 led's.
As the size is too small, I will try to remove some unused function first and see if it work's.
After what I will see If I will be able just to past from "exemples" and make it works.

Start with a simple button-LED on ATtiny85 (no interrupts)

This simulation is a single ws2812 on an ATtiny85 using FastLED, (no interrupt, pattern functions)

This simulation is a single ws2812 on ATtiny85 with FastLED, a button using an interrupt (patterns).

This simulation is with a Neopixel strand, on ATtiny85 using Adafruit_Neopixel.

1 Like

Not withstanding your memory issue, just put this animation in the setup function to get it to play only once on power up.

Can you show this wave effect? How many pixels?

Can you describe this "wave" effect on one neopixel?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.