{"id":24508597,"url":"https://github.com/adygcode/trafficlights-2021-s2","last_synced_at":"2026-04-25T18:32:41.411Z","repository":{"id":112776310,"uuid":"397123597","full_name":"AdyGCode/TrafficLights-2021-S2","owner":"AdyGCode","description":null,"archived":false,"fork":false,"pushed_at":"2021-08-17T09:01:26.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-01T21:52:23.410Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AdyGCode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-08-17T05:59:18.000Z","updated_at":"2021-08-17T09:01:29.000Z","dependencies_parsed_at":"2023-03-14T18:00:14.268Z","dependency_job_id":null,"html_url":"https://github.com/AdyGCode/TrafficLights-2021-S2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AdyGCode/TrafficLights-2021-S2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdyGCode%2FTrafficLights-2021-S2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdyGCode%2FTrafficLights-2021-S2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdyGCode%2FTrafficLights-2021-S2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdyGCode%2FTrafficLights-2021-S2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AdyGCode","download_url":"https://codeload.github.com/AdyGCode/TrafficLights-2021-S2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdyGCode%2FTrafficLights-2021-S2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32273214,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T18:29:39.964Z","status":"ssl_error","status_checked_at":"2026-04-25T18:29:32.149Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-01-22T00:17:05.493Z","updated_at":"2026-04-25T18:32:41.405Z","avatar_url":"https://github.com/AdyGCode.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TRaffic Lights\n\nThis short bit of code serves the following purposes:\n\n- Illustrating the idea classes and inheritance\n- Illustrating the use of methods\n- Illustrating the use of instance variables\n\n## Requirements\n\nThis code requires either:\n\n- Raspberry Pi + SenseHAT, or\n- SenseHAT simulator (https://trinket.io/sense-hat), or\n- Raspberry Pi Simulator + SenseHAT simulator ()\n- Raspberry Pi + SenseHAT simulator ()\n\n### Pi \u0026 SenseHAT (Physical hardware)\n\nDocs: [...](#)\n\nA Raspberry PI with a SenseHAT will need to have the SenseHAT support files installed:\n```shell\nsudo apt-get update\nsudo apt-get install sense-hat\nsudo pip3 install pillow\n```\n\n### SenseHAT simulator (Runs on Web)\n\nDocs: [https://sense-emu.readthedocs.io](https://sense-emu.readthedocs.io)\n\nYou will need to create a `main.py` and a `TrafficLight.py` file and put the required code into the respective files.\n\n### Raspberry Pi (Physical) and SenseHAT Emulator\nDocs: [https://sense-emu.readthedocs.io](https://sense-emu.readthedocs.io)\n\nIf you wish to run the SenseHAT emulator on the Raspberry Pi, then you will need to do the following:\n\n- Install the emulator\n```shell\nsudo apt-get update\nsudo apt-get install python-sense-emu python3-sense-emu sense-emu-tools\n```\n\nAny references to `sense_hat` will be replaced by `sense_emu`. For example:\n```python\nfrom sense_emu import SenseHat\n```\n\n### Raspberry PI and SenseHAT simulator (Both emulated) \n\n*Details to come...*\nDocs: [...](#)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadygcode%2Ftrafficlights-2021-s2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadygcode%2Ftrafficlights-2021-s2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadygcode%2Ftrafficlights-2021-s2/lists"}