3
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Install WiringPi for RaspberryPi 4B

Last updated at Posted at 2019-12-14
sudo apt-get install wiringpi

で入るWiringPiのバージョンは2.50
2.50はラズパイ4をサポートしていないので、最新のバージョン2.52を入れる必要がある。

install

参考

$ wget https://project-downloads.drogon.net/wiringpi-latest.deb
$ sudo dpkg -i wiringpi-latest.deb

Verify

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

Raspberry Pi Details:
  Type: Pi 4B, Revision: 02, Memory: 4096MB, Maker: Sony
  * Device tree is enabled.
  *--> Raspberry Pi 4 Model B Rev 1.2
  * This Raspberry Pi supports user-level GPIO access.

Q.なんでapt-getで2.52が入らないの?

A. 開発者がユーザーに失望して開発辞めたから

and thanks to the incompetence of many people who have done just this, I’ve had over 10,000 emails
(無能な人間のおかげで10000通ぐらいメール受け取ったわ)

参考:http://wiringpi.com/wiringpi-deprecated/

恐らくこれから新しいボードが出てももう新しいバージョンはでず、対応しないのでこれからは別のライブラリを使うべきですね...

3
5
1

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
3
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?