Browse Source

Copy boot file as well so we have a backup of it

master
Elis Axelsson 5 years ago
parent
commit
2e26cd942c
  1. 4
      Makefile
  2. 7
      code/boot.py

4
Makefile

@ -0,0 +1,4 @@
copy:
ampy --port /dev/ttyUSB0 put code/boot.py
ampy --port /dev/ttyUSB0 put code/main.py
ampy --port /dev/ttyUSB0 put code/hcsr04.py

7
code/boot.py

@ -0,0 +1,7 @@
# This file is executed on every boot (including wake-boot from deepsleep)
#import esp
#esp.osdebug(None)
import gc
#import webrepl
#webrepl.start()
gc.collect()
Loading…
Cancel
Save