Skip to content

kasparsd/esp8266-projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ESP8266/Wemos Projects

This is a repository containing all my Wemos D1 mini projects.

Upload Project

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.

Setup MicroPython

Wemos D1 mini boards have Micropython installed by default. To update the Micropython to the latest version:

  1. Install Python (use Homebrew on macOS) and esptool.py.

    pip install esptool
  2. Download the latest firmware binary .bin for ESP8266 boards from the official Micropython website and save it in the firmware directory.

  3. 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, and esp8266-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.

Credits

Created by Kaspars Dambis.

Releases

No releases published

Packages

No packages published

Languages