+from invoke import task
+
+from datetime import datetime as dt
+import os
+
+HOME = os.path.expanduser('~')
+TODAY = dt.now().strftime('%Y.%m.%d')
+
+@task
+def usbdiff(c):
+ input('Un-plug in the device...')
+ c.run('lsusb > /tmp/before.txt')
+ input('Plug in the device...')
+ c.run('lsusb > /tmp/after.txt')
+ result = c.run('diff /tmp/before.txt /tmp/after.txt')
+ print(result.stdout)
+ # breakpoint()
+
+
+# Set power to 'off' state
+# Hold 'Go' while booting
+
+# Maybe https://thelastoutpostworkshop.github.io/ESPConnect/ in Chromium?
+
+@task
+def listusb(c):
+ c.run('ls /dev/ttyUSB*')
+ c.run('ls /dev/ttyACM*')
+
+@task()
+def status(c):
+
+ c.run('esptool --port /dev/ttyUSB0 chip-id')
+