Bye Bye Moore

PoCソルジャーな零細事業主が作業メモを残すブログ

RasPiのボード情報を取得

実際のところ

デフォ環境のまま

procディレクトリの中に格納されています。

$ cat /proc/device-tree/model
Raspberry Pi 3 Model B Plus Rev 1.3

シリアルナンバーなんかも

$ cat /proc/device-tree/serial-number 
0000000027657501

wiringPiがあるなら

wiringPiがあるなら、gpioコマンド

$ gpio -v
gpio version: 2.46
Copyright (c) 2012-2018 Gordon Henderson
This is free software with ABSOLUTELY NO WARRANTY.
For details type: gpio -warranty

Raspberry Pi Details:
  Type: Pi 3+, Revision: 03, Memory: 1024MB, Maker: Sony 
  * Device tree is enabled.
  *--> Raspberry Pi 3 Model B Plus Rev 1.3
  * This Raspberry Pi supports user-level GPIO access.