树莓派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