Want to improve my programming skills need help


#define BLYNK_PRINT Serial
#include <SPI.h>
#include <Ethernet.h>
#include <BlynkSimpleEthernet.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = “xxxxxxxxxxx”;

void setup()

// This function will be called every time Slider Widget
// in Blynk app writes values to the Virtual Pin 1
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: ");
String i = param.asStr();

void loop()

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


Let’s start by wrapping your code so we can see it better :wink:

Watch the animated gif at [README] Welcome to Blynk Community!

Then, I believe you should be using the variable pinValue instead if i to output the slider value to the Value Display.

As for further code usages, I recommend combined with trial, error, trial, error, trial, success… works for me :grinning:


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.

i can recommend to you the very great book by allen b. downey: think python

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.


thanks a lot im already using this books :smiley: