zakharb / LegoCity

Build LEGO City with ESP32

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Legorama Font #FFCE00

description

🟨 Getting Started

Legocity is micropython library to work with borads like ESP32

Installing tools

Install via pip

python3 -m pip pip install adafruit-ampy
python3 -m pip pip install esptool

export AMPY_PORT=/dev/ttyUSB0 

🟨 Firmware

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

🟨 Configure boot, wlan

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

🟨 Versioning

Using SemVer for versioning. For the versions available, see the tags on this repository.

🟨 Authors

  • Zakhar Bengart - Initial work - Ze

See also the list of contributors who participated in this project.

🟨 License

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

About

Build LEGO City with ESP32

License:GNU General Public License v3.0


Languages

Language:Python 100.0%