From f2680c4d8660b3b016ac7fcd0f820e8c7080d8f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=8A=E6=99=9A=E6=89=93=E8=80=81=E8=99=8E?= Date: Wed, 1 Apr 2026 15:40:08 +0800 Subject: [PATCH 1/2] =?UTF-8?q?[=E6=8A=95=E7=A8=BF]=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=84=9A=E6=9C=AC:=20=E4=BA=8C=E7=BB=B4=E7=A0=81=E7=94=9F?= =?UTF-8?q?=E6=88=90=E5=99=A8=20=E2=80=94=20by=20=E7=88=B1=E7=8E=A9Arduino?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script_library/scripts/basic/script_mnfqk5cz.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 script_library/scripts/basic/script_mnfqk5cz.py diff --git a/script_library/scripts/basic/script_mnfqk5cz.py b/script_library/scripts/basic/script_mnfqk5cz.py new file mode 100644 index 0000000..ce11ce4 --- /dev/null +++ b/script_library/scripts/basic/script_mnfqk5cz.py @@ -0,0 +1,15 @@ +import qrcode + +qr = qrcode.QRCode( + version=1, + error_correction=qrcode.constants.ERROR_CORRECT_L, + box_size=10, + border=4, +) + +qr.add_data("https://doubao.com") +qr.make(fit=True) + +# 前景黑,背景白 +img = qr.make_image(fill_color="black", back_color="white") +img.save("qr_custom.png") \ No newline at end of file From d9eab4c5d54673643b659e4e22aaca0128b419b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=8A=E6=99=9A=E6=89=93=E8=80=81=E8=99=8E?= Date: Wed, 1 Apr 2026 15:40:10 +0800 Subject: [PATCH 2/2] =?UTF-8?q?[=E6=8A=95=E7=A8=BF]=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=20index.json:=20=E6=B7=BB=E5=8A=A0=20=E4=BA=8C=E7=BB=B4?= =?UTF-8?q?=E7=A0=81=E7=94=9F=E6=88=90=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script_library/index.json | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/script_library/index.json b/script_library/index.json index f382cf1..ae4163d 100644 --- a/script_library/index.json +++ b/script_library/index.json @@ -1,7 +1,7 @@ { "format_version": 1, - "data_version": 45, - "updated": "2026-03-31T15:17:18.975Z", + "data_version": 46, + "updated": "2026-04-01T07:40:10.066Z", "announcement": null, "categories": [ { @@ -1098,6 +1098,29 @@ "updated": null, "status": "active", "lines": 1122 + }, + { + "id": "script_mnfqk5cz", + "name": "二维码生成器", + "name_en": "二维码生成器", + "desc": "生成二维码(需拓展qrcode库)", + "desc_en": "生成二维码(需拓展qrcode库)", + "category": "basic", + "file": "scripts/basic/script_mnfqk5cz.py", + "thumbnail": null, + "version": 1, + "file_type": "py", + "author": "爱玩Arduino", + "author_en": "爱玩Arduino", + "tags": [ + "community" + ], + "requires": [], + "min_app_version": "1.5.0", + "added": "2026-04-01", + "updated": null, + "status": "active", + "lines": 15 } ] }