40-pin IO Development
Experiment 02 - GPIO Input
- Hardware Connection
Connect the button circuit to IO37 (dupont jumper wires can be used in place of a button).
- Software Execution
Enter the user home directory and run:
- cd user
- sudo python3 ./GPIO_input.py
Terminal output:

You will see the terminal output a low level when the button is pressed, and a high level when the button is released.
