{"id":17967867,"url":"https://github.com/simonprickett/cpitrafficlights","last_synced_at":"2025-03-25T08:31:31.001Z","repository":{"id":149219051,"uuid":"143382860","full_name":"simonprickett/cpitrafficlights","owner":"simonprickett","description":"Experiments with a Raspberry Pi, Low Voltage Labs Traffic Light LEDs and the C Programming Language.","archived":false,"fork":false,"pushed_at":"2018-09-07T14:42:27.000Z","size":35,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-19T23:53:19.966Z","etag":null,"topics":["c","gpio","gpio-pins","low-voltage-labs","raspberry-pi","raspberry-pi-3"],"latest_commit_sha":null,"homepage":"https://simonprickett.dev/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonprickett.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-03T05:40:17.000Z","updated_at":"2022-03-21T08:40:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"27ae949a-eb2a-4c1e-8f1d-ee592847f1cc","html_url":"https://github.com/simonprickett/cpitrafficlights","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonprickett%2Fcpitrafficlights","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonprickett%2Fcpitrafficlights/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonprickett%2Fcpitrafficlights/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonprickett%2Fcpitrafficlights/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonprickett","download_url":"https://codeload.github.com/simonprickett/cpitrafficlights/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245426296,"owners_count":20613325,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","gpio","gpio-pins","low-voltage-labs","raspberry-pi","raspberry-pi-3"],"created_at":"2024-10-29T14:09:54.865Z","updated_at":"2025-03-25T08:31:30.983Z","avatar_url":"https://github.com/simonprickett.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Experiments with Low Voltage Labs Traffic Lights on Raspberry Pi in C\n\nLet'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](http://lowvoltagelabs.com/products/pi-traffic/).\n\n# Wiring Pi Method\n\n[Wiring Pi](http://wiringpi.com/) is a well established library for handling GPIO interactions.  Full details in [this Medium article](https://medium.com/@simon_prickett/gpio-access-in-c-with-raspberry-pi-traffic-lights-6b982e197d45).\n\n[Here's my example code and documentation](wiringpi/).\n\n# sysfs Method\n\nUsing this method requires no external libraries, we just need to write code to manipulate files on the Pi's filesystem.\n\n[Here's my example code and documentation](sysfs/).\n\n# Resources\n\n* The [code samples page](https://elinux.org/RPi_GPIO_Code_Samples) at elinux.org has a wealth of information about GPIO programming for the Raspberry Pi.\n* resin.io have also published a [good summary of options](https://docs.resin.io/learn/develop/hardware/gpio/#raspberry-pi) for working with GPIO.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonprickett%2Fcpitrafficlights","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonprickett%2Fcpitrafficlights","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonprickett%2Fcpitrafficlights/lists"}