upload in build script

This commit is contained in:
Wolfgang Hottgenroth 2019-11-20 18:51:38 +01:00
parent 67f181076e
commit 859dcf5f24
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F
2 changed files with 3 additions and 2 deletions

View File

@ -26,6 +26,7 @@ elif [ "$1" == "clean" ]; then
done
elif [ "$1" == "upload" ]; then
echo "About to upload to device"
esptool.py --port /dev/ttyUSB1 write_flash 0 sketch.esp8266.esp8266.nodemcu.bin
else
echo "Unknown subcommand '$1'"
exit 1

View File

@ -8,8 +8,8 @@
#ifndef DEFINES_H_
#define DEFINES_H_
//#define DEBUG
#define SLEEP
#define DEBUG
//#define SLEEP
#define EEPROM_ADDR 0