{"id":13830596,"url":"https://github.com/profburke/luablink","last_synced_at":"2026-02-09T07:32:07.637Z","repository":{"id":20098657,"uuid":"23368147","full_name":"profburke/luablink","owner":"profburke","description":"Control your blink(1) from Lua.","archived":false,"fork":false,"pushed_at":"2024-08-23T02:54:42.000Z","size":95,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-30T12:41:38.435Z","etag":null,"topics":["blink1","lua","rgb-led"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/profburke.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2014-08-26T21:55:48.000Z","updated_at":"2024-08-22T22:07:08.000Z","dependencies_parsed_at":"2024-11-20T12:07:06.343Z","dependency_job_id":null,"html_url":"https://github.com/profburke/luablink","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/profburke%2Fluablink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/profburke%2Fluablink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/profburke%2Fluablink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/profburke%2Fluablink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/profburke","download_url":"https://codeload.github.com/profburke/luablink/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251644827,"owners_count":21620630,"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":["blink1","lua","rgb-led"],"created_at":"2024-08-04T10:01:02.737Z","updated_at":"2026-02-09T07:32:02.607Z","avatar_url":"https://github.com/profburke.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"\n# Blink\n\nThingM's [blink(1)](https://blink1.thingm.com/) is a programmable status indicator that plugs into a USB port. This library allows you to control a blink(1) via Lua code.\n\n\n## Usage\n\nIf you just want a pretty light, it's as simple as:\n\n```lua\n    blink = require 'blink'\n    d = blink.open()\n    d:set(255, 123, 147)\n```\n\nThis slightly more extensive example toggles the blink between red and blue:\n\n```lua\n    blink = require 'blink'\n\n    function doit(d, reps, time)\n      time = time or 300\n      for i = 1,reps do\n        d:red(); blink.sleep(time); d:blue(); blink.sleep(time)\n       end\n       d:off()\n    end\n\n    d = blink.open()\n    doit(d, 4)\n```\n              \n## Requirements and Installation\n\n**As of March 2022**, the library has been updated to work with Lua 5.4.2.\n\nThe library was developed and tested using [Lua](http://lua.org) 5.2.3. However it should run on other versions of Lua with little or no modification. \n\nIt does depend on the Blink1 [command line tool](https://github.com/todbot/blink1/blob/master/docs/blink1-tool.md). Currently the `Makefile` assumes this is already built and, specifically, that the include and dynamic library files are available in `/usr/local/include` and `/usr/local/lib` respectively. If you have these files in a different directory, you can adjust the `Makefile` as appropriate.\n\nFuture versions of the build process may handle downloading, building and installing the Blink1 library automatically if it's not currently available. The `Makefile` is dependent on GNU Make 4.0 or later.\n\nIn a nutshell, here's how to grab, build, and install the software:\n\n```\ngit clone https://github.com/profburke/luablink.git\ncd luablink/src\nmake install\n\n```\n\nUnless you make changes to the software, you won't need to re-generate the documentation, but just in case, use the `Makefile` in the top-level directory:\n\n```\ncd ..\nmake docs\n```\n\n## Documentation\n\nThis project uses semantic versioning. See \u003ca href=\"http://semver.org\"\u003esemver.org\u003c/a\u003e for more information. See the [Changelog](https://github.com/profburke/luablink/blob/master/CHANGELOG.md) for details of the project's evolution. Check the [TODO](https://github.com/profburke/luablink/blob/master/TODO.md) for a list of possible/planned improvements. (_TBH the TODO list and Changelog are not current._)\n\nAPI documentation be found in the `doc` subdirectory, the project uses [ldoc](https://stevedonovan.github.io/ldoc/) to generate the documentation.\n\n## Contributions and Contact Information\n\n**Help and contributions are encouraged and greatly appreciated!** \n\nCode changes, documentation improvement, more examples, ..., a cool logo\u0026mdash;there are a wide range of ways you can contribute. A few particular needs are: one or more people to test this software on a Linux machine, help porting to Windows, and help porting to Raspberry Pi.\n\nThe best way to contact me regarding this library is to post an issue to the [github repository](https://github.com/profburke/luablink/issues).\n\n## License\n\nBlink is free software distributed under the terms of the MIT license. It may be used for any purpose, including commercial purposes, at absolutely no cost without having to ask us. The only requirement is that if you do use blink, then you should give us credit by including the appropriate copyright notice somewhere in your product or its documentation. For details, see [LICENSE](https://github.com/profburke/luablink/blob/master/LICENSE).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprofburke%2Fluablink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprofburke%2Fluablink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprofburke%2Fluablink/lists"}