Legocity is micropython library to work with borads like ESP32
Install via pip
python3 -m pip pip install adafruit-ampy
python3 -m pip pip install esptool
export AMPY_PORT=/dev/ttyUSB0
Download firmware
python3 -m esptool --port /dev/ttyUSB0 erase_flash
python3 -m esptool --chip esp32 --port /dev/ttyUSB0 write_flash -z 0x1000 esp32-20220117-v1.18.bin
boot.py file listing
~/.local/bin/ampy put boot.py
wifi.py file listing
import network
wlan = network.WLAN(network.STA_IF)
wlan.isconnected()
wlan.active(True)
wlan.ifconfig()
wlan.scan()
wlan.connect('lego_city', '')
Get list files on board
~/.local/bin/ampy ls
Copy files to board
~/.local/bin/ampy put boot.py wifi.py main.py
Using SemVer for versioning. For the versions available, see the tags on this repository.
- Zakhar Bengart - Initial work - Ze
See also the list of contributors who participated in this project.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation - see the LICENSE file for details