Raspberry Pi operation GPIO

Raspberry Pi operation GPIO

One of the methods to control the Raspberry Pi GPIO is to use the wiringpi library, which can be installed using CLI, as follows

1、	cd/tmp
2、	wget https://project-downloads.drogon.net/wiringpi-latest.deb
3、	sudo dpkg -i wiringpi-latest.deb

After installation, you can use the command to GPIO -vview the version of the library and the information of the Raspberry Pi.

Commonly used commands are as follows:

GPIO readall  #查看GPIO引脚信息
GPIO mode 1 pwm  #使GPIO输出PWM波

Guess you like

Origin blog.csdn.net/yangzc01/article/details/112426329