Instructions

sudo apt-get update
3.2 Code example
First, run the following commands to install the necessary dependencies.
sudo apt-get install git
Now, enable SPI in the settings of your Raspberry Pi. Therefore, call the
settings with the following command.
sudo raspi-config
There select
3 Interface Options
→
P4 SPI
.
In the following, confirm the question
Would you like the SPI interface
to be enabled?
.
sudo apt-get install python3-dev python3-rpi.gpio
sudo apt-get install python3-pip
sudo pip3 install spidev






