樹莓派3 開機自啟動(SPI)


轉自:https://www.raspberrypi-spy.co.uk/2014/08/enabling-the-spi-interface-on-the-raspberry-pi/

 

方案一:圖形界面

Menu > Preferences > Raspberry Pi Configuration

 

方案二:終端

sudo raspi-config

方案三:修改文件(需重啟)

引導根目錄下:

config.txt
文本打開底部添加:
dtparam=spi=on


修正:上述方法不行
同打開文件config.txt
行45,如下:

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

修改為:

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
dtparam=spi=on

 

想必你一眼就看懂了(自己當時真是傻,馬馬虎虎看config.txt)

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM