Help us understand the problem. What is going on with this article?

Install WiringPi for RaspberryPi 4B

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/

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

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした