Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
f4e2127
Run the original CoreS3 UART Unit examples in the browser
m5agent Dec 1, 2026
096f3b7
Run original CoreS3 Battery, PPS and RS232 examples
m5agent Dec 1, 2026
5fdc3ab
Run original CoreS3 NB-IoT MQTT examples with isolated peers
m5agent Dec 1, 2026
ea270eb
Provision the official CoreS3 ImagePlus fallback on Run
m5agent Dec 1, 2026
3341945
Run original CoreS3 Port A and M-Bus motor examples
m5agent Dec 1, 2026
bdda153
Run the original ECG Module example through a browser UART fixture
m5agent Dec 1, 2026
f7e26a9
Add the LCD Unit example to the CoreS3 browser workbench
m5agent Dec 1, 2026
169bc78
Run the CoreS3 PDM Unit original with browser PCM input and playback
m5agent Dec 1, 2026
80516e4
Run the CoreS3 RF433T original with a Port B controller fixture
m5agent Dec 1, 2026
6ae6b01
Run the CoreS3 Finger Unit original through its UART attachment
m5agent Dec 1, 2026
d2dd77b
Pin the RF433T, Finger and PDM workbench attachment batch
m5agent Dec 1, 2026
eb91244
Offer original CoreS3 MQTT Unit and MQTTPoE examples
m5agent Dec 1, 2026
f8af97e
Expose the pinned CoreS3 SX1276 LoRa868 examples
m5agent Dec 1, 2026
253d020
Run CoreS3 Weight and Zigbee send originals in the browser
m5agent Nov 30, 2026
19d76f2
Expose the isolated UHF-RFID documentation fixture
m5agent Dec 1, 2026
e45a2ba
Add a restricted HTTP fixture for the LabelPlus example
m5agent Dec 1, 2026
75004c4
Pin the UART and radio workbench batch after the P4 fixes
m5agent Dec 1, 2026
0a67e7d
Include serial sensor fixtures in the workbench entry contract
m5agent Dec 1, 2026
481e587
Bind the LabelPlus fixture in the editor UI contract
m5agent Dec 1, 2026
f8c0a09
Regenerate the project snapshot for the browser fixture batch
m5agent Dec 1, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/project-snapshot.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@

## 代码与文档规模

- `platform/tools`:`105` 个 Python 模块,`63228` 行;规模最大的模块如下。
- `platform/tools`:`105` 个 Python 模块,`63237` 行;规模最大的模块如下。

| 模块 | 行数 |
| --- | ---: |
Expand Down
4 changes: 2 additions & 2 deletions platform/tests/test_public_micropython_ui.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import fs from 'node:fs/promises';
import vm from 'node:vm';
import {PublicQemuRuntime} from '../web/public-qemu-runtime.js';
import {PublicMicroPythonRunner} from '../web/public-micropython.js';
import {MODBUS_TCP_SERVER_EXAMPLE_ID, usesExampleStation, usesTextTcpPeer} from '../web/public-network-fixtures.js';
import {LABEL_PLUS_EXAMPLE_ID, MODBUS_TCP_SERVER_EXAMPLE_ID, usesExampleStation, usesTextTcpPeer} from '../web/public-network-fixtures.js';
import {DUAL_KMETER_EXAMPLE_ID} from '../web/public-qemu-unit-examples.js';

const source=await fs.readFile(new URL('../web/public.js',import.meta.url),'utf8');
Expand All @@ -32,7 +32,7 @@ function fixture(){
const run={kind:'browser',generation:1,controller:runtime};
const state={run,runGeneration:1};
const context={state,$:id=>nodes[id],active:value=>value===state.run&&value.generation===state.runGeneration&&!value.stopping,
PublicQemuRuntime,PublicMicroPythonRunner,DUAL_KMETER_EXAMPLE_ID,MODBUS_TCP_SERVER_EXAMPLE_ID,usesExampleStation,usesTextTcpPeer,
PublicQemuRuntime,PublicMicroPythonRunner,DUAL_KMETER_EXAMPLE_ID,LABEL_PLUS_EXAMPLE_ID,MODBUS_TCP_SERVER_EXAMPLE_ID,usesExampleStation,usesTextTcpPeer,
TextEncoder,Uint8Array,DOMException,
error:error=>{if(error.name!=='AbortError')errors.push(error);}};
vm.createContext(context);vm.runInContext(radio+'\n'+functions+'\n'+serial+'\n'+keyboard,context);
Expand Down
10 changes: 8 additions & 2 deletions platform/tests/test_public_qemu_entry.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,18 @@ import * as servos8 from '../web/public-8servos-examples.js';
import * as capGps from '../web/public-cap-gps-examples.js';
import * as dofExamples from '../web/public-dof-examples.js';
import * as moduleRadios from '../web/public-module-radio-examples.js';
import * as instruments from '../web/public-instrument-examples.js';
import * as uartUnits from '../web/public-uart-unit-examples.js';
import * as nbiotExamples from '../web/public-nbiot-examples.js';
import * as mqttUnitExamples from '../web/public-mqtt-unit-examples.js';
import * as rui3Module from '../web/public-rui3-module-example.js';
import * as portAUnitExamples from '../web/public-port-a-examples.js';
import * as usbModuleExamples from '../web/public-usb-module-examples.js';
import * as oledUnitExamples from '../web/public-oled-unit-examples.js';
import * as displayUnitExamples from '../web/public-display-unit-examples.js';
import * as driveModuleExamples from '../web/public-drive-module-examples.js';
import * as gpioExamples from '../web/public-gpio-unit-examples.js';
import * as portBUnitExamples from '../web/public-port-b-examples.js';
import * as serialSensorExamples from '../web/public-serial-sensor-examples.js';
import * as pwmUnitExamples from '../web/public-pwm-unit-examples.js';
import * as thermalExamples from '../web/public-thermal-example.js';
import * as cores3SensorExamples from '../web/public-cores3-sensor-examples.js';
Expand Down Expand Up @@ -111,7 +117,7 @@ async function entry({search='',pageUrl=pageRoot,siteServiceUrl='',isolationErro
throw new Error('Unexpected fetch '+url);
};
const dependencies=Object.fromEntries(required.map(name=>[name,()=>{throw new Error(`Unexpected execution boundary ${name}`);} ]));
Object.assign(dependencies,config,firmware,demoFirmware,uiflowFirmware,cloudStatus,qemuProfiles,qemuFrame,qemuServo,qemuPeerPair,qemuUnitExamples,qrcodeModule,facesModule,envExamples,moduleLlm,miniScales,servos8,capGps,rui3Module,dofExamples,moduleRadios,gpioExamples,portAUnitExamples,usbModuleExamples,oledUnitExamples,portBUnitExamples,pwmUnitExamples,thermalExamples,cores3SensorExamples,fingerprint2,modbusRtu,networkFixtures,usbHidExamples,audioModule,{
Object.assign(dependencies,config,firmware,demoFirmware,uiflowFirmware,cloudStatus,qemuProfiles,qemuFrame,qemuServo,qemuPeerPair,qemuUnitExamples,qrcodeModule,facesModule,envExamples,moduleLlm,miniScales,servos8,capGps,rui3Module,nbiotExamples,mqttUnitExamples,instruments,uartUnits,dofExamples,moduleRadios,gpioExamples,portAUnitExamples,usbModuleExamples,displayUnitExamples,driveModuleExamples,portBUnitExamples,serialSensorExamples,pwmUnitExamples,thermalExamples,cores3SensorExamples,fingerprint2,modbusRtu,networkFixtures,usbHidExamples,audioModule,{
siteRoot:()=>new URL(pageUrl),
ensurePublicIsolation:async()=>{events.push('isolation');if(isolationError)throw isolationError;return isolation;},
PublicMicroPythonRunner,deviceIdentityCapability,GNSS_EXAMPLE_ID,supportsQemuGnssWorkbench,
Expand Down
21 changes: 15 additions & 6 deletions platform/tools/bootstrap_browser_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,30 @@

ROOT = Path(__file__).resolve().parents[2]
SOURCE_URL = "https://github.com/m5agent/esp32sim.git"
SOURCE_COMMIT = "d9b9e92bfc924aa2ac10ea540f516a3893fa96c8"
SOURCE_COMMIT = "d1c930adffaa8d94d03856eb0276df17da668002"
BOARD_PROFILES = json.loads((ROOT / "platform/web/esp32sim-browser-boards.json").read_text())
SOURCE_PROFILES = [
"m5stack-cores3", "m5stack-cores3+dual-kmeter",
"m5stack-cores3+ultrasonic-i2c", "m5stack-cores3+relay", "m5stack-cores3+qrcode-module",
"m5stack-cores3+mini-scales", "m5stack-cores3+fingerprint2", "m5stack-cores3+8servos", "m5stack-cores3+rui3-module", "m5stack-cores3+hall-effect",
"m5stack-cores3+mini-scales", "m5stack-cores3+finger-unit", "m5stack-cores3+fingerprint2", "m5stack-cores3+8servos", "m5stack-cores3+rui3-module", "m5stack-cores3+hall-effect",
"m5stack-cores3+dof6", "m5stack-cores3+dof9", "m5stack-cores3+dof10", "m5stack-cores3+bmm350",
"m5stack-cores3+cc1101", "m5stack-cores3+lora868-v12", "m5stack-cores3+lora1262",
"m5stack-cores3+cc1101", "m5stack-cores3+lora868-sx1276", "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+sim7020", "m5stack-cores3+sim7028",
"m5stack-cores3+mqtt-unit", "m5stack-cores3+mqttpoe-unit",
"m5stack-cores3+dc-motor-module", "m5stack-cores3+fan-module",
"m5stack-cores3+bldc-driver", "m5stack-cores3+hbridge",
"m5stack-cores3+lcd-unit", "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+ecg-module",
"m5stack-cores3+module-16340", "m5stack-cores3+pps-module", "m5stack-cores3+rs232-module",
"m5stack-cores3+weight-unit", "m5stack-cores3+zigbee-unit", "m5stack-cores3+zigbee-module",
"m5stack-cores3+uhf-rfid-unit",
"m5stack-cores3+env-iii", "m5stack-cores3+env-pro",
"m5stack-cores3+audio-module", "m5stack-cores3+byteswitch", "m5stack-cores3+step16", "m5stack-cores3+ncir2",
"m5stack-cores3+audio-module", "m5stack-cores3+pdm-unit", "m5stack-cores3+byteswitch", "m5stack-cores3+step16", "m5stack-cores3+ncir2",
"m5stack-cores3+key-unit", "m5stack-cores3+fader-unit", "m5stack-cores3+flashlight-unit",
"m5stack-cores3+servo180", "m5stack-cores3+servo360", "m5stack-cores3+catch-unit",
"m5stack-cores3+watering-unit", "m5stack-cores3+grove2grove-unit",
"m5stack-cores3+rf433t-unit", "m5stack-cores3+watering-unit", "m5stack-cores3+grove2grove-unit",
"m5stack-cores3+thermal-unit", "m5stack-cores3+nfc-unit",
"m5stack-cores3+faces-calculator", "m5stack-cores3+faces-keyboard", "m5stack-cores3+faces-gamepad",
"m5stack-cores3+acssr-rtu", "m5stack-cores3+modbus-rtu-master", "m5stack-cores3+modbus-rtu-slave",
Expand Down
Loading
Loading