Difference between revisions of "Template:RPI open spi"

From Waveshare Wiki
Jump to: navigation, search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Enable SPI interface==
+
===Enable SPI interface===
 +
<font color="#FF0000">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.</font>
 
*Open terminal, use command to enter the configuration page<br />
 
*Open terminal, use command to enter the configuration page<br />
 
<pre>
 
<pre>
Line 5: Line 6:
 
Choose Interfacing Options -> SPI -> Yes  to enable SPI interface
 
Choose Interfacing Options -> SPI -> Yes  to enable SPI interface
 
</pre>
 
</pre>
[[file:RPI_open_spi.png|900px]]<br />
+
[[File:RPI open spi.png]]<br/>
 
Reboot Raspberry Pi:<br />
 
Reboot Raspberry Pi:<br />
 
<pre>
 
<pre>
 
sudo reboot
 
sudo reboot
 
</pre>
 
</pre>
Please make sure that SPI interface was not used by other devices <br />
+
Make sure that the SPI is not occupied by other devices, you can check in the middle of the /boot/config .txt.<br />

Latest revision as of 01:48, 30 September 2022

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 terminal, use command to enter the configuration page
sudo raspi-config
Choose Interfacing Options -> SPI -> Yes  to enable SPI interface

RPI open spi.png
Reboot Raspberry Pi:

sudo reboot

Make sure that the SPI is not occupied by other devices, you can check in the middle of the /boot/config .txt.