Skip to content

This is a bunch of c functions for the RPI to do GPIO communication and interrupts via sysfs

Notifications You must be signed in to change notification settings

tajudheenk/gpio-sysfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPIO communication via sysfs.

gpio-sysfs.* is a collection of functions which encapsulate the
reading / writing and interrupt handling to/from GPIO pins
of the raspberry pi.

The demo program gpio-int-test waits for an interrupt for 
3secs on a GPIO pin. If an interrupt has happened it prints out 
"interrupt" otherwise "timeout".

To run it type:

make
sudo ./gpio-int-test 22

which waits then for an interrupt on GPIO pin 22.

About

This is a bunch of c functions for the RPI to do GPIO communication and interrupts via sysfs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published