Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

#gpiolib.c

Example library to manage the GPIO lines using the sysfs method

##Output example

#define GPIO_IN  1
#define GPIO_OUT 0

gpioexport(80);
gpiosetdir(80,GPIO_OUT);
for (;;) {
	gpiosetbits(80);
	gpioclearbits(80);
}

##Input example

#define GPIO_IN  1
#define GPIO_OUT 0

gpioexport(80);
for (;;) {
	printf("%d\n",gpiogetbits(84));
}

About

Sysfs based GPIO library

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages