In this section, we will see how we can change the state of a GPIO on the BeagleBone board from python's interactive shell interface with the help of functions available in the Adafruit_BBIO
Library.
You will have to connect an LED with one of the GPIO pins on the BeagleBone Black to understand how these GPIOs work. The following steps will walk you through the program that you can execute step by step on the Python's interactive shell interface to understand how you can change the state of a GPIO from LOW to HIGH and vice versa from python:
Connect an LED circuit to the BeagleBone board.
To get started, we will need our Breadboard, LED, resistor, and hookup wires to connect the LED circuit with a GPIO available on the BeagleBone Black. Once you have them, connect the circuit as shown in the following figure:
You can see that the cathode of the LED is connected to the Gnd pin on the BeagleBone Black through a 470-ohm resistor and the anode is connected to the GPIO...