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: -
+