Welcome to Raspberry Pi 4B repository
1.Development environment
1. Install nano editor compiler and Git
sudo apt-get install nano
sudo apt-get install git
2.Install wiringPi
Step 1: Create a new folder to store the wiringPi source code, here we name it work
mkdir work
Step 2: Enter work folder
cd work/
Step 3: Get wiringPi source code
git clone --recursive https://github.com/WiringPi/WiringPi-Python.git
Step 4: Enter wiringPi folder
cd WiringPi-Python/
Step 5: Run install command
sudo python3 setup.py install
If the error shown in the figure below appears, it is because swig is not installed.
Step 6: Run install swig command
sudo apt-get install swig
Step 7: Run install command again
sudo python3 setup.py install
3. Test
Step 1: Enter wiringPi-Python folder and find examples folder
cd examples/
Step 2: Run code
python delay.py
Step 3: View Raspberry Pi pin information
gpio readall