diff --git a/custom-build-flags/build_flags_controllino.sh b/custom-build-flags/build_flags_controllino.sh new file mode 100755 index 0000000..a7ec009 --- /dev/null +++ b/custom-build-flags/build_flags_controllino.sh @@ -0,0 +1,31 @@ +#! /bin/bash +# usage: +# first make your own copy of template +# cp build_flags_template.sh my_build_flags.sh +# then edit, change or comment something +# nano my_build_flags.sh +# and source it +# source my_build_flags.sh + export FLAGS="-DMY_CONFIG_SERVER=lighthub.elistech.ru" + export FLAGS="$FLAGS -DWATCH_DOG_TICKER_DISABLE" + #export FLAGS="$FLAGS -DUSE_1W_PIN=12" + #export FLAGS="$FLAGS -DSD_CARD_INSERTED" + export FLAGS="$FLAGS -DSERIAL_BAUD=115200" +# export FLAGS="$FLAGS -DWiz5500" + export FLAGS="$FLAGS -DDISABLE_FREERAM_PRINT" + export FLAGS="$FLAGS -DCUSTOM_FIRMWARE_MAC=C2:3E:1f:03:1B:1E" +# export FLAGS="$FLAGS -DDMX_DISABLE" +# export FLAGS="$FLAGS -DMODBUS_DISABLE" +# export FLAGS="$FLAGS -DOWIRE_DISABLE" + #export FLAGS="$FLAGS -DAVR_DMXOUT_PIN=18" + #export FLAGS="$FLAGS -DCONTROLLINO" +# export FLAGS="$FLAGS -DRESET_PIN=8" + export FLAGS="$FLAGS -DLAN_INIT_DELAY=2000" +# export FLAGS="$FLAGS -DESP_WIFI_AP=vent" +# export FLAGS="$FLAGS -DESP_WIFI_PWD=kk007remont" +# export FLAGS="$FLAGS -DSYSLOG_ENABLE" + export FLAGS="$FLAGS -DDEVICE_NAME=kk007_mega2560" +export FLAGS="$FLAGS -DDHT_COUNTER_DISABLE" +#export FLAGS="$FLAGS -DWITH_DOMOTICZ" +#export FLAGS="$FLAGS -DWITH_PRINTEX_LIB" + export FLAGS="$FLAGS -DPIO_SRC_REV="$(git log --pretty=format:%h_%ad -1 --date=short) \ No newline at end of file diff --git a/platformio.ini b/platformio.ini index a4bf2cf..d6ff1cf 100644 --- a/platformio.ini +++ b/platformio.ini @@ -14,9 +14,9 @@ env_default = ; megaatmega2560-net ; due ; esp8266 -; esp32 + esp32 ; megaatmega2560-5500 - due-5500 +; due-5500 ; controllino ; stm32 @@ -29,8 +29,17 @@ libdeps_dir = /tmp/piolibdeps platform = espressif32 framework = arduino board = pico32 -lib_ldf_mode = chain+ +;lib_ldf_mode = chain+ build_flags = !bash check_custom_build_flags_esp32.sh +lib_ignore = + DmxSimple + DMXSerial + DmxDue + DueFlashStorage + SD + SdFat + httpClient + ;Ethernet library??? lib_deps = https://github.com/anklimov/Arduino-Temperature-Control-Library.git https://github.com/anklimov/DS2482_OneWire @@ -46,6 +55,7 @@ lib_deps = DHT sensor library for ESPx DHT sensor library Streaming + https://github.com/livello/PrintEx#is-select-redecl [env:stm32] platform = ststm32 @@ -77,8 +87,12 @@ lib_deps = platform = atmelsam framework = arduino board = due -lib_ldf_mode = chain+ build_flags = !bash check_custom_build_flags_due.sh +lib_ignore = + DHT sensor library for ESPx + DMXSerial + DmxSimple + httpClient lib_deps = https://github.com/sebnil/DueFlashStorage https://github.com/anklimov/Arduino-Temperature-Control-Library.git @@ -105,8 +119,11 @@ platform = atmelavr board = megaatmega2560 ;upload_port = net:192.168.88.31:23 framework = arduino -;lib_ldf_mode = chain+ build_flags = !bash check_custom_build_flags_mega2560.sh +lib_ignore = + DHT sensor library for ESPx + DmxDue + DueFlashStorage lib_deps = https://github.com/anklimov/Arduino-Temperature-Control-Library.git https://github.com/anklimov/DS2482_OneWire @@ -118,6 +135,7 @@ lib_deps = https://github.com/anklimov/DMXSerial https://github.com/anklimov/Ethernet https://github.com/PaulStoffregen/SPI.git + ;TODO: need to rename SPI lib https://github.com/knolleary/pubsubclient.git https://github.com/anklimov/Artnet.git FastLED @@ -131,8 +149,15 @@ lib_deps = platform = espressif8266 framework = arduino board = nodemcuv2 -lib_ldf_mode = chain+ build_flags = !bash check_custom_build_flags_esp8266.sh +lib_ignore = + DmxSimple + DMXSerial + DmxDue + DueFlashStorage + SD + SdFat + httpClient lib_deps = https://github.com/anklimov/Arduino-Temperature-Control-Library.git https://github.com/anklimov/DS2482_OneWire @@ -157,7 +182,11 @@ board = megaatmega2560 framework = arduino upload_port = net:192.168.88.2:23000 build_flags = !bash check_custom_build_flags_mega2560-net.sh -;lib_ldf_mode = chain+ +lib_ignore = + DHT sensor library for ESPx + DmxDue + DueFlashStorage + ESP-Dmx lib_deps = https://github.com/anklimov/Arduino-Temperature-Control-Library.git https://github.com/anklimov/DS2482_OneWire @@ -182,8 +211,12 @@ lib_deps = platform = atmelsam framework = arduino board = due -;lib_ldf_mode = chain+ build_flags = !bash check_custom_build_flags_due-5500.sh +lib_ignore = + DHT sensor library for ESPx + https://github.com/anklimov/Ethernet + ESP-Dmx + DMXSerial lib_deps = https://github.com/sebnil/DueFlashStorage https://github.com/anklimov/Arduino-Temperature-Control-Library.git @@ -209,8 +242,12 @@ lib_deps = platform = atmelavr board = megaatmega2560 framework = arduino -;lib_ldf_mode = chain+ build_flags = !bash check_custom_build_flags_controllino.sh +lib_ignore = + DHT sensor library for ESPx + DmxDue + DueFlashStorage + ESP-Dmx lib_deps = https://github.com/anklimov/Arduino-Temperature-Control-Library.git https://github.com/anklimov/DS2482_OneWire