PaniniSama
Hello everyone,
I'm trying to get a simple LED blink example running on my Wemos D1 Mini (ESP8266).
My program compiles fine, but I'm having trouble with the pin mapping in the upload dialog. Every time I try to assign a physical pin to a variable, I get the error: "the device pin mapping is not valid".
Here is what I'm doing:
Hardware: Wemos D1 Mini (ESP8266)
Software: OpenPLC Editor v4 (beta)
Goal: Map the built-in LED (D4, which is GPIO2) to %QX0.2.
In the upload window, I go to the "Pin Mapping" section. I've tried:
Assigning %QX0.2 (for the built-in LED) to NODE_PIN_D4.

I am following the "2.4 Physical Addressing" table in the documentation, which lists these pin numbers (2, 4, 5, etc.) as the correct mapping for the ESP8266.
Am I missing a step, or is there a different format for pin mapping on the D1 Mini with the v4 beta?
Any help would be greatly appreciated!
Thanks.
Reply 0 0
thiagoralves
A screenshot of what you’re trying to do would be useful
Reply 0 0
thiagoralves
I tried to reproduce it here and now I see what’s happening. It seems that the editor is not accepting D4 as a valid pin. This is a bug and we will get it fixed on the next release. Meanwhile you can try using the pin number for D4 instead.
Reply 0 0
thiagoralves
 
In your case D4 is pin 2, so you can just type 2 on the pin row and it will work
Reply 0 0
Reply