changes
This commit is contained in:
5
build.sh
5
build.sh
@ -17,7 +17,8 @@ fi
|
|||||||
|
|
||||||
if [ "$1" == "build" ]; then
|
if [ "$1" == "build" ]; then
|
||||||
pushd $PROJECT_DIR/libraries/esp8266boilerplate/ConfigGenerator && ./configGen.sh && popd
|
pushd $PROJECT_DIR/libraries/esp8266boilerplate/ConfigGenerator && ./configGen.sh && popd
|
||||||
env ARDUINO_SKETCHBOOK_DIR=$PROJECT_DIR arduino-cli compile --fqbn=esp8266:esp8266:nodemcu $PROJECT_DIR/sketch
|
# env ARDUINO_SKETCHBOOK_DIR=$PROJECT_DIR arduino-cli compile --fqbn=esp8266:esp8266:nodemcu $PROJECT_DIR/sketch
|
||||||
|
docker run -it --rm -v $PWD:/mnt registry.hottis.de/dockerized/build-env-arduino:latest env ARDUINO_SKETCHBOOK_DIR=/mnt arduino-cli compile -v --fqbn=esp8266:esp8266:nodemcu /mnt/sketch
|
||||||
cp sketch/sketch.esp8266.esp8266.nodemcu.* .
|
cp sketch/sketch.esp8266.esp8266.nodemcu.* .
|
||||||
elif [ "$1" == "clean" ]; then
|
elif [ "$1" == "clean" ]; then
|
||||||
for D in libraries/includes/configuration.h libraries/includes/configuration.cpp sketch/sketch.esp8266.esp8266.nodemcu.bin sketch/sketch.esp8266.esp8266.nodemcu.elf sketch.esp8266.esp8266.nodemcu.bin sketch.esp8266.esp8266.nodemcu.elf; do
|
for D in libraries/includes/configuration.h libraries/includes/configuration.cpp sketch/sketch.esp8266.esp8266.nodemcu.bin sketch/sketch.esp8266.esp8266.nodemcu.elf sketch.esp8266.esp8266.nodemcu.bin sketch.esp8266.esp8266.nodemcu.elf; do
|
||||||
@ -26,7 +27,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
|
esptool --port /dev/ttyUSB0 write_flash 0 sketch.esp8266.esp8266.nodemcu.bin
|
||||||
else
|
else
|
||||||
echo "Unknown subcommand '$1'"
|
echo "Unknown subcommand '$1'"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
#ifndef DEFINES_H_
|
#ifndef DEFINES_H_
|
||||||
#define DEFINES_H_
|
#define DEFINES_H_
|
||||||
|
|
||||||
// #define DEBUG
|
#define DEBUG
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -29,7 +29,12 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WS2811
|
#ifdef WS2811
|
||||||
#define PIXEL_PIN 1 // NODEMCU numbering
|
#ifdef ESP01
|
||||||
|
#define PIXEL_PIN 2
|
||||||
|
#endif
|
||||||
|
#ifdef NODEMCU
|
||||||
|
#define PIXEL_PIN D1
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef PL9823
|
#ifdef PL9823
|
||||||
|
@ -16,5 +16,5 @@ configItems = [
|
|||||||
{"label":"DebugMode", "key":"debugMode", "type":"I", "default":0}
|
{"label":"DebugMode", "key":"debugMode", "type":"I", "default":0}
|
||||||
]
|
]
|
||||||
|
|
||||||
magic = 3235774471
|
magic = 3235774475
|
||||||
appName = "ESP8266 based RGB-LED-Light"
|
appName = "ESP8266 based RGB-LED-Light"
|
||||||
|
Reference in New Issue
Block a user