A virtual pin is essentially a Blynk specific variable.
Look at the virtual pin reference in the DOCs and keep searching around this forum for the massive amounts of example code that is available.[quote=“JSav, post:1, topic:11940”]
convert the analog pin of potentiometer to a virtual pins
[/quote]
It would be more functional to have a slider widget replace the potentiometer.
Slider set to V0 & range 0-255
Digital PWM pin 9
BLYNK_WRITE(V0) // Slider widget - this function gets called every time slider is moved.
{
int slideValue = param.asInt(); // Get the slider value.
analogWrite(9, slideValue); // Send value to digital pin
}
I just found three since I last asked you. Try again with some relevant search parameter, I simply used motor control, but you could possibly add the number of a certain motor controller chip (PS, use the correct number )