libgpiod-example icon indicating copy to clipboard operation
libgpiod-example copied to clipboard

Scan and monitor examples using libgpiod

Open fsheikh opened this issue 4 years ago • 2 comments

Summary: This patch adds a simple C example to search for a GPIO line on a Linux platform with multiple GPIO controllers. It also adds another c++ example using event loop to monitor a GPIO line.

fsheikh avatar Nov 17 '20 10:11 fsheikh

Hi @starnight. I really found the examples quite useful. Although one can look into ligpiod official project, they are still useful for example when one does not want to rebuilt that whole project. Just added some more examples which fitted a use-case I was working on. All in the hope that others may find them useful. Please feel free to review. Cheers!

fsheikh avatar Nov 17 '20 10:11 fsheikh

@starnight please feel free to have another look!

fsheikh avatar Nov 20 '20 16:11 fsheikh

After 4 years, I just learned I did not submit the review request.

Perhaps it is never too late :smile:

fsheikh avatar Feb 04 '24 14:02 fsheikh

Squashed the fix into the previous commits and pushed to master. Thanks

starnight avatar Feb 14 '24 04:02 starnight