Hi
I am going through module 3. The going is a little tough. I have an issue with the WebServer-Control Multiple Outputs project. I hope you can point me to the problem and how to fix it. This issue is present only when I use the ESP8266 board. After the program loaded and I log on to the web page, everything works kind of. This is what happens:
- GPIO 2 slider is off and it shows “State: ON” and the LED is ON.
- When slider is moved to on the LED turns off and it shows “State: OFF”. Just the opposite what it should be.
- On GPIO 12, for example, when slider is off it shows “State: ON” and LED is off.
- When slider is ON it shows “State: OFF” and the LED is ON.
This the fourth book that I am going through. The teaching is excellent but the subject is tough.
Thanks in advance for your help.
Stefan
Hi.
I’ve just tested the code to check if there was some update that might have messed up the logic. Everything is working as expected on my side.
Did you change anything in the code?
What ESP8266 board model do you have?
Do you know if some of your GPIOs work with inverted logic?
Regards,
Sara
Hi Sara,
Thanks for the prompt response. Found ,in a way, the problem. I used Arduino IDE and everything works. Found out that platformIO has a lot of bugs at least in my installation. So now I will just use the Arduino IDE.
Thanks again.