{"id":13802234,"url":"https://github.com/CatMeowByte/LED_panel_upy","last_synced_at":"2025-05-13T13:30:24.037Z","repository":{"id":195228597,"uuid":"692507990","full_name":"CatMeowByte/LED_panel_upy","owner":"CatMeowByte","description":"MicroPython driver module for Panel P10 32*16 Matrix display and its variants.","archived":false,"fork":false,"pushed_at":"2023-09-26T04:23:01.000Z","size":9,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-05T00:07:06.684Z","etag":null,"topics":["led-matrix","led-matrix-display","led-matrix-library","led-matrix-panel","micropython","micropython-driver","micropython-lib","p10-led-module"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CatMeowByte.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-16T17:35:29.000Z","updated_at":"2024-01-11T07:36:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"888daa26-010b-4a81-aff4-607ad0bd8d9a","html_url":"https://github.com/CatMeowByte/LED_panel_upy","commit_stats":null,"previous_names":["catmeowbyte/led_panel_upy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatMeowByte%2FLED_panel_upy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatMeowByte%2FLED_panel_upy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatMeowByte%2FLED_panel_upy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatMeowByte%2FLED_panel_upy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CatMeowByte","download_url":"https://codeload.github.com/CatMeowByte/LED_panel_upy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225218004,"owners_count":17439712,"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":["led-matrix","led-matrix-display","led-matrix-library","led-matrix-panel","micropython","micropython-driver","micropython-lib","p10-led-module"],"created_at":"2024-08-04T00:01:39.780Z","updated_at":"2024-11-18T17:31:11.953Z","avatar_url":"https://github.com/CatMeowByte.png","language":"Python","funding_links":[],"categories":["Libraries"],"sub_categories":["Display"],"readme":"# LED Panel Driver Module\n\n![heavily compressed GIF image of P10 LED panel display.](./figure1.gif)\n\nA Minimal MicroPython driver module for Panel P10 32*16 Matrix display and its variants, to handle 1/4 scanline and its unconventional byte data arrangements.\n\n## Usage Example\n\n```python\nfrom framebuf import FrameBuffer, MONO_HLSB\nfrom machine import Pin\n\nfrom led_panel import LEDPanel\n\n# Init\nled = LEDPanel(\n  pe = Pin(14, Pin.OUT),\n  pa = Pin(13, Pin.OUT),\n  pb = Pin(12, Pin.OUT),\n  pclk = Pin(18, Pin.OUT),\n  plat = Pin(19, Pin.OUT),\n  pdr = Pin(23, Pin.OUT),\n  freq = 1000,\n  duty = 1\n)\n\nw = 32\nh = 16\n\n# FrameBuffer\nba = bytearray((w * h) // 8) # 1 bpp\nfb = FrameBuffer(ba, w, h, MONO_HLSB)\n\n# Main code\ndef main():\n  x = 0\n  while 1:\n    fb.fill(0)\n    fb.text(\"Hi,all!\", x+w, 0, 1)\n    fb.text(\"WOW!\", 0, 9, 1)\n    \n    x = (x-1) % -96\n    \n    # Mandatory pause\n    # Can be used as sleep\n    await led.hold(50 / 1000) # msec\n\n# Execute\n# Must be last\nled.run(ba, main)\n```\n\nThe `hold()` function is a convenient utility for adding a mandatory asyncio pause without the need to import asyncio into the main code. It allows to add a pause in seconds, including float and fractions, or leave it empty for the shortest possible pause.\n\n## License\n\nThis project is provided under the [GPLv3+ License](https://spdx.org/licenses/GPL-3.0-or-later.html). Feel free to use, modify, and distribute it according to the terms of the license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCatMeowByte%2FLED_panel_upy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCatMeowByte%2FLED_panel_upy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCatMeowByte%2FLED_panel_upy/lists"}