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 :
.
Code :
CODE .
Page preview :
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 :

Code :
CODE .
Page preview :