(16) WiringPi library functions

8 , WiringPi library functions

One. wiringPi Profile

wiringPi is applied to the Raspberry Pi GPIO control platform library functions, function wiringPi is similar to the Arduino wiringPi system, wiringPi library contains a rich library functions, such as libraries GPIO, I2C libraries,

SPI library, UART software library and PWM library.

 

two. wiringPi version View

In fact, our Raspberry Pi system which already comes with wiringPi library, open a command terminal, you can check the version information wiringPi by gpio command.

blob.png

 

three. GPIO port use

Command line correspondence relationship between the GPIO interface gpio readall available wiringPi and raspberry pie, as shown below:

blob.png

The above figure represent physical columns raspberry send Pin definition of the physical interface J8, i.e. WPI column represents the corresponding values ​​in wiringPi, i.e. the BCM column address offset representative of the BCM2835 GPIO register, i.e. Numerical BCM2835 C library corresponding to the GPIO. We are using wiringPi library functions, the development of raspberry pie wifi smart car is carried out.

For more information on wiringPi reference library functions can set up a development environment tools and system image

Folder.

Guess you like

Origin www.cnblogs.com/kekeoutlook/p/11123047.html