logo elektroda
logo elektroda
X
logo elektroda

ESP8266 Arduino.IDE NodeMCU - LED and button control via WIFI

michal.stefaniak 1110 0
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 18319300
    michal.stefaniak
    Level 2  
    Does anyone have an idea what to add to the code so that the diode can be controlled not only via the web button, but also manually via the "switch tact "button added on pin D1?
    And that the status of the diode updates via javascript regardless of whether it was on manually or via the web button. (The status of the diode is shown on the web button as a slider/toggle switch).

    Pin connection :

    ESP8266 Arduino.IDE NodeMCU - LED and button control via WIFI .

    Code :
    CODE .

    Page preview :

    Do you have a problem with Arduino? Ask question. Visit our forum Arduino.
  • ADVERTISEMENT
ADVERTISEMENT