// This function will be called every time Slider Widget
// in Blynk app writes values to the Virtual Pin 1
BLYNK_WRITE(V1)
{
int pinValue = param.asInt(); // assigning incoming value from pin V1 to a variable
// You can also use:
// String i = param.asStr();
// double d = param.asDouble();
Serial.print("V1 Slider value is: ");
Serial.println(pinValue);
String i = param.asStr();
Blynk.virtualWrite(V5,i);
}
void loop()
{
Blynk.run();
}
problem is i am getting values on serial monitor that is 0 and 1 i want to see same on value widget i tried giving virtual write its not reflecting why i am not getting values on widgets
if you really would like to improve your programming skills, i would recommend to read and learn some specific books, and begin with learning general programming strategies.
it is definitely not a one weekend project, needs time + patience, but on the long run it well worths the investment. python is a very friendly language, ideal for beginners. indeed, it is not mainly used in embedded programing, but the concepts and strategies you learn from this book are universal amongst all languages.