We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07b1ed7 commit 4cdbd46Copy full SHA for 4cdbd46
src/demo.html
@@ -231,10 +231,17 @@ <h1>MicroPython-micro:bit simulator example embedding</h1>
231
});
232
fetchProgram(sample.value);
233
234
+ document
235
+ .querySelector("#flash")
236
+ .addEventListener("click", async () => {});
237
+
238
document.querySelector("#stop").addEventListener("click", async () => {
239
simulator.postMessage(
240
{
- kind: "stop",
241
+ kind: "flash",
242
+ filesystem: {
243
+ "main.py": new TextEncoder().encode(program.value),
244
+ },
245
},
246
"*"
247
);
0 commit comments