Hello,
I’m using a ESP32 board. When I want to define a digital datastream in blynk2.0, for example GPIO26 or an analogic datastream, for example GPIO35 I can not. The maximum values are D13 and A3. See the image.
In my code I have a line like this:
int LED = 18; // Led GPIO 18
Any idea? Can I solve this by changing anything in the code?
Thanks a lot!
Same issue as flagged here:
@Dmitriy can you explain how the analog and digital datastreams are meant to work for various hardware types?
If I choose ESP8266 in the web console I see 5 analog pins available numbered A0-A4. I also see pins numbered 0-14 which I assume represent the digital pins. The ESP8266 has one analog pin, A0.
If I choose digital pins for the ESP8266 I see 14 pins, numbered 0-13.
The ESP8266 has the following GPIOs:
0, 1, 2, 3, 4, 5, 12, 13, 14 & 15.
If I choose ESP32 then I see the same analog pin…
and as you can see, it has yet to be resolved.
Personally, my advice would always be to use virtual datastreams anyway. More info on how to do that here:
I thought I’d write a guide about how to use virtual pins with app widgets such as buttons, to control physical devices such as relays, LEDs etc…
Why use virtual pins anyway?
I’d always recommend using virtual pins over physical pins when developing your code. There are a number of reasons, but here are what I consider to be the main ones:
Virtual pins are hardware independent. This means that it’s far easier to port your code from one hardware platform to another in future (when you realise…
As this is a duplicate of an issue that has already been raised, I’m going to close this topic so that things don’t get messy on the forum.
Pete.