simonprickett / cpitrafficlights

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

Home Page:https://simonprickett.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

https://simonprickett.dev/

License:MIT License


Languages

Language:C 87.0%Language:Makefile 13.0%