0

I am writing GPIO functions in C using standard libraries that come with the raspberry pi, and do not require installing other libraries such as wiringpi.

So I have been using stdlib.h and stdio.h, and writing, and reading the files that describe each GPIO pin using the sysfs interface. I'm just wondering if there are any other standard library interfaces for the raspberry pi i should know about.

j0h
  • 2,508
  • 6
  • 27
  • 36

2 Answers2

3

The sysfs system filesystem access to the GPIO is all that is provided as a standard library from Linux.

There are dozens of third party libraries.

See http://elinux.org/RPi_GPIO_Code_Samples for some of the third party libraries.

joan
  • 71,852
  • 5
  • 76
  • 108
1

AFAIK WiringPi should be included in latest Raspbian. If you have the gpio utility it is there (as gpio is a WiringPi utility).

Milliways
  • 62,573
  • 32
  • 113
  • 225