From f4e2127a24e825f069f610acc4477065ad03ef86 Mon Sep 17 00:00:00 2001 From: m5agent <329351612+m5agent@users.noreply.github.com> Date: Tue, 1 Dec 2026 11:35:31 +0800 Subject: [PATCH 01/20] Run the original CoreS3 UART Unit examples in the browser --- platform/tools/bootstrap_browser_runtime.py | 3 +- platform/web/index.html | 12 +++++++ platform/web/public-browser-runtime.js | 22 +++++++++++-- platform/web/public-uart-unit-examples.js | 18 +++++++++++ platform/web/public.js | 35 +++++++++++++++++++-- platform/web/vendor/esp32sim/UPSTREAM.md | 2 +- platform/web/vendor/esp32sim/source.json | 2 +- 7 files changed, 87 insertions(+), 7 deletions(-) create mode 100644 platform/web/public-uart-unit-examples.js diff --git a/platform/tools/bootstrap_browser_runtime.py b/platform/tools/bootstrap_browser_runtime.py index da305e61e..bf9e92807 100644 --- a/platform/tools/bootstrap_browser_runtime.py +++ b/platform/tools/bootstrap_browser_runtime.py @@ -21,7 +21,7 @@ ROOT = Path(__file__).resolve().parents[2] SOURCE_URL = "https://github.com/m5agent/esp32sim.git" -SOURCE_COMMIT = "d9b9e92bfc924aa2ac10ea540f516a3893fa96c8" +SOURCE_COMMIT = "8ab86940e20a3c87e00faafc6e09aa1812146431" BOARD_PROFILES = json.loads((ROOT / "platform/web/esp32sim-browser-boards.json").read_text()) SOURCE_PROFILES = [ "m5stack-cores3", "m5stack-cores3+dual-kmeter", @@ -31,6 +31,7 @@ "m5stack-cores3+cc1101", "m5stack-cores3+lora868-v12", "m5stack-cores3+lora1262", "m5stack-cores3+usb-module-gpio", "m5stack-cores3+usb-module-mouse", "m5stack-cores3+glass", "m5stack-cores3+glass2", "m5stack-cores3+mini-oled", "m5stack-cores3+oled", + "m5stack-cores3+laser-tx", "m5stack-cores3+midi-unit", "m5stack-cores3+synth-unit", "m5stack-cores3+asr-unit", "m5stack-cores3+env-iii", "m5stack-cores3+env-pro", "m5stack-cores3+audio-module", "m5stack-cores3+byteswitch", "m5stack-cores3+step16", "m5stack-cores3+ncir2", "m5stack-cores3+key-unit", "m5stack-cores3+fader-unit", "m5stack-cores3+flashlight-unit", diff --git a/platform/web/index.html b/platform/web/index.html index d90aa933a..b49d76433 100644 --- a/platform/web/index.html +++ b/platform/web/index.html @@ -195,6 +195,14 @@

+