1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

RaspberryPi: SPI が有効かどうかを確認する方法

Posted at

SPI を有効にするには

sudo raspi-config

image.png

有効になっているのを確認

$ sudo raspi-config nonint get_spi
0
$ ls -l /dev/spidev*
crw-rw---- 1 root spi 153, 0 Jun 10 17:00 /dev/spidev0.0
crw-rw---- 1 root spi 153, 1 Jun 10 17:00 /dev/spidev0.1
$ sudo cat /boot/firmware/config.txt | grep spi
dtparam=spi=on
$ lsmod | grep spi
spidev                 20480  0
spi_bcm2835            20480  0

確認したバージョン

$ uname -a
Linux rose 6.12.25+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.25-1+rpt1 (2025-04-30) aarch64 GNU/Linux
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?