{"id":31547168,"url":"https://github.com/prashnts/esphome-microdot-matrix","last_synced_at":"2025-10-04T15:57:38.860Z","repository":{"id":82014781,"uuid":"587024327","full_name":"prashnts/esphome-microdot-matrix","owner":"prashnts","description":"esp-home component for Pimoroni's Microdot display matrices","archived":false,"fork":false,"pushed_at":"2024-10-20T16:55:53.000Z","size":1252,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-20T20:07:58.687Z","etag":null,"topics":["esp-home","esp32","esphome","pimoroni"],"latest_commit_sha":null,"homepage":"","language":"C++","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/prashnts.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-09T19:33:21.000Z","updated_at":"2024-10-20T16:55:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"9bd9fcd3-f1dc-4dc9-9369-780b73ffaa13","html_url":"https://github.com/prashnts/esphome-microdot-matrix","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/prashnts/esphome-microdot-matrix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prashnts%2Fesphome-microdot-matrix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prashnts%2Fesphome-microdot-matrix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prashnts%2Fesphome-microdot-matrix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prashnts%2Fesphome-microdot-matrix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prashnts","download_url":"https://codeload.github.com/prashnts/esphome-microdot-matrix/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prashnts%2Fesphome-microdot-matrix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278335452,"owners_count":25970129,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["esp-home","esp32","esphome","pimoroni"],"created_at":"2025-10-04T15:57:34.740Z","updated_at":"2025-10-04T15:57:38.852Z","avatar_url":"https://github.com/prashnts.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# esphome-microdot-matrix\n\nA custom component for `esp-home` to drive the beautiful `LTP305` based LED Matrices from Pimoroni.\nThey produce this module in two forms, a standalone [LED Matrix Breakout][matrix_url] containing\ntwo display modules, and a Raspberry Pi HAT called Microdot pHAT.\n\nI really love these little displays, but I wanted to free up some of my old Raspberry Pis driving\nthis display (thanks to the global shortage), and so I decided to make them work with ESP-Home, which\nhas a great API.\n\n![Demo running 3 Matrices on same bus](etc/demo-shot.jpg)\n\n### Notes\n- Reviewing [`max7219digit`][max7219] implementation, I discovered that we can have custom functions\n  in lambdas. This works by passing the `MicrodotMatrix` object to the lambda instead of just the\n  `DisplayBuffer`.\n- Based on Pimoroni's [original implementation][pimoroni_pico], and most importantly the font.\n- You can use any font (or anything really that is suppored by esp-home's display api), but most pixel\n  fonts I found did not render nicely.\n- Pimoroni's font is accessible by using `printstr`, `printchar`, and `printstrf`, while you can\n  use your own font via `printf` api.\n- If you use multiple displays, be aware that there is a noticable refresh delay between them. (I might\n  improve this later.)\n- Red and Green modules do not have same brightness scale.\n- Logically you have 10 x 7 pixels grid, but there is a gap between 5th and 6th pixels.\n\n## Usage\n\nInclude the component in your `esp-home` config. You can either link directly\nto this repo or clone it and include locally (example below). Refer to docs\nfor the config via git repos.\n\n```yml\nexternal_components:\n  - source:\n      type: local\n      path: esphome-microdot-matrix\n```\n\nNext add the following configuration, which will show current time (...well,\nseconds) and pulse the brightness (approximately) every second.\n\nThere are a couple of functions available in lambda, namely, `printstrf(format, ...)`,\n`set_decimal(left, right)`, and `set_brightness(value)`.\n\n```yml\ntime:\n  - platform: sntp\n    id: ntp_time\n    timezone: 'Europe/Paris'\n\ndisplay:\n  - platform: microdot_matrix\n    update_interval: .5s\n    address: 0x61\n    brightness: 10\n    lambda: |-\n      auto time = id(ntp_time).now();\n      it.printstrf(\"%02d\", time.second);\n      if (time.second % 2) {\n        it.set_brightness(20);\n        it.set_decimal(true, true);\n      } else {\n        it.set_brightness(10);\n        it.set_decimal(true, true);\n      }\n```\n\n## Todos\n\n- [ ] Scroll support\n- [x] Use Pimoroni's fonts\n- [ ] Weather Icons\n- [ ] Support more fonts?\n\n## License\n\nMIT.\n\n[matrix_url]: https://shop.pimoroni.com/products/led-dot-matrix-breakout?variant=32274405621843\n[max7219]: https://github.com/esphome/esphome/blob/ecac26aebaa7aa8c27f58be2fa6a1330f92bc92d/esphome/components/max7219digit/display.py\n[pimoroni_pico]: https://github.com/pimoroni/pimoroni-pico/blob/main/drivers/ltp305/ltp305.cpp\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprashnts%2Fesphome-microdot-matrix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprashnts%2Fesphome-microdot-matrix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprashnts%2Fesphome-microdot-matrix/lists"}