Curtis_Victoria_Litt
(Curtis & Victoria Little Lion Workshop (LittlelionWorkshop))
1
Hi,
I have a few questions regarding fast.
I should start with what my project is,
I’ve got 5 buttons and one strip of LED(60 pixels, Neopixels)
1- fade up from black to full color
2- fade from full color to black
3- color 1 select
4- color 2 select
5- color 3 select
I’d like to be able to single tap the color buttons to register their color into the net used color and double tap to bring them to full brightness immediatley from whatever color was there previously.
If 1 or 2 is pressed it needs to respond with the appropriate last color selcted.
Now I’ve got a fairly good handle on the button aspects. The main issue is the definitions of colors. I thought I could do:
CRGB colorOne(0, 255, 250);
CRGB colorTwo(0, 0, 250);
CRGB colorThree(255, 255, 0);
CRGB colorBlackout(0, 0, 0);
CRGB colorSelected(0, 0, 0);//this is the most recently selected color
But I must not be implementing these right. Or does it have to be HSV to do the definitions?
To implement it I thought it would be:
leds[i].colorSelected;
But I am getting some strange errors about missing syntax. the thing is, I’ve checked and either I am blind or there is something amiss with how I’m trying to implement this. My code is linked at the bottom of this.
Thank you for the help, if I missed anything or you have questions post them and I’ll try and fill in the blanks.
Curtis_Victoria_Litt
(Curtis & Victoria Little Lion Workshop (LittlelionWorkshop))
2
Curtis_Victoria_Litt
(Curtis & Victoria Little Lion Workshop (LittlelionWorkshop))
6
Looks like things are working out now. When I had read the documentation I only saw that you could do color definitions in HSV so I was unsure if it could be done in RGB. But it looks like it can. Thanks for the info
Curtis_Victoria_Litt
(Curtis & Victoria Little Lion Workshop (LittlelionWorkshop))
7
Another question related to this project. I’m having a really hard time understanding the whole brighten from black, to full brightness of a colour, aspect of FastLed. I see in the documentation that I can use,
brighten8_video( x) == 255 - dim8_video( 255 - x)
But what I don’t understand is how to use it.
I’m fairly certain I have to run it through a loop, so that I bring the brightness up. But how do I implement it in the loop? How do I set the final desired colour? If I don’t want white as my final result.