There have been a few people lately, asking how to set up multiple animations for selection by a button. Well, I figured I would share how I do it now. There is a lot, and I mean a lot of code that I have copied and pasted from the library example sketches, to make animations a breeze. There is also use of another library for buttons that I LOVE. Oh, and theres more code not shown in the video included…at no charge. Enjoy and experiment!
Did somebody used already an rotary encoder (with button) to ie swich between effects, control the brightness, … ? Any code examples for fastled ?
Some libs are suggestin to use the interup pin. Will this work for the ws2812b (I remember long discussion for an ir lib)
I’m starting to figure up a hobby RC low/high channel to trigger pattern changes… maybe some your code could help.
I already have throttle channel from my RC radio speed/slow a patterns… this is the next step, pattern selections.
I used a rotary encoder for pattern selection and (with the knob pushed down), brightness. I used the Teensy encoder library. I didn’t like it for a few reasons:
My rotary encoder registered a count before it settled into a detent. Like, you could twist the knob slightly and it would register, then settle back into the slot where it started. This made it really “touchy”.
It was difficult to press, then twist such that I wouldn’t accidentally change the pattern when meaning to change the brightness.
The brightness reset to its default whenever the power reset. I could have mitigated this by saving the current brightness level to EEPROM, and my circuit had another problem which made it reset frequently, but this was really annoying.
Maybe all the above issues could be solved by buying a better rotary encoder, but I’m much happier now I replaced it with up/down buttons for programme selection and a standard analogue pot for brightness.
hi there, so my project uses currently 4 strips of NEOPIXELS,all different lengths. im not using the kmatrix, and im having some difficulty working out how to implement with only strips rather than the smartmatrix, since im trying go through your example code to get it to work for me any help suggestions would be great