Skip to content

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

License

Notifications You must be signed in to change notification settings

simonprickett/cpitrafficlights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published