Custom WS2812 coding

Hi guys. So I have a project I wish to achieve with some ws2812 leds and the rear lights on my car. I have a 2007 ford c-max which, without tooting my own trumpit, has some pretty stylish rear lights with the taillight being a strip of led's down the centre of each light. What I'd like to achieve with some ws2812's is when i turn the lights on, id like to make them turn on/off in a fancy manor. For example, starting from the centre fading up/down, or even starting at the bottom and each led turning on in turn until it reaches the top - sort of thing.

I've attached a photo of my type of rear lights so you know exactly what im dealing with, but the coding is where im struggling. I have an arduino nano ive been playing with using fastled and a strip of 30 ws2812's, but writing my own code I just dont know where to start. I've tried various library examples from fastled library, and playing with the code, but i just end up messing the code up and it doesnt do anything.

Any advice is of course welcome!

I've tried various library examples from fastled library, and playing with the code, but i just end up messing the code up and it doesnt do anything.

Ok that is a good way to start. Keep trying this approach.

Try and understand what the code is doing, read it like a book. If you don’t understand any specific instruction look it up in the reference.

Try and make the changes smaller so you stand less of a chance of stopping things working.

Also go through the examples in the IDE auto get an idea of the language.

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