/cpitrafficlights

Experiments with a Raspberry Pi, Low Voltage Labs Traffic Light LEDs and the C Programming Language.

Primary LanguageCMIT LicenseMIT

Experiments with Low Voltage Labs Traffic Lights on Raspberry Pi in C

Let's look at a couple of ways of controlling the Raspberry Pi's GPIO pins using the C programming language, and the Low Voltage Labs traffic light LEDs.

Wiring Pi Method

Wiring Pi is a well established library for handling GPIO interactions. Full details in this Medium article.

Here's my example code and documentation.

sysfs Method

Using this method requires no external libraries, we just need to write code to manipulate files on the Pi's filesystem.

Here's my example code and documentation.

Resources