upload in build script
This commit is contained in:
1
build.sh
1
build.sh
@ -26,6 +26,7 @@ elif [ "$1" == "clean" ]; then
|
|||||||
done
|
done
|
||||||
elif [ "$1" == "upload" ]; then
|
elif [ "$1" == "upload" ]; then
|
||||||
echo "About to upload to device"
|
echo "About to upload to device"
|
||||||
|
esptool.py --port /dev/ttyUSB1 write_flash 0 sketch.esp8266.esp8266.nodemcu.bin
|
||||||
else
|
else
|
||||||
echo "Unknown subcommand '$1'"
|
echo "Unknown subcommand '$1'"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
#ifndef DEFINES_H_
|
#ifndef DEFINES_H_
|
||||||
#define DEFINES_H_
|
#define DEFINES_H_
|
||||||
|
|
||||||
//#define DEBUG
|
#define DEBUG
|
||||||
#define SLEEP
|
//#define SLEEP
|
||||||
|
|
||||||
#define EEPROM_ADDR 0
|
#define EEPROM_ADDR 0
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user