{"id":20988065,"url":"https://github.com/walkline80/micropython-qrcode-cmodule","last_synced_at":"2025-03-13T11:27:05.077Z","repository":{"id":238262975,"uuid":"796182064","full_name":"Walkline80/MicroPython-QRCode-CModule","owner":"Walkline80","description":"生成并显示指定内容的二维码","archived":false,"fork":false,"pushed_at":"2024-05-05T09:00:19.000Z","size":2286,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-20T07:43:58.597Z","etag":null,"topics":["cmodule","micropython","qrcode"],"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/Walkline80.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":"2024-05-05T07:21:46.000Z","updated_at":"2024-05-05T11:47:14.000Z","dependencies_parsed_at":"2024-05-05T10:21:18.884Z","dependency_job_id":"aa6d27a3-0c9e-4dd5-92ff-e32ab464fbb3","html_url":"https://github.com/Walkline80/MicroPython-QRCode-CModule","commit_stats":null,"previous_names":["walkline80/micropython-qrcode-cmodule"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Walkline80%2FMicroPython-QRCode-CModule","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Walkline80%2FMicroPython-QRCode-CModule/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Walkline80%2FMicroPython-QRCode-CModule/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Walkline80%2FMicroPython-QRCode-CModule/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Walkline80","download_url":"https://codeload.github.com/Walkline80/MicroPython-QRCode-CModule/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243394992,"owners_count":20284053,"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":["cmodule","micropython","qrcode"],"created_at":"2024-11-19T06:19:05.378Z","updated_at":"2025-03-13T11:27:05.057Z","avatar_url":"https://github.com/Walkline80.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eMicroPython QRCode CModule\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://img.shields.io/badge/Licence-MIT-green.svg?style=for-the-badge\" /\u003e\u003c/p\u003e\n\n## 项目介绍\n\n生成并显示指定内容的二维码\n\n## 如何添加模块\n\n\u003e 以`ESP`系列芯片为例\n\n* 在`MicroPython`项目同级目录克隆或粘贴本项目文件夹，并将文件夹重命名为`qrcode`\n\n\t```bash\n\tgit clone https://gitee.com/walkline/micropython-qrcode-cmodule qrcode\n\t```\n\n* 根据`MicroPython`项目固件编译说明做好前期准备\n\n* 使用如下命令编译固件：\n\n\t```bash\n\tcd micropython/ports/esp32\n\tmake USER_C_MODULES=../../../../qrcode/cmodules/micropython.cmake\n\t```\n\n## 显示效果\n\n| 控制台 | TFT | OLED |\n| :-: | :-: | :-: |\n| ![](./images/console.png) | ![](./images/tft.png) | ![](./images/oled.png) |\n\n## 模块使用说明\n\n参考项目目录下`tests`文件中的代码。\n\n查看 [模块方法列表](./DOCS.md)\n\n### 简单示例\n\n生成二维码，并在控制台打印输出\n\n```python\n\u003e\u003e\u003e import qrcode\n\u003e\u003e\u003e _qrcode = qrcode.QRCODE()\n\u003e\u003e\u003e _qrcode.ecc_level(qrcode.ECC_HIGH)\n\u003e\u003e\u003e _qrcode.generate('https://gitee.com/walkline/micropython-qrcode-cmodule')\nI (66945) QRCODE_MODULE: Encoding below text with ECC LVL 3 \u0026 QR Code Version 40\nI (66945) QRCODE_MODULE: https://gitee.com/walkline/micropython-qrcode-cmodule\n\u003e\u003e\u003e print(_qrcode)\n\u003cQRCODE version=6, max_version=40 length=41, ecc_level=3, buffer_size=210\u003e\n\u003e\u003e\u003e _qrcode.print()\n\u003e\u003e\u003e\n```\n\n### 更多示例\n\n```bash\n# 使用 ab 工具烧录固件\n$ ab --flash\n\n# 使用 ab 工具上传相关文件\n$ ab\n\n# 使用 ab 工具打开串口\n$ ab --repl\n\n# 使用快捷键 ctrl+r，并选择以 _test 结尾的文件\n```\n\n## 参考资料\n\n* [espressif/qrcode v0.1.0](https://components.espressif.com/components/espressif/qrcode)\n* [MicroPython QRCode Research](https://gitee.com/walkline/micropython-qrcode-research)\n* [AMPY Batch Tool](https://gitee.com/walkline/a-batch-tool)\n\n## 合作交流\n\n* 联系邮箱：\u003cwalkline@163.com\u003e\n* QQ 交流群：\n\t* 走线物联：[163271910](https://jq.qq.com/?_wv=1027\u0026k=xtPoHgwL)\n\t* 扇贝物联：[31324057](https://jq.qq.com/?_wv=1027\u0026k=yp4FrpWh)\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://gitee.com/walkline/WeatherStation/raw/docs/images/qrcode_walkline.png\" width=\"300px\" alt=\"走线物联\"\u003e\u003cimg src=\"https://gitee.com/walkline/WeatherStation/raw/docs/images/qrcode_bigiot.png\" width=\"300px\" alt=\"扇贝物联\"\u003e\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwalkline80%2Fmicropython-qrcode-cmodule","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwalkline80%2Fmicropython-qrcode-cmodule","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwalkline80%2Fmicropython-qrcode-cmodule/lists"}