Your microcontroller needs to have latest Python firmware installed.
After that you can copy smolOS files.
As main script:
As separate script that will work with your existing files on the device:
Do this once (initialization, ampy installation):
$ python3 -m venv venv $ source venv/bin/activate $ pip install ampy
After that each time do this:
$ source venv/bin/activate $ ampy --port /dev/ttyUSB0 put smolos.py $ ampy --port /dev/ttyUSB0 put main.py $ ampy --port /dev/ttyUSB0 put hello.txt
Description:
In MicroPython REPL write:
>>> from smolos import smolOS >>> os = smolOS() >>> os.boot()