mirror of https://github.com/arendst/Tasmota.git
Updated Wemos D1 Mini (markdown)
parent
e246b8fcb3
commit
69c33ee86e
|
@ -4,48 +4,8 @@
|
|||
|
||||
# Flashing Wemos with Tasmota
|
||||
|
||||
## Using PlatformIO
|
||||
|
||||
Follow [these](PlatformIO) steps to flash a Wemos D1 Mini with Tasmota firmware and add the following lines at the end of platformio.ini:
|
||||
|
||||
```
|
||||
[env:wemos-d1-mini]
|
||||
platform = espressif8266
|
||||
framework = arduino
|
||||
board = esp01_1m
|
||||
board_build.flash_mode = dout
|
||||
build_flags = -Wl,-Tesp8266.flash.1m0.ld -DMQTT_MAX_PACKET_SIZE=1000
|
||||
lib_deps = PubSubClient, NeoPixelBus, IRremoteESP8266, ArduinoJSON
|
||||
extra_scripts = pio/strip-floats.py
|
||||
|
||||
; *** Serial Monitor options
|
||||
monitor_speed = 115200
|
||||
|
||||
; *** Upload Serial reset method for Wemos and NodeMCU
|
||||
upload_resetmethod = nodemcu
|
||||
upload_speed = 115200
|
||||
;upload_port = COM6
|
||||
|
||||
; *** Upload file to OTA server using SCP
|
||||
;upload_port = user@host:/path
|
||||
;extra_scripts = pio/strip-floats.py, pio/sftp-uploader.py
|
||||
|
||||
; *** Upload file to OTA server using HTTP
|
||||
;upload_port = domus1:80/api/upload-arduino.php
|
||||
;extra_scripts = pio/strip-floats.py, pio/http-uploader.py
|
||||
```
|
||||
|
||||
From the Menu -> PlatformIO -> Run Other Target... (F7) and choose PIO Upload (wemos-d1-mini), this compiles tasmota and uploads the firmware to the Wemos device connected to usb.
|
||||
|
||||
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/wemos/platformio_run_other_target.jpg" width=625>
|
||||
|
||||
## Using esptool.py
|
||||
|
||||
1. Install [esptool.py](https://github.com/espressif/esptool) (instructions for 2.6+)
|
||||
1. Hold the button for 10s while connecting the D1's USB port to the PC (or RaspberryPi). This will power the D1 and make the serial connection
|
||||
2. Verify the connection by running `./esptool.py --port /dev/ttyUSB0 read_mac`
|
||||
3. Download [sonoff.bin](https://github.com/arendst/Sonoff-Tasmota/releases)
|
||||
3. Erase + Write the new flash by running: `./esptool.py --port /dev/ttyUSB0 write_flash --erase-all -fm dout 0x0 /path/to/downloaded/sonoff.bin`
|
||||
Flashing a Wemos D1 Mini with Tasmota firmware is nearly the same as for every other device.<br>
|
||||
Just connect Wemos D1 mini via USB. No action required to enter Flashmode!
|
||||
|
||||
# Configure Tasmota for Wemos
|
||||
## Generic Module
|
||||
|
|
Loading…
Reference in New Issue