From 1ed740b152b4acd47aeb02da114cdb3150009a13 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 7 Nov 2022 17:16:26 +1100 Subject: [PATCH] webassembly/README: Update README to describe new stdout behaviour. Signed-off-by: Damien George --- ports/webassembly/README.md | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/ports/webassembly/README.md b/ports/webassembly/README.md index 3b577233ff..9ad04ccb98 100644 --- a/ports/webassembly/README.md +++ b/ports/webassembly/README.md @@ -55,9 +55,9 @@ mp_js_do_str("print('hello world')\n"); Running with HTML ----------------- -The prerequisite for browser operation of micropython.js is an element with -the id `mp_js_stdout` which receives `print` events. The following code -demonstrates basic functionality: +The prerequisite for browser operation of micropython.js is to listen to the +`micropython-print` event, which is passed data when MicroPython code prints +something to stdout. The following code demonstrates basic functionality: ```html @@ -66,14 +66,19 @@ demonstrates basic functionality: -
+