This commit is contained in:
Wolfgang Hottgenroth 2021-12-29 14:39:07 +01:00
parent 8b0e6ac390
commit 44bac6617b
Signed by: wn
GPG Key ID: E49AF3B9EF6DD469
3 changed files with 11 additions and 5 deletions

View File

@ -17,7 +17,8 @@ fi
if [ "$1" == "build" ]; then
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.* .
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
@ -26,7 +27,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
esptool --port /dev/ttyUSB0 write_flash 0 sketch.esp8266.esp8266.nodemcu.bin
else
echo "Unknown subcommand '$1'"
exit 1

View File

@ -8,7 +8,7 @@
#ifndef DEFINES_H_
#define DEFINES_H_
// #define DEBUG
#define DEBUG
@ -29,7 +29,12 @@
#endif
#ifdef WS2811
#define PIXEL_PIN 1 // NODEMCU numbering
#ifdef ESP01
#define PIXEL_PIN 2
#endif
#ifdef NODEMCU
#define PIXEL_PIN D1
#endif
#endif
#ifdef PL9823

View File

@ -16,5 +16,5 @@ configItems = [
{"label":"DebugMode", "key":"debugMode", "type":"I", "default":0}
]
magic = 3235774471
magic = 3235774475
appName = "ESP8266 based RGB-LED-Light"