轉自:https://www.raspberrypi-spy.co.uk/2014/08/enabling-the-spi-interface-on-the-raspberry-pi/spa
方案一:圖形界面blog
Menu > Preferences > Raspberry Pi Configurationraspberry-pi
方案二:終端io
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=onim
修改成:img
# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
dtparam=spi=on文件
想必你一眼就看懂了(本身當時真是傻,馬馬虎虎看config.txt)co