diff options
| author | Blaise Thompson <blaise@untzag.com> | 2021-04-05 17:59:25 -0500 |
|---|---|---|
| committer | Blaise Thompson <blaise@untzag.com> | 2021-04-05 17:59:25 -0500 |
| commit | 512896532e5d33797c4db17e53858fe91eeaca68 (patch) | |
| tree | 218ef8f065bd7b7a868c76186d8b746245a48043 /firmware/flash.sh | |
| parent | 024cd56cc903a255779e3a189d08f6e45c6d1097 (diff) | |
bme280
Diffstat (limited to 'firmware/flash.sh')
| -rwxr-xr-x | firmware/flash.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/flash.sh b/firmware/flash.sh index 56287b3..6be74e2 100755 --- a/firmware/flash.sh +++ b/firmware/flash.sh @@ -2,7 +2,7 @@ read -p "bring GPIO0 low, reset device, and press enter" esptool.py --port /dev/ttyUSB0 erase_flash read -p "bring GPIO0 low, reset device, and press enter" -esptool.py -p /dev/ttyUSB0 --baud 450800 --chip esp8266 write_flash 0x00000 microhomie-esp8266-v3.0.2.bin +esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect --verify -fm dio 0x0 ./microhomie-esp8266-v3.0.2.bin read -p "reset device and press enter" # upload files echo "sleeping" @@ -11,7 +11,7 @@ echo "putting files on device" ampy -p /dev/ttyUSB0 put main.py python -m mpy_cross settings.py ampy -p /dev/ttyUSB0 put settings.mpy -python -m mpy_cross bme680.py -ampy -p /dev/ttyUSB0 put bme680.mpy +python -m mpy_cross bme280.py +ampy -p /dev/ttyUSB0 put bme280.mpy read -p "reset device and press enter" echo "done!" |
