mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 20:20:14 +01:00
7 lines
223 B
JavaScript
7 lines
223 B
JavaScript
import(process.argv[2]).then((mp) => {
|
|
mp.loadMicroPython().then((py) => {
|
|
py.registerJsModule("js_module", { y: 2 });
|
|
py.runPython("import js_module; print(js_module); print(js_module.y)");
|
|
});
|
|
});
|