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.
three. GPIO port use
Command line correspondence relationship between the GPIO interface gpio readall available wiringPi and raspberry pie, as shown below:
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.