소스 검색

Update install documentation with file copy

DarkMorford 6 년 전
부모
커밋
035c5a604e
1개의 변경된 파일9개의 추가작업 그리고 1개의 파일을 삭제
  1. 9 1
      code/README.md

+ 9 - 1
code/README.md

@@ -29,7 +29,15 @@ The Wemos D1 mini requires a driver for Mac OS X to drive the CH340 serial bridg
   * For Windows machines, this will be something like `COM1`
   * For Linux/macOS, this will be something like `/dev/ttyUSB0`
 2. From this directory (the one containing `Pipfile`), run the following command to clear the ESP8266's flash memory: `pipenv run esptool --port <port> erase_flash`
-
 3. Flash the MicroPython firmware onto the ESP8266. This will vary slightly depending on your board.
   * In most cases, flashing with the default quad-I/O mode will work fine: `pipenv run esptool --port <port> --baud 460800 write_flash --flash_size detect 0 MicroPython/esp8266-20180511-v1.9.4.bin`
   * For some boards, it is necessary to fall back to the dual-I/O mode: `pipenv run esptool --port <port> --baud 460800 write_flash --flash_size detect --flash_mode dio 0 MicroPython/esp8266-20180511-v1.9.4.bin`
+
+### Copying files to the device
+
+1. Copy the file `config.json.tmpl` to `config.json`, and edit the new file with correct wi-fi details and button ID number.
+2. From this directory, use the command `pipenv run ampy -p <port> put <file>` to copy the following files to the device.
+Alternately, set the `AMPY_PORT` environment variable in your terminal and omit the `-p <port>` argument.
+  * boot.py
+  * config.json
+  * main.py