Difference between revisions of "Template:RPI open spi"
From Waveshare Wiki
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
===Enable SPI interface=== | ===Enable SPI interface=== | ||
− | < | + | <div class="cautionSec">PS: If you are using a system with a Bullseye branch, you need to change "apt-get" to "apt", and the system of the Bullseye branch only supports Python3.</div> |
− | *Open terminal, use command to enter the configuration page<br /> | + | *Open the terminal, and use the command to enter the configuration page.<br /> |
<pre> | <pre> | ||
sudo raspi-config | sudo raspi-config | ||
− | Choose Interfacing Options -> SPI -> Yes to enable SPI interface | + | Choose Interfacing Options -> SPI -> Yes to enable the SPI interface |
</pre> | </pre> | ||
− | [[File:RPI open spi.png]]<br/> | + | [[File:RPI open spi.png|650px]]<br/> |
Reboot Raspberry Pi:<br /> | Reboot Raspberry Pi:<br /> | ||
<pre> | <pre> | ||
sudo reboot | sudo reboot | ||
</pre> | </pre> | ||
− | + | Make sure that the SPI is not occupied by other devices, you can check in the middle of the /boot/config .txt.<br /> | |
+ | <!-- | ||
+ | *Check /boot/config.txt, and you can see 'dtparam=spi=on' was written in. | ||
+ | [[File:Raspberry Pi Guides for 4.37 e-Paper.jpg]] | ||
+ | *To make sure SPI is not occupied, it is recommended to close other drivers' coverage. You can use ls /dev/spi* to check whether SPI is occupied. If the terminal outputs /dev/spidev0.1 and /dev/spidev0.1, SPI is not occupied. | ||
+ | [[File:Raspberry Pi Guides for 4.37 e-Paper02.jpg]] | ||
+ | --> |
Latest revision as of 02:00, 7 December 2023
Enable SPI interface
PS: If you are using a system with a Bullseye branch, you need to change "apt-get" to "apt", and the system of the Bullseye branch only supports Python3.
- Open the terminal, and use the command to enter the configuration page.
sudo raspi-config Choose Interfacing Options -> SPI -> Yes to enable the SPI interface
sudo reboot
Make sure that the SPI is not occupied by other devices, you can check in the middle of the /boot/config .txt.