Submitted by Ralph McArdell on Sun, 01 Jun 2014 17:15:59 +0100
Updated Thu, 26 Mar 2015 15:22:06 +0000

I started experimenting with Raspberry Pi GPIO using Python [1,2]. Then the original Gertboard[3] kit was released so I ordered and built one which enabled me to play with BCM2835 peripheral IO beyond basic GPIO. At the time the Gertboard had test and example C code available [4] that, as with the Python case, I felt could be expressed more cleanly. I thought it would be interesting to see what advantages C++, hopefully C++11, features and idioms might provide.

Submitted by Ralph McArdell on Sat, 18 May 2013 14:28:02 +0100
Updated Mon, 26 Jan 2015 18:28:53 +0000

In this article I am going to discuss an alternative approach to using GPIO on a Raspberry Pi in Python to that taken by an early version the RPi.GPIO package[1]. The approach occurred to me in 2012 while making a start at hardware interfacing and programming using a Raspberry Pi with some LEDs, switches and the like that had been collecting dust for 20 to 30 years. To read and write data to the GPIO lines I thought I would start with Python and the RPi.GPIO package.