Hello all,
I was wondering how the slider or step widget works in the Blynk App. Here is some background on what I want to do for my project:
- interface a neopixel led array that has predefined libraries and functions to control the brightness and color
- see how the functions could be incorporated with the step/slider widget to either vary the brightness with a slider or step up to another color
What I want to understand is what data does the slider/stepper via the app send to the code on the arduino ide to know what step or how far the slider is. Essentially I want to do sort of like a switch case statement with the cases being the step level or slider distance from the beginning and associate each step/slide case with a color or brightness level on the neopixel array. Is this possible to do at all?
For example, if step = 1: use the neopixel function to make the led array blue (code in neopixel library to change it to this
color), step 2 = color is purple, etc.
if slider is 1/4 down from the beginning: use the neopixel function to make the brightness 25% of the max.
1/2 down, 50% brightness, etc.
I have been trying to look through the example templates on the blynk.cc website but I am still unsure how these widgets work. Any help would be sincerely appreciated.
Thank you