]>
us-delaporte.pagekite.me Git - dotfiles.git/blob - invoke/esptool/tasks.py
454cc47e1f7beef6e7fdef8872a692f8b7c9973e
1 from invoke
import task
3 from datetime
import datetime
as dt
6 HOME
= os
.path
.expanduser('~')
7 TODAY
= dt
.now().strftime('%Y.%m.%d')
11 input('Un-plug in the device...')
12 c
.run('lsusb > /tmp/before.txt')
13 input('Plug in the device...')
14 c
.run('lsusb > /tmp/after.txt')
15 result
= c
.run('diff /tmp/before.txt /tmp/after.txt')
20 # Set power to 'off' state
21 # Hold 'Go' while booting
23 # Maybe https://thelastoutpostworkshop.github.io/ESPConnect/ in Chromium?
27 c
.run('ls /dev/ttyUSB*')
28 c
.run('ls /dev/ttyACM*')
33 c
.run('esptool --port /dev/ttyUSB0 chip-id')