Daisy One Plus: WiFi modem setup
================================

This sets up an ESP-01 (ESP8266) so it can be wired straight into the
Daisy: it flashes Zimodem 4.0.2, sets it to 115200 baud, saves that, and
can join your WiFi network too.

You need
- An ESP-01 or ESP-01S, and a USB adapter for it (the CH340 "ESP-01
  programmer" kind; one with a PROG/UART switch is easiest).
- Python 3, with pyserial and esptool:  pip install pyserial esptool

Steps
1. Put the adapter in flash mode (switch to PROG, or hold GPIO0 to GND),
   seat the ESP-01, then plug the adapter in.
2. Run:   python3 flash_modem.py
   or:    python3 flash_modem.py --wifi "Your Network"
   It backs up what the module had (in backups/), writes Zimodem and
   checks it: a few minutes in all.
3. When it asks, switch the adapter out of flash mode and plug it in
   again. It finds Zimodem, sets 115200, saves it and checks.
4. Wire the module into the Daisy (see the build guide).

If there is more than one serial adapter, name it: --port /dev/cu.usbserial-110
(Mac), --port /dev/ttyUSB0 (Linux) or --port COM3 (Windows).
To see what a module runs without changing it: python3 flash_modem.py --check

The backup in backups/ may hold the network name and password the module
had: don't share it.

Zimodem is by Bo Zimmerman, under the Apache License 2.0
(ZIMODEM-LICENSE.txt). zimodem-4.0.2-esp8266.bin is its official ESP8266
build, unchanged.
