{"id":22468587,"url":"https://github.com/projectweekend/digispark-rgb-led","last_synced_at":"2025-07-08T20:35:35.835Z","repository":{"id":14606827,"uuid":"17324035","full_name":"projectweekend/DigiSpark-RGB-LED","owner":"projectweekend","description":"A simple class for controlling a DigiSpark RGB LED via USB using Python","archived":false,"fork":false,"pushed_at":"2014-03-01T21:24:35.000Z","size":208,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T19:29:57.327Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/projectweekend.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}},"created_at":"2014-03-01T20:52:26.000Z","updated_at":"2019-06-14T11:38:07.000Z","dependencies_parsed_at":"2022-07-23T11:16:17.264Z","dependency_job_id":null,"html_url":"https://github.com/projectweekend/DigiSpark-RGB-LED","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/projectweekend%2FDigiSpark-RGB-LED","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectweekend%2FDigiSpark-RGB-LED/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectweekend%2FDigiSpark-RGB-LED/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectweekend%2FDigiSpark-RGB-LED/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/projectweekend","download_url":"https://codeload.github.com/projectweekend/DigiSpark-RGB-LED/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245874241,"owners_count":20686731,"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":[],"created_at":"2024-12-06T11:17:53.862Z","updated_at":"2025-03-27T15:44:47.498Z","avatar_url":"https://github.com/projectweekend.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"DigiSpark-RGB-LED\n=================\n\nA simple class for controlling a [DigiSpark](http://digistump.com/products/1) [RGB LED](http://digistump.com/products/3) via USB using Python.\n\nThe `arduino` package in this repo was borrowed from [DigiSpark Example Programs](https://github.com/digistump/DigisparkExamplePrograms/tree/master/Python/DigiBlink/source/arduino). This all came about when I was working on a headless Raspberry Pi based project ([Pi-Nova-5](https://github.com/projectweekend/Pi-Nova-5)) and wanted to use the DigiSpark LED as a status indicator. \n\nThe two external Python dependencies are included in the `requirements.txt` file. The [webcolors](https://pypi.python.org/pypi/webcolors) package can be installed via `pip`. To install the [pyusb](https://github.com/walac/pyusb) package, follow instructions in that repo. After that, load the `DigiUSB→DigiBlink` example sketch onto your Digispark using the DigisparkArduino IDE.\n\nOnce everything is installed, simply plug the DigiSpark into a USB port on your computer and...\n\n## Create an LED instance:\n```\n from led import LED\n\n my_led = LED()\n```\n\n## Turn the LED on:\n```\n # make it red\n my_led.on('red')\n\n # make it blue\n my_led.on('blue')\n\n # make it green\n my_led.on('green')\n```\n\n## Blink the LED:\n```\n # blink red 3 times\n my_led.blink('red', 3)\n\n # blink blue 5 times\n my_led.blink('blue', 5)\n\n # blink green 10 times\n my_led.blink('green', 10)\n```\n\n## Turn the LED off:\n```\n my_led.off()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectweekend%2Fdigispark-rgb-led","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprojectweekend%2Fdigispark-rgb-led","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectweekend%2Fdigispark-rgb-led/lists"}