This is a repository containing all my Wemos D1 mini projects.
Use the ampy tool to upload the project files:
ampy --port /dev/tty.YOURUSBDEVICE put path/to/file.py
where /dev/tty.YOURUSBDEVICE
is the absolute path to the serial interface of your Wemos device and path/to/file.py
is the relative path to the file you want to upload.
Wemos D1 mini boards have Micropython installed by default. To update the Micropython to the latest version:
-
Install Python (use Homebrew on macOS) and esptool.py.
pip install esptool
-
Download the latest firmware binary
.bin
for ESP8266 boards from the official Micropython website and save it in thefirmware
directory. -
Finally, upload the firmware:
esptool.py --port /dev/tty.YOURUSBDEVICE --baud 460800 write_flash --flash_size=detect --flash_mode dio 0 firmware/esp8266-VERSION-YOU-DOWNLOADED.bin
where
/dev/tty.YOURUSBDEVICE
is absolute path the serial interface of your Wemos device, andesp8266-VERSION-YOU-DOWNLOADED.bin
is the filename of the firmware binary you downloaded.Press and release the Reset button on the device to actually upload the firmware.
Created by Kaspars Dambis.