{"id":19807603,"url":"https://github.com/notninja/node-blinkt","last_synced_at":"2025-05-01T07:31:38.085Z","repository":{"id":85643084,"uuid":"95039436","full_name":"NotNinja/node-blinkt","owner":"NotNinja","description":"Node.js module for interacting with the Raspberry Pi Blinkt! addon","archived":false,"fork":false,"pushed_at":"2018-06-14T15:38:09.000Z","size":37,"stargazers_count":6,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T23:35:28.931Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NotNinja.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-21T19:38:48.000Z","updated_at":"2022-11-20T19:13:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"50db10d8-08b0-4688-b2bf-f6a4ea094515","html_url":"https://github.com/NotNinja/node-blinkt","commit_stats":{"total_commits":23,"total_committers":1,"mean_commits":23.0,"dds":0.0,"last_synced_commit":"95d85ea46901f3a90c63082fec1f974e04d23b50"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotNinja%2Fnode-blinkt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotNinja%2Fnode-blinkt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotNinja%2Fnode-blinkt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotNinja%2Fnode-blinkt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NotNinja","download_url":"https://codeload.github.com/NotNinja/node-blinkt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251840250,"owners_count":21652307,"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-11-12T09:11:21.612Z","updated_at":"2025-05-01T07:31:38.079Z","avatar_url":"https://github.com/NotNinja.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"    888888b.   888 d8b          888      888    888\n    888  \"88b  888 Y8P          888      888    888\n    888  .88P  888              888      888    888\n    8888888K.  888 888 88888b.  888  888 888888 888\n    888  \"Y88b 888 888 888 \"88b 888 .88P 888    888\n    888    888 888 888 888  888 888888K  888    Y8P\n    888   d88P 888 888 888  888 888 \"88b Y88b.   \"\n    8888888P\"  888 888 888  888 888  888  \"Y888 888\n\n[Blinkt](https://github.com/NotNinja/node-blinkt) is Node.js library that allows you to interact with your Blinkt\nhardware:\n\nhttps://shop.pimoroni.com/products/blinkt\n\n[![Dependency Status](https://img.shields.io/david/NotNinja/node-blinkt.svg?style=flat-square)](https://david-dm.org/NotNinja/node-blinkt)\n[![License](https://img.shields.io/npm/l/blinkt.svg?style=flat-square)](https://github.com/NotNinja/blinkt/blob/master/LICENSE.md)\n[![Release](https://img.shields.io/npm/v/blinkt.svg?style=flat-square)](https://www.npmjs.com/package/blinkt)\n\n* [Install](#install)\n* [API](#api)\n* [Bugs](#bugs)\n* [Contributors](#contributors)\n* [License](#license)\n\n## Install\n\nInstall using `npm`:\n\n``` bash\n$ npm install --save blinkt\n```\n\n## API\n\n### Set A Single Pixel\n\nThe bread and butter of Blintk! is setting pixels. You can set any of the 8 pixels on your Blinkt! to one of around 16\nmillion colors!\n\nThe `brightness` argument is completely optional. Omit it to keep the last brightness value set for that particular\npixel.\n\n``` javascript\nblinkt.setPixel(index, red, green, blue, brightness)\n```\n\n| Parameter  | Description                                                        | Required |\n| ---------- | ------------------------------------------------------------------ | -------- |\n| index      | The horizontal position of the pixel (between 0 and 7 - inclusive) | Yes      |\n| red        | The amount of red to be set (between 0 and 255 - inclusive)        | Yes      |\n| green      | The amount of green to be set (between 0 and 255 - inclusive)      | Yes      |\n| blue       | The amount of blue to be set (between 0 and 255 - inclusive)       | Yes      |\n| brightness | The brightness to be set (between 0 and 1 - inclusive)             | No       |\n\n### Set All Pixels\n\nSometimes you need to set all the pixels to the same color. This convenience method does just that!\n\nThe `brightness` argument is completely optional. Omit it to keep the last brightness values set for each pixel.\n\n``` javascript\nblinkt.setPixels(red, green, blue, brightness)\n```\n\n| Parameter  | Description                                                   | Required |\n| ---------- | ------------------------------------------------------------- | -------- |\n| red        | The amount of red to be set (between 0 and 255 - inclusive)   | Yes      |\n| green      | The amount of green to be set (between 0 and 255 - inclusive) | Yes      |\n| blue       | The amount of blue to be set (between 0 and 255 - inclusive)  | Yes      |\n| brightness | The brightness to be set (between 0 and 1 - inclusive)        | No       |\n\n### Show\n\nNone of your pixels will appear on Blinkt! until you `show()` them. This method writes all the pixel data out to your\ndevice.\n\n``` javascript\nblinkt.show()\n```\n\n### Clear\n\nExactly the same as calling `setAll(0,0,0)`, clear sets all the pixels to black.\n\nYou must also call `show()` if you want to turn Blinkt! off.\n\n``` javascript\nblinkt.clear()\n```\n\n### Enable/Disable Clear On Exit\n\nSometimes you want a script that runs and quits, leaving a pattern up on Blinkt!\n\n``` javascript\nblinkt.setClearOnExit(value)\n```\n\n| Parameter | Description                                       | Required |\n| --------- | ------------------------------------------------- | -------- |\n| value     | `true` to clear pixels on exit; otherwise `false` | No       |\n\n### Get A Single Pixel\n\nReturns the colors and brightness for a particular pixel.\n\n``` javascript\nblinkt.getPixel(index)\n```\n\n| Parameter | Description                                                        | Required |\n| --------- | ------------------------------------------------------------------ | -------- |\n| index     | The horizontal position of the pixel (between 0 and 7 - inclusive) | Yes      |\n\n### Constants\n\nBlinkt! has 8 pixels. Simple. Use the constant `NUM_PIXELS` when you’re iterating over pixels, so you can avoid a *magic\nnumber* in your code.\n\n``` javascript\nblinkt.NUM_PIXELS\n```\n\n## Bugs\n\nIf you have any problems with using this library or would like to see changes currently in development you can do so\n[here](https://github.com/NotNinja/node-blinkt/issues).\n\nIf you believe that you are experiencing issues with your Blinkt hardware, then you\n[get help](http://forums.pimoroni.com/c/support).\n\n## Contributors\n\nIf you want to contribute, you're a legend! Information on how you can do so can be found in\n[CONTRIBUTING.md](https://github.com/NotNinja/node-blinkt/blob/master/CONTRIBUTING.md). We want your suggestions and\npull requests!\n\nA list of Blinkt contributors can be found in\n[AUTHORS.md](https://github.com/NotNinja/node-blinkt/blob/master/AUTHORS.md).\n\n## License\n\nSee [LICENSE.md](https://github.com/NotNinja/node-blinkt/raw/master/LICENSE.md) for more information on our MIT license.\n\n[![Copyright !ninja](https://cdn.rawgit.com/NotNinja/branding/master/assets/copyright/base/not-ninja-copyright-186x25.png)](https://not.ninja)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotninja%2Fnode-blinkt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotninja%2Fnode-blinkt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotninja%2Fnode-blinkt/lists"}