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 […]
Understanding Hello World – on Raspberry Pi
Like so many other people, over the last few weeks of lockdown, I’ve been trying to use the extra time that I’m not spending commuting to work to learn some new skills that I’ve always meant to get around to learning. In particular, I been teaching myself ARM Assembly Language programming. I’ve always been more […]
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 […]