{"id":17998414,"url":"https://github.com/primaryobjects/blinking","last_synced_at":"2025-08-21T15:09:05.487Z","repository":{"id":139343225,"uuid":"73081622","full_name":"primaryobjects/blinking","owner":"primaryobjects","description":"Use a simple programming language to turn LED lights on and off.","archived":false,"fork":false,"pushed_at":"2016-11-08T00:33:58.000Z","size":207,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-23T15:38:25.379Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/primaryobjects.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}},"created_at":"2016-11-07T13:36:56.000Z","updated_at":"2024-02-20T02:57:50.000Z","dependencies_parsed_at":"2023-06-01T17:01:22.090Z","dependency_job_id":null,"html_url":"https://github.com/primaryobjects/blinking","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/primaryobjects/blinking","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primaryobjects%2Fblinking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primaryobjects%2Fblinking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primaryobjects%2Fblinking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primaryobjects%2Fblinking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/primaryobjects","download_url":"https://codeload.github.com/primaryobjects/blinking/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primaryobjects%2Fblinking/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271499970,"owners_count":24770369,"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","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-10-29T21:25:14.485Z","updated_at":"2025-08-21T15:09:05.463Z","avatar_url":"https://github.com/primaryobjects.png","language":"JavaScript","readme":"Blinking LEDs\n==================\n\nUse a simple programming language to turn LED lights on and off.\n\nLED lights can be turned off and on according to the 8-bit representation of a binary number stored in memory. For example, in a [program](https://github.com/primaryobjects/blinking-leds/tree/master/src/examples/rightmost.txt) that stores the value 2 in the variable 'a', and then calls the output command, the second from the right bulb will turn on. 2 = 0000010 which corresponds to turning on the second from the right bulb.\n\nLikewise, a [program](https://github.com/primaryobjects/blinking-leds/tree/master/src/examples/righttwo.txt) that stores the value 3 in the variable 'x' and then calls the output command, will light up the two right-most bulbs. 3 = 0000011 which corresponds to turning on the two right-most bulbs.\n\nMultiple calls to output will be shown with a delay of 1 second between them. This creates a nifty animation as the bulbs cycle through commands!\n\nDemo\n----\n\nTry it out!\n\nhttp://primaryobjects.github.io/blinking\n\nExamples\n-------\n\n### Light Right-Most Bulb\n\n```\nld a,1 |\nout (0),a |\n```\n\n#### Output\n\n```\n......*\n```\n\n### Light Second From Right Bulb\n\n```\nld a,2 |\nout (0),a |\n```\n\n#### Output\n\n```\n.....*.\n```\n\n### Animated Bulbs\n\nMultiple output commands will light bulbs with a 1 second delay between outputs, demonstrating a cool animation effect. Here is a simple example [program](https://github.com/primaryobjects/blinking-leds/tree/master/src/examples/animated.txt) with 4 output commands, with the last command turning all of the bulbs off.\n\n```\nld a,1 |\nout (0),a |\nld b,2 |\nout (0),b |\nld c,4 |\nout (0),c |\nld d,0 |\nout (0),d |\n```\n\n#### Output\n\n```\n......*\n.....*.\n....*..\n.......\n```\n\nWhy\n---\n\nThis is part of a programming challenge, posted on [/r/dailyprogrammer](https://www.reddit.com/r/dailyprogrammer/comments/5as91q/20161102_challenge_290_intermediate_blinking_leds/)\n\n[2016-11-02] Challenge #290 [Intermediate] Blinking LEDs\n\n[Developed](http://www.primaryobjects.com/2016/09/19/building-your-first-react-javascript-app/) using Twitter Bootstrap and React.\n\nAuthor\n------\n\nKory Becker\n\nhttp://primaryobjects.com","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprimaryobjects%2Fblinking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprimaryobjects%2Fblinking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprimaryobjects%2Fblinking/lists"}