This is an old revision of the document!
The breadboard is the device we will use to build our circuits:
The electrical layout of the breadboard is as follows:
Here's a good video overview of the functionality of a breadboard:
Here is a diagram for a circuit driving one LED, from one GPIO pin:
You are after a circuit that drives four LEDs, each one from a unique GPIO pin.
NOTE: As of 20220908, is not working for the pi 400. See the section below for the pi 400 workaround.
First, we need to download the wiringPi library package:
wget https://project-downloads.drogon.net/wiringpi-latest.deb
Then, we need to install it:
sudo dpkg -i wiringpi-latest.deb
For the pi400, we have to do a slightly different process, but will result in the needed functionality becoming available.
On the pi (doesn't matter where, although probably NOT in your repository; base of home directory works fine):
yourpi~$ git clone https://github.com/WiringPi/WiringPi.git
Then:
yourpi:~$ cd WiringPi yourpi:~/WiringPi$
Finally, build and install it:
yourpi:~/WiringPi$ ./build
Provided there are no apparent errors, close out of that terminal and open a new one, then the gpio tool and related WiringPi functionality should now be available.