-def write_flash(c, filepath):
- '''Write flash'''
- c.run(f'esptool --chip {CHIP} --port {PORT} --baud 460800 write_flash -z 0x1000 {filepath}')
+def write_flash(c, filepath=MICROPYTHON):
+ '''Write flash - defaults to MicroPython
+
+ Requires .bin file from micropython.org
+ '''
+ c.run(f'esptool --chip {CHIP} --port {PORT} --baud 460800 write-flash -z 0x1000 {filepath}')
+
+
+