Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kasparsd/esp8266-projects
A monorepo for all my ESP8266 projects
https://github.com/kasparsd/esp8266-projects
esp8266 micropython micropython-esp8266 wemos-d1-mini
Last synced: 7 days ago
JSON representation
A monorepo for all my ESP8266 projects
- Host: GitHub
- URL: https://github.com/kasparsd/esp8266-projects
- Owner: kasparsd
- Created: 2019-02-18T08:10:35.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-10T16:16:50.000Z (almost 6 years ago)
- Last Synced: 2024-10-30T19:46:12.363Z (about 2 months ago)
- Topics: esp8266, micropython, micropython-esp8266, wemos-d1-mini
- Language: Python
- Size: 422 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# ESP8266/Wemos Projects
This is a repository containing all my [Wemos D1 mini](https://wiki.wemos.cc/products:d1:d1_mini) projects.
- [Binary button for Home Assistant](src/button)
## Upload Project
Use the [ampy](https://learn.adafruit.com/micropython-basics-load-files-and-run-code/install-ampy) tool to upload the project files:
```shell
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](https://www.python.org/downloads) (use [Homebrew](https://brew.sh) on macOS) and [esptool.py](https://github.com/espressif/esptool).
```shell
pip install esptool
```2. Download the [latest firmware binary `.bin` for ESP8266 boards](https://micropython.org/download#esp8266) from the official Micropython website and save it in the `firmware` directory.
3. Finally, upload the firmware:
```shell
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](https://kaspars.net).