Experiment 03 - Button Control LED On/Off
- Hardware Connection
Connect button circuit to IO24 (can use DuPont wire instead of button), connect LED bulb to IO23
- Software Operation
Enter user home directory and run:
cd usersudo python3 ./button_led.py
Terminal as shown:

At this point, you can see when the button is pressed, IO23 outputs low level; when released, IO23 outputs high level. (LED on/off)
