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.