How not to use sysfs for GPIO on a Raspberry Pi (& how you should do it in 2023!)…

Some time ago (11 years ago, in fact – all the way back in 2012), I wrote a blog post about how to control GPIO on a Raspberry Pi using sysfs and the /sys/class/gpio construct it provided. Well since then, time has passed, and in the way of all things, so has the “GPIO Sysfs […]

GPIO with sysfs on Raspberry Pi (Part 2)

In my last post on using sysfs for GPIO on Raspberry Pi, I showed you how you can use the sysfs file system to manipulate the state of the GPIO pins. This time, we’re going to explore how to do the same thing programmatically. I’m going to walk you through developing a C library to […]

GPIO with sysfs on a Raspberry Pi

EDIT (August 2023) – The technique outlined here will still work, but it’s been deprecated for some time now – so I’ve written a new post about how to use the new methods… The Raspberry Pi (in case you’ve been living under a rock for the last six-months) is a cheap ($25) ARM Linux computer, primarily […]