树莓派5B 主板 bookwrm 64位 gpio readall 命令报错

魔舞泪 5cm2023-12-22189 次点击
pi@raspberrypi:~ $ gpio readall
Oops: Unable to determine board revision from /proc/cpuinfo
-> No "Hardware" line
-> You'd best google the error to find out why.

pi@raspberrypi:~ $ gpio -v

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

Oops: Unable to determine board revision from /proc/cpuinfo
-> No "Hardware" line
-> You'd best google the error to find out why.
收藏 ♥ 感谢
Spoony 小组长 2023-12-26 
wiringPi 因为多年没有更新,已经不支持后面出的树莓派硬件了。

需要使用 python 的命令 pinout 查看 gpio 状态。
https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#gpio-pinout

A handy reference can be accessed on the Raspberry Pi by opening a terminal window and running the command pinout. This tool is provided by the GPIO Zero Python library, which is installed by default in Raspberry Pi OS.

登录注册 后可回复。