Introduction - If you have any usage issues, please Google them yourself
I/O port as input port, an I/O port access to a toggle switch, and the other I/O port access an LED light-emitting diode, the microcontroller reads the state of the switch and LED display