How to control GPIO via C or Python 3

I’ve been using gpiod on Armbian and it works ok. I found it easier than other options, being a beginner. Maybe you could try it on Raspbian.

For your application im guessing you’ll want to set a pull-down bias and either use polling or listen for an edge event.

To make my life easier I made my own python library for executing gpiod instructions:

Hope this helps.

1 Like