Enabling The SPI Port
Via the desktop GUI
In the desktop GUI select the Start button > Preferences > Raspberry Pi Configuration
Select the interfaces tab and then select the relevant option.
Via the config file
Use the sudo raspi-config
config tool:
sudo raspi-config
Select ‘Interface Options’ and then select the relevant option.
Test the SPI Port
Test the SPI port is working by typing:
ls /dev/spidev*
You should see the following:
/dev/spidev0.0 /dev/spidev0.1
There are 2 spidev devices shown. The first number refers to the SPI peripheral which in both cases is 0 (the RPi only has 1 SPI port), the second number represents the chip select pins CS0 and CS1 .
4 years ago
What’s the reason for those services to be disabled? As far as I see I can still use the SPI-GPIO pins any way, or am I wrong?
4 years ago
They are just standard IO pins until their SPI function is enabled.
4 years ago
thansk for help :)