Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4982

MicroPython • Re: rshell 'import main' vs 'machine.soft_reset()`

$
0
0
So my question is, what's the correct way of executing a script via `rshell`
rshell was pretty cool when it came out, but mpremote is the new official way to talk to remote MicroPython boards. It doesn't particularly like running remote scripts, but if you have main.py locally:

Code:

mpremote a0 run main.py
would execute it.

soft_reset is likely to remove the ttyACM0 device, so you're not going to see output after that

Statistics: Posted by scruss — Sun Apr 28, 2024 1:41 am



Viewing all articles
Browse latest Browse all 4982

Trending Articles