树莓派信息:
#4B##64位##aarch#2023-05版本系统镜像
2023-05系统镜像:raspi-arm-64
gpio -v 或 gpio readall 命令时显示 cmmand not foungpip install RPi.GPIO)仍旧不能使用上述命令wiringpi:armhf64位的树莓派不能够直接用
pip install wiringpi命令装wiringpi,否则装的是armhf架构的不兼容
sudo apt-get remove wiringpi
sudo apt-get purge wiringpi
hash -r
sudo apt-get update
sudo apt-get install git-core
git clone https://github.com/WiringPi/WiringPi.git
(或者git clone https://hub.njuu.cf/WiringPi/WiringPi.git)
(或者git clone https://hub.nuaa.cf/WiringPi/WiringPi.git)
(或者git clone https://hub.yzuu.cf/WiringPi/WiringPi.git)
cd WiringPi
./build