Replies: 4 comments 5 replies
-
If you look at /tools/mpremote in this repo the current version might be easier to follow, the transport_serial file handles all the communicating. I'm not sure about python in the browser though, whether it's possible to get read/write stream date out to a JavaScript function which could then forward it on to the webusb functions. |
Beta Was this translation helpful? Give feedback.
-
Ok I saw that Jeff Glass did the same thing with the WEBSERIAL API. https://jeff.glass/post/pyscript-webserial/ I need to know if i can use mpremote as a library ? can i do like the pyboard.py utility ?
|
Beta Was this translation helpful? Give feedback.
-
Hi, Finally, I write the functions in javascript. I don't have enough skills to transform mpremote or pyboard.py I still need your help: The version of micropython https://github.com/KitronikLtd/micropython-rp2-webusb is 1.19 And I use a PICO_W, I don't know how difficult it is to recompile firmware to version 1.20. Because I would like to have access to "import bluetooth ". Thank you |
Beta Was this translation helpful? Give feedback.
-
Check out |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have several questions about my project:
I have a RPI-PICO built with the WEBUSB version. port/rp2: Added WebUSB to RP2040. #11301
I've developed a javascript code that connects to the RPI-PICO via USB and gives me access to the REPL. Tested with
https://example.tinyusb.org/webusb-serial/
I've added "pyscript" to the javascript, so I now have a python interpreter in my browser.
I've installed mpremote in my browser's python environment
https://titeppat.pyscriptapps.com/tight-bonus/latest/
I'd like to use mpremote but I'm lost.
I need to replace pyserial with my USB connection ?
I need to be able to use mpremote in the browser interpreter ?
is this possible? Do you have any suggestions ?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions