Interfacing NeoPixel RGB LED with Blynk App Control

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:

  1. interface a neopixel led array that has predefined libraries and functions to control the brightness and color
  2. 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

All the widgets basically do is send values to and receive values from the MCU device… thats it :stuck_out_tongue_winking_eye:

While the Library does support direct pin controls that need very little coding, the real power comes from learning to code and using Blynk as the GUI interface that it is.

So, first, you need to thoroughly understand what your neopixel code needs in order to display the colours and fading and order of LED.

Then, ignore the Neopixels and learn the basic what’s and how’s of Blynk… using the Documents, Help Center and Example Builder (all these links are at the top of this page). Don’t skip this part… focus on the basics, not the NeoPixels.

Then once you have some basic understanding of the two processes, you can use something like a Blynk slider to send a value from a range of MIN to MAX (basically just like coding a potentiometer, only virtually) and your code will use that value for your NeoPixel library.