snipplets.dev/code/MicroPython
2024-08-24 15:24:01 +03:00
..
static MicroPython stuff 2024-05-16 20:38:19 +03:00
templates MicroPython stuff 2024-05-16 20:38:19 +03:00
.gitignore MicroPython stuff 2024-05-16 20:38:19 +03:00
blink.py MicroPython stuff 2024-05-16 20:38:19 +03:00
boot.py MicroPython stuff 2024-05-16 20:38:19 +03:00
ftp.py MicroPython stuff 2024-05-16 20:38:19 +03:00
get_mac.py MicroPython stuff 2024-05-16 20:38:19 +03:00
http.py MicroPython stuff 2024-05-16 20:38:19 +03:00
main.py MicroPython stuff 2024-05-16 20:38:19 +03:00
network_ap.py C++ & OpenVINO 2024-08-24 15:24:01 +03:00
network_sta.py MicroPython stuff 2024-05-16 20:38:19 +03:00
pyproject.toml MicroPython stuff 2024-05-16 20:38:19 +03:00
read_write_file.py MicroPython stuff 2024-05-16 20:38:19 +03:00
README.md MicroPython stuff 2024-05-16 20:38:19 +03:00
webrepl_cfg.py MicroPython stuff 2024-05-16 20:38:19 +03:00

# ...
esptool.py --port /dev/ttyACM0 erase_flash
# ...
esptool.py --chip esp32s2 --port /dev/ttyACM0 write_flash -z 0x1000 ~/Downloads/LOLIN_S2_MINI-20240222-v1.22.2.bin
pip3 install rshell   #
pip3 install mpremote #

Выполнение кода

rshell --port /dev/ttyACM0 cat blink.py
import machine
import time

led = machine.Pin(15, machine.Pin.OUT)

led.on()
time.sleep(1)
led.off()
time.sleep(1)
mpremote exec 'exec(open("blink.py").read())'