The push button switch is connected to GPIO 17 on the ESP32 board.
> >
The push button switch is connected to GPIO 22 on the ESP32 board.
Write a script that polls the state of the switch every 100 ms and prints state changes (only print out a message when the switch state has changed). Catch <ctrl> C to smoothly exit the program.