From dcd1c2052ba96c40eb584914da3e22194cc60e8e Mon Sep 17 00:00:00 2001 From: "DESKTOP-PUHFO60\\dsx2016" Date: Fri, 23 Oct 2026 15:55:23 +0800 Subject: [PATCH] Add cydweb HTML UI preview for catalog cards. Co-authored-by: Cursor --- firmware/cyd/media/preview.html | 41 +++++++++++++++++++++++++++++++++ firmware/cyd/meta.json | 13 ++++++++++- 2 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 firmware/cyd/media/preview.html diff --git a/firmware/cyd/media/preview.html b/firmware/cyd/media/preview.html new file mode 100644 index 0000000..a109e0d --- /dev/null +++ b/firmware/cyd/media/preview.html @@ -0,0 +1,41 @@ + + + + +Whistle / Sound + + + +
+ +
Whistle / Sound
+
OUT -> GPIO22 (H/L)
+
QUIET
+
pin: LOW -> idle
+
+
hits: 7
+ + +
+ + diff --git a/firmware/cyd/meta.json b/firmware/cyd/meta.json index e543376..7040858 100644 --- a/firmware/cyd/meta.json +++ b/firmware/cyd/meta.json @@ -3,5 +3,16 @@ "name": "CYD Whistle Sound Sensor", "summary": "3-pin whistle module on GPIO22: digital H/L detect, hit count, Reset", "description": "SoftSPI touch + LVGL 320x240. OUT->GPIO22 high/low (default active HIGH). QUIET/SOUND UI, debounced hits, no dB (digital only).", - "tags": ["sound", "whistle", "digital", "gpio22", "touch", "lvgl", "cyd"] + "tags": [ + "sound", + "whistle", + "digital", + "gpio22", + "touch", + "lvgl", + "cyd" + ], + "media": { + "preview": "media/preview.html" + } }