It's practically a menu with four option, going forwards with the selection, going backwards with the selection, appling the new selected function and a fast way to reset the running function and also the new selected function...
This clip and this sketchs are more a tutorial on how to do this and also understand the way that the code is working, that's why all variables have meaningful names and almost every line is commented...
First sketch - infinite functions with only two buttons.
Seccond sketch - infinite functions with only the two buttons and a small oled display.
Third sketch - infinite functions with a rotary encoder with a built-in switch.
Fourth sketch - infinite functions with a rotary encoder and a small oled display.
How Rotary Encoder Works and How To Use It with Arduino - • How Rotary Encoder Works and How To U...
FastLED is a fast, efficient, easy-to-use Arduino library for controlling addressable LED strips, in this case WS2812B ( more info can be found here http://fastled.io/ ).
The sketch's and the basic schematic's can be downloaded here: https://drive.google.com/file/d/1AJzQ...
This is clip 4 from Tips & Tricks for FastLed Library by Fedaceag Ionut ( Youtube - Think small, build big! )
If you liked this video please like, share and subscribe.
Paypal donations: https://paypal.me/ThinkSmallBuildBig
Patreon donations: / thinksmallbuildbig