{"id":25899247,"url":"https://github.com/bpi-steam/mircopython-display","last_synced_at":"2025-07-10T00:02:41.802Z","repository":{"id":138259391,"uuid":"181165993","full_name":"BPI-STEAM/MircoPython-Display","owner":"BPI-STEAM","description":"在 bpibit 上运行和 microbit 一样的 display 。","archived":false,"fork":false,"pushed_at":"2019-06-10T13:20:05.000Z","size":22948,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-03T01:32:41.759Z","etag":null,"topics":["bpibit","led","mircopython"],"latest_commit_sha":null,"homepage":"Run: the same display as microbit on bpibit.","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/BPI-STEAM.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-13T12:13:05.000Z","updated_at":"2020-09-24T11:32:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"72cf7b5d-2cc7-4603-91e4-d1ebe0a8dfe5","html_url":"https://github.com/BPI-STEAM/MircoPython-Display","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BPI-STEAM/MircoPython-Display","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BPI-STEAM%2FMircoPython-Display","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BPI-STEAM%2FMircoPython-Display/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BPI-STEAM%2FMircoPython-Display/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BPI-STEAM%2FMircoPython-Display/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BPI-STEAM","download_url":"https://codeload.github.com/BPI-STEAM/MircoPython-Display/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BPI-STEAM%2FMircoPython-Display/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264505735,"owners_count":23618963,"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":["bpibit","led","mircopython"],"created_at":"2025-03-03T01:27:47.217Z","updated_at":"2025-07-10T00:02:41.795Z","avatar_url":"https://github.com/BPI-STEAM.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u0026emsp;\u0026emsp;\u0026emsp;\u0026emsp;\u0026emsp;\u0026emsp;\u0026emsp;\u0026emsp;MircoPython - Display\n\n#### 📖 [English document](https://github.com/aJantes/MircoPython-led/blob/master/english_document.md)\n\n![Open Source Love](https://badges.frapsoft.com/os/v3/open-source.svg?v=103)\n\n\u003e 模块介绍：\n\n- [BPI:bit(ESP32)](https://github.com/aJantes/introduce-bpi-bit/blob/master/README.md)   \n- [LED灯(WS2812B)](https://github.com/aJantes/MircoPython-led/blob/master/source/WS2812B.pdf)\n\n\n# LED 矩阵显示\nLED 矩阵 硬件相关函数 [display 模块](https://github.com/aJantes/MircoPython-led/blob/master/source/display.py)。在调用相关函数前，需要先导入对应的库。\n\n\n``` shell\nmpfs [/]\u003e open\nlooking for all port...\nConnected to esp32\nmpfs [/]\u003e put display.py\nmpfs [/]\u003e ls\n\nRemote files in '/':\n\n       boot.py\n       wifi_cfg.py\n       display.py\n\nmpfs [/]\u003e\n```\n\n``` python\n\nimport display\ndisplay = display.display()\n\ndisplay.scroll(\"Hello World!\", color=Red, delay=150)\n\n```\n\n``` python\nimport display\n\ndisplay().scroll(\"Hello World!\", color=Red, delay=150)\n\n```\n\n## 主要函数 \n\n- `display.scroll(\"Hello World!\", color=Red, delay=150)`：\n\n在 led 矩阵滚动显示红色色的 \"Hello World!\"  字符串，滚动的时间间隔为 150 ms。\n\n- `display.show(Image.ALL_CLOCKS, loop=True, delay=100)` :\n\n在 led 矩阵通过led的亮灭显示出时钟。时钟循环播放，每次的变化间隔为 100 ms。\n\n\n---\n\n## 例程\n文件|功能\n:--|:--\n [show_text.py](https://github.com/aJantes/MircoPython-led/blob/master/example/show_text.py)  | 显示简单文本\n [display_yellow_text.py](https://github.com/aJantes/MircoPython-led/blob/master/example/display_yellow_text.py) |  显示黄色文本\n [display_color_text.py](https://github.com/aJantes/MircoPython-led/blob/master/example/display_color_text.py) | 显示多色文本\n [display_custom_color.py](https://github.com/aJantes/MircoPython-led/blob/master/example/display_custom_color.py) | 显示自定义颜色文本\n [show_image.py](https://github.com/aJantes/MircoPython-led/blob/master/example/show_image.py) | 显示内置图像\n [show_my_image.py](https://github.com/aJantes/MircoPython-led/blob/master/example/show_my_image.py) | 显示自定义图像\n[show_clock.py](https://github.com/aJantes/MircoPython-led/blob/master/example/show_clock.py) | 显示内置动画\n [show_animation.py](https://github.com/aJantes/MircoPython-led/blob/master/example/show_animation.py) | 显示自定义动画\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpi-steam%2Fmircopython-display","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbpi-steam%2Fmircopython-display","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpi-steam%2Fmircopython-display/lists"}