Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 457 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 457 Bytes

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

sysfs Method

Example showing how to use the Low Voltage Labs Traffic Lights with the sysfs method of accessing the GPIO pins.

Attach Traffic Lights

Attach the traffic lights so that they are connected to GPIO 9, 10, 11.

Compile and Run Code

$ git clone https://github.com/simonprickett/cpitrafficlights.git
$ cd cpitrafficlights/sysfs
$ make
$ ./trafficlights