{"id":15142086,"url":"https://github.com/funnygeeker/circuitpython-easydisplay","last_synced_at":"2026-01-20T00:05:26.960Z","repository":{"id":215393447,"uuid":"738563996","full_name":"funnygeeker/circuitpython-easydisplay","owner":"funnygeeker","description":"A display library for Circuitpython: implemented purely in Micropython.  纯 Circuitpython 实现的显示库","archived":false,"fork":false,"pushed_at":"2024-02-23T08:25:05.000Z","size":54930,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T21:19:14.900Z","etag":null,"topics":["circuitpython","display","esp32","esp8266","rp2040","ssd1306"],"latest_commit_sha":null,"homepage":"","language":"Python","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/funnygeeker.png","metadata":{"files":{"readme":"README.ZH-CN.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":"2024-01-03T14:16:01.000Z","updated_at":"2024-05-01T11:27:27.000Z","dependencies_parsed_at":"2024-11-01T11:50:52.685Z","dependency_job_id":null,"html_url":"https://github.com/funnygeeker/circuitpython-easydisplay","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.375,"last_synced_commit":"ceefcf389a450b9fca46e1a616741c0f445e4886"},"previous_names":["funnygeeker/circuitpython-easydisplay"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funnygeeker%2Fcircuitpython-easydisplay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funnygeeker%2Fcircuitpython-easydisplay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funnygeeker%2Fcircuitpython-easydisplay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funnygeeker%2Fcircuitpython-easydisplay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/funnygeeker","download_url":"https://codeload.github.com/funnygeeker/circuitpython-easydisplay/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247500464,"owners_count":20948881,"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":["circuitpython","display","esp32","esp8266","rp2040","ssd1306"],"created_at":"2024-09-26T09:22:32.897Z","updated_at":"2026-01-20T00:05:26.916Z","avatar_url":"https://github.com/funnygeeker.png","language":"Python","readme":"[English (英语)](./README.md)\n\n# circuitpython-easydisplay\n- 适用于 `CircuitPython` 的：高通用性，多功能，纯 `CircuitPython` 实现的显示库\n\n### 显示效果\n以下为 `1.0` 版本的显示效果\n![IMG_20240104_141624](https://github.com/funnygeeker/circuitpython-easydisplay/assets/96659329/7bec666b-bbb6-43e6-91af-3c1cf7103037)\n\n### 项目特点\n- 可以通过导入 `bmf` 字体文件，显示非 `ASCII` 字符，比如：中文 和 特殊符号\n- 支持 `P4`/`P6` 格式的 `PBM` 图片显示，以及 `24-bit` 的 `BMP` 图片显示\n- 初始化时可以设置默认参数，调用函数时更简洁，同时调用指定函数时，本次调用可覆盖默认参数\n\n### 使用方法\n- 详见源码注释\n\n### 注意事项\n`dat` 格式的图片在非 Framebuffer 驱动模式下，不得超出屏幕显示范围，否则图像可能无法正常显示\n\n### 示例代码\n```python\n# 这是一个使用示例 This is an example of usage\nimport time\nimport busio\nimport board\nfrom driver import adafruit_ssd1306\nfrom lib.easydisplay import EasyDisplay\n\n# RP2040 \u0026 SSD1306\ni2c = busio.I2C(board.GP27, board.GP26)\ndp = adafruit_ssd1306.SSD1306_I2C(128, 32, i2c)\ned = EasyDisplay(display=dp, font=\"/text_lite_16px_2312.v3.bmf\", show=True, clear=True, key=0)\n\ned.bmp(\"/img/test.bmp\", 0, 0)\ntime.sleep(3)\ned.pbm(\"/img/test.pbm\", 0, 0)\ntime.sleep(3)\ned.text(\"你好，世界！\\nHello World!\\nこんにちは、世界！\", 0, 0)\n\n# 更多高级使用方式详见源码注释：/lib/easydisplay.py\n# For more advanced usage, please refer to the source code comments: /lib/easydisplay.py\n```\n\n### 注意事项\n- 该项目从 [micropython-easydisplay](https://github.com/funnygeeker/micropython-easydisplay) 移植，目前处于早期版本。\n- 受限于 circuitpython 的 adafruit_framebuf，运行效率会比 micropython 上更慢，目前并没有进行完整的功能性验证，可能存在着大量 BUG，使用时请慎重。\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunnygeeker%2Fcircuitpython-easydisplay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffunnygeeker%2Fcircuitpython-easydisplay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunnygeeker%2Fcircuitpython-easydisplay/lists"}