Of course that command is assuming the ESP8266’s GPIO pins, NOT the Arduino ones… they are probably NOT directly accessible from that Blynk Sketch.
Nothing to do I can not I tried it but it does not even go
BLYNK_WRITE(V1) {
digitalWrite(5, param.asInt()); // Toggle GPIO pin 5 to the same state as the Button on V0
int gh=0;
gh=digitalRead(5);
if (gh==HIGH){
led3.on();
I have no idea what “it does not even go” means in practice, but I’d simplify this code like this:
BLYNK_WRITE(V1)
{
int gh=(5, param.asInt());
if (gh)
{
led3.on();
digitalWrite(5,HIGH);
}
else
{
led3.off();
digitalWrite(5,LOW);
}
}
I’d also add this in void setup():
pinMode (5,OUTPUT);
Pete.