NodeMCU web server push button
Posted: Mon Apr 13, 2020 2:38 pm
I am trying to create a simple webpage on a web server where I can control an LED using a momentary push button in the web page, where as long as I am pressing the button the LED is on and turn off again when I release the button.
Is this even possible?
I tried a simpler example where I press the button once to turn on and another time to turn off and it worked flawlessly but I have no idea to how to make it work the way described above.
Is this even possible?
I tried a simpler example where I press the button once to turn on and another time to turn off and it worked flawlessly but I have no idea to how to make it work the way described above.