I am using an EPS32 to host a web server that controls servo motors that turn light switches on and off. The servo position can be controlled by physical buttons and by the web server. I am hoping to get advice on how to best allow for the web server heading to be changed by both the physical buttons and virtual buttons on the web server. Thanks in advance for the help!
light_switch_esp32_with_buttons.ino (9.05 KB)