Raspberry啟用I2C與SPI
2023/09/13更新
作業系統為Debian11(bullseye)
(1)使用raspi-config啟用I2C
#sudo raspi-config
選擇Interface Options->I2C,啟用I2C
啟用成功會多出/dev/i2c-1
(2)使用raspi-config啟用SPI
#sudo raspi-config
選擇Interface Options->SPI,啟用SPI
啟用成功會多出/dev/spidev0.0與/dev/spidev0.1