Hi all,
I will post my first post on this community to get some help on my project.
I’ll try to build a stairs light system based on WS2801 les strips.
I’d just tested the Fastled library with my setup and I’m able to make some light in my room… I good first step.
Now, I’m searsh how to :
Fading a color from black to full brightness from the bottom to the top ( climb scene) and the same but in the reverse direction ( down scene) . After a delay in both scenario, the led should be go to dark one after one in fading mode .
I’m a real noob in developement, so I’will be very happy to get some help from anyone of you in my project.
Thanks
Thanks for your help Smith !
But I can’t test your code,
Here is my test code :
http://pastebin.com/jtRFU6MB
What’s wrong ?
I just tried to solve theses errors has you’ve said.
I have no more error when I upload the code, but there is no light.
http://pastebin.com/pjpderRB
There is no LEDS.show() anywhere in that code.
Ok, I’ start to understand.
Now It work, but I’have taken another exemple :
CRGB yourcolor = 0xFFFF99;
// First slide the led in one direction
for(int i = 0; i < NUM_LEDS; i++) {
// Set the i'th led to
leds[i] = yourcolor;
// Show the leds
FastLED.show();
delay(60);
}
This is perfect, but how to fading the led ?
Thanks again for your help