{"id":32172941,"url":"https://github.com/pappersverk/inky","last_synced_at":"2026-02-21T03:31:19.851Z","repository":{"id":44982206,"uuid":"159061839","full_name":"pappersverk/inky","owner":"pappersverk","description":"A library for managing Inky e-ink displays from Elixir.","archived":false,"fork":false,"pushed_at":"2023-08-13T05:56:57.000Z","size":196,"stargazers_count":76,"open_issues_count":16,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-21T18:46:57.033Z","etag":null,"topics":["elixir","inky","nerves","pimoroni","scenic"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pappersverk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-25T18:28:38.000Z","updated_at":"2025-02-12T08:59:47.000Z","dependencies_parsed_at":"2022-07-13T03:20:36.121Z","dependency_job_id":null,"html_url":"https://github.com/pappersverk/inky","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/pappersverk/inky","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pappersverk%2Finky","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pappersverk%2Finky/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pappersverk%2Finky/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pappersverk%2Finky/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pappersverk","download_url":"https://codeload.github.com/pappersverk/inky/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pappersverk%2Finky/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29672704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T03:11:15.450Z","status":"ssl_error","status_checked_at":"2026-02-21T03:10:34.920Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["elixir","inky","nerves","pimoroni","scenic"],"created_at":"2025-10-21T18:46:50.130Z","updated_at":"2026-02-21T03:31:19.844Z","avatar_url":"https://github.com/pappersverk.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Inky\n\n[![CircleCI](https://circleci.com/gh/pappersverk/inky.svg?style=svg)](https://circleci.com/gh/pappersverk/inky)\n[![hex.pm](https://img.shields.io/hexpm/v/inky.svg)](https://hex.pm/packages/inky)\n\nThis is a port of Pimoroni's [python Inky\nlibrary](https://github.com/pimoroni/inky) written in Elixir. This library is\nintended to support both Inky pHAT and wHAT, but since we only have pHATs, the\nwHAT support may not be fully functional.\n\nSee the [API reference](https://hexdocs.pm/inky/api-reference.html) for details\non how to use the functionality provided.\n\n### Host Development\n\nAn [inky host development](https://github.com/pappersverk/inky_host_dev) library\nis underway for allowing host-side development, but until that is finished you\ncan not see results without using a physical device.\n\n### Scenic Driver\n\nA [basic driver](https://github.com/pappersverk/scenic_driver_inky) for scenic\nis in the works, check it out, to follow how it is progressing.\n\n## Getting started\n\nInky is available on Hex. Add inky to your mix.exs deps:\n\n```elixir\n{:inky, \"~\u003e 1.0.1\"},\n```\n\nRun `mix deps.get` to get the new dep.\n\n## Usage\n\nA sample for Inky only, both host development and on-device is available as [pappersverk/sample_inky](https://github.com/pappersverk/sample_inky).\n\nA sample for using it with Scenic both for host development and on-device is available as [pappersverk/sample_scenic_inky](https://github.com/pappersverk/sample_scenic_inky).\n\n## Brief example\n\nIn typical usage this would be inside a nerves project. If Inky is installed in\nyour application you can do the following to test it and your display (note the\nconfig in init, adjust accordingly):\n\n```elixir\n# Start your Inky process ...\n{:ok, pid} = Inky.start_link(:phat, :red, %{name: InkySample})\n\npainter = fn x, y, w, h, _pixels_so_far -\u003e\n  wh = w / 2\n  hh = h / 2\n\n  case {x \u003e= wh, y \u003e= hh} do\n    {true, true} -\u003e :red\n    {false, true} -\u003e if(rem(x, 2) == 0, do: :black, else: :white)\n    {true, false} -\u003e :black\n    {false, false} -\u003e :white\n  end\nend\n\nInky.set_pixels(InkySample, painter, border: :white)\n\n# Flip a few pixels\nInky.set_pixels(pid, %{{0,0}: :black, {3,49}: :red, {23, 4}: white})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpappersverk%2Finky","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpappersverk%2Finky","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpappersverk%2Finky/lists"}