{"id":24305732,"url":"https://github.com/johnmccabe/blinkt-ruby","last_synced_at":"2025-09-26T09:30:58.402Z","repository":{"id":62554356,"uuid":"68552364","full_name":"johnmccabe/blinkt-ruby","owner":"johnmccabe","description":"Ruby port of Pimoroni Blinkt Python module https://github.com/pimoroni/blinkt","archived":false,"fork":false,"pushed_at":"2016-09-20T07:19:48.000Z","size":25,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-16T09:14:24.719Z","etag":null,"topics":["blinkt","blinkt-library","blinkt-ruby","leds","library","pimoroni","pimoroni-blinkt-python","raspberry-pi","raspberrypi","ruby","ruby-port"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/johnmccabe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-18T23:13:45.000Z","updated_at":"2023-09-08T17:14:57.000Z","dependencies_parsed_at":"2022-11-03T05:00:32.922Z","dependency_job_id":null,"html_url":"https://github.com/johnmccabe/blinkt-ruby","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnmccabe%2Fblinkt-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnmccabe%2Fblinkt-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnmccabe%2Fblinkt-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnmccabe%2Fblinkt-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnmccabe","download_url":"https://codeload.github.com/johnmccabe/blinkt-ruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234300470,"owners_count":18810610,"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":["blinkt","blinkt-library","blinkt-ruby","leds","library","pimoroni","pimoroni-blinkt-python","raspberry-pi","raspberrypi","ruby","ruby-port"],"created_at":"2025-01-17T02:15:35.606Z","updated_at":"2025-09-26T09:30:58.094Z","avatar_url":"https://github.com/johnmccabe.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Blinkt!](blinkt-logo.png)\n\nA Ruby port of the [Pimoroni Blinkt Python library](https://github.com/pimoroni/blinkt).\n\n[![Gem Version](https://badge.fury.io/rb/blinkt.svg)](https://badge.fury.io/rb/blinkt)\n\nBlinkt provides eight super-bright RGB LED indicators, ideal for adding visual notifications to your Raspberry Pi on their own or on a pHAT stacking header.\n\nAvailable from Pimoroni: https://shop.pimoroni.com/products/blinkt\n\n## Installation\n\nThe Blinkt library can be installed from Rubygems:\n\n    # gem install blinkt\n\n## Usage\n\nThe two Blinkt methods you'll most commonly use are `set_pixel` and `show`. Here's a simple example:\n\n```\nrequire 'blinkt'\n\nset_pixel(0,255,0,0)\nshow\n```\n\n`set_pixel` takes an optional fifth parameter; the brightness from 0.0 to 1.0.\n\n`set_pixel(pixel_no, red, green, blue, brightness)`\n\nYou can also change the brightness with `set_brightness` from 0.0 to 1.0, for example:\n\n```\nrequire 'blinkt'\n\nset_brightness(0.5)\nshow\n```\n\nIt is also possible to clear any already lit pixels with `clear`, set all pixels at once with `set_all` and to have all pixels clear on exit with `set_clear_on_exit`.\n\n```\nrequire 'blinkt'\n\nclear\nset_clear_on_exit\nset_all(255,0,0)\nshow\n```\n\n`set_all` takes an optional fourth parameter; the brightness from 0.0 to 1.0.\n\n`set_all(red, green, blue, brightness)`\n\n## Examples\n\nThe examples in the `examples` folder should just work with Blinkt!\n\n## Version Information\n\nThe Ruby Blinkt gem version corresponds to the Python lib versions in the following table:\n\n| Ruby Gem Version | Python Lib Version |\n| ---------------- | ------------------ |\n| 0.0.3            | [0.1.0](https://github.com/pimoroni/blinkt/tree/3c493b85745d8a850dce60a3933cc71a3b8aa789)              |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnmccabe%2Fblinkt-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnmccabe%2Fblinkt-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnmccabe%2Fblinkt-ruby/lists"}