40-pin IO Development
Experiment 03 - Button-controlled LED On/Off
- Hardware Connection
Connect the button circuit to IO24 (dupont jumper wires can be used in place of a button), and the LED to IO23.
- Software Execution
Enter the user home directory and run:
- cd user
- sudo python3 ./button_led.py
Terminal output:

You will see IO23 output a low level when the button is pressed and a high level when the button is released (LED on/off).
