I’m using a nodemcu and i have tried to turn on a LED via Virtual Pin.
I have already tried with D5 instead of 5.
I can not find my mistake.
I can turn on the LED with the direct way but not with the virtual pin mode and I need this for my main project.
I also tryed to debug it with the Serial Monitor. There I could read the Virtual pin just the LED won’t turn on.
You are not understanding… With ESP8266 boards, the silkscreen pin D5 is NOT pin 5 in Arduino code… it is actually pin 14. This is the number you want to use in your code.
Arduino IDE will recognise the Dx silkscreened pin numbering if the correct board type is chosen (even with Blynk… which is just a library, not a programming language). Thus the IDE still compiles Dx just fine, but the number in the Dx is NOT the same as the GPIO numbering (AKA using just the number in the code). Still best to always use the standardised GPIO numbering.