Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
5
Help us understand the problem. What is going on with this article?
@naoppy

Install WiringPi for RaspberryPi 4B

More than 1 year has passed since last update.
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/

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

5
Help us understand the problem. What is going on with this article?
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.
Sign Up
If you already have a Qiita account Login
5
Help us understand the problem. What is going on with this article?