diff --git a/platformio_override2.ini b/platformio_override2.ini deleted file mode 100644 index 7911f2114..000000000 --- a/platformio_override2.ini +++ /dev/null @@ -1,264 +0,0 @@ -; *** Example PlatformIO Project Configuration Override File *** -; *** Changes done here override settings in platformio.ini *** -; -; ***************************************************************** -; *** to activate rename this file to platformio_override.ini *** -; ***************************************************************** -; -; Please visit documentation for the options and examples -; http://docs.platformio.org/en/stable/projectconf.html - -[platformio] -; For best Gitpod performance remove the ";" in the next line. Needed Platformio files are cached and installed at first run -;core_dir = .platformio -extra_configs = platformio_tasmota_cenv.ini - -; *** Build/upload environment -default_envs = -; *** Uncomment the line(s) below to select version(s) - ; tasmota32-minimal - tasmota32-base - ; tasmota32-core2-custom - ; tasmota32-slow - ; tasmota32-znp32 - ; tasmota32-ezsp32 - ; tasmota32-stickc - ; tasmota-cc2530 - ; tasmota-bulb - ; tasmota-ezsp - ; tasmota-berry - ; tasmota-base - ; tasmota32idf4 -; tasmota-debug -; tasmota-minimal -; tasmota-lite -; tasmota-knx -; tasmota-sensors - ; tasmota-display -; tasmota-zbbridge -; tasmota-ir - ; tasmota32 -; tasmota32-webcam -; tasmota32-lite -; tasmota32-knx -; tasmota32-sensors -; tasmota32-display -; tasmota32-ir -; tasmota32-ircustom -; tasmota32solo1 - ; tasmota32c3 -; tasmota32s2 -; tasmota32-odroidgo - ; tasmota32-wroom-32 - ; tasmota32-denky - ; tasmota32-olimexpoe - ; tasmota32-nodemcu - ; tasmota32-m5stack - ; tasmota32-core2 - ; tasmota32-bluetooth - -[common] -platform_packages = ${core.platform_packages} -build_unflags = ${core.build_unflags} -build_flags = ${core.build_flags} - -save-temps=obj -fverbose-asm - ;-mno-target-align - - ; diable all HVAC protocols to reduce size - -DDECODE_ARGO=false -DDECODE_DAIKIN=false -DDECODE_FUJITSU_AC=false -DDECODE_GREE=false -DDECODE_KELVINATOR=false -DDECODE_MITSUBISHI_AC=false -DDECODE_TOSHIBA_AC=false -DDECODE_TROTEC=false -DDECODE_HAIER_AC=false -DDECODE_HITACHI_AC=false -DDECODE_HITACHI_AC1=false -DDECODE_HITACHI_AC2=false -DDECODE_HAIER_AC_YRW02=false - -DDECODE_WHIRLPOOL_AC=false -DDECODE_SAMSUNG_AC=false -DDECODE_ELECTRA_AC=false -DDECODE_PANASONIC_AC=false -DDECODE_MWM=false -DDECODE_DAIKIN2=false -DDECODE_VESTEL_AC=false -DDECODE_TCL112AC=false -DDECODE_MITSUBISHIHEAVY=false -DDECODE_DAIKIN216=false -DDECODE_SHARP_AC=false - -DDECODE_DAIKIN160=false -DDECODE_NEOCLIMA=false -DDECODE_DAIKIN176=false -DDECODE_DAIKIN128=false -DDECODE_AMCOR=false -DDECODE_DAIKIN152=false -DDECODE_MITSUBISHI136=false -DDECODE_MITSUBISHI112=false -DDECODE_HITACHI_AC344=false -DDECODE_HITACHI_AC424=false -DDECODE_HITACHI_AC3=false -DDECODE_TECHNIBEL_AC=false - -DDECODE_TRANSCOLD=false -DDECODE_VOLTAS=false -DECODE_SANYO_AC=false - - -DSEND_ARGO=false -DSEND_DAIKIN=false -DSEND_FUJITSU_AC=false -DSEND_GREE=false -DSEND_KELVINATOR=false -DSEND_MITSUBISHI_AC=false -DSEND_TOSHIBA_AC=false -DSEND_TROTEC=false -DSEND_HAIER_AC=false -DSEND_HITACHI_AC=false -DSEND_HITACHI_AC1=false -DSEND_HITACHI_AC2=false -DSEND_HAIER_AC_YRW02=false - -DSEND_WHIRLPOOL_AC=false -DSEND_SAMSUNG_AC=false -DSEND_ELECTRA_AC=false -DSEND_PANASONIC_AC=false -DSEND_MWM=false -DSEND_DAIKIN2=false -DSEND_VESTEL_AC=false -DSEND_TCL112AC=false -DSEND_MITSUBISHIHEAVY=false -DSEND_DAIKIN216=false -DSEND_SHARP_AC=false - -DSEND_DAIKIN160=false -DSEND_NEOCLIMA=false -DSEND_DAIKIN176=false -DSEND_DAIKIN128=false -DSEND_AMCOR=false -DSEND_DAIKIN152=false -DSEND_MITSUBISHI136=false -DSEND_MITSUBISHI112=false -DSEND_HITACHI_AC344=false -DSEND_HITACHI_AC424=false -DSEND_HITACHI_AC3=false -DSEND_TECHNIBEL_AC=false - -DSEND_TRANSCOLD=false -DSEND_VOLTAS=false -DSEND_SANYO_AC=false -; *** Optional Debug messages -; -DDEBUG_TASMOTA_CORE -; -DDEBUG_TASMOTA_DRIVER -; -DDEBUG_TASMOTA_SENSOR - -; *** CAUTION *** This setting is ONLY possible since 12.01.2021 with development version !!! -; *** Enable only if you exactly know what are you doing -; *** If you try with earlier builds a serial erase and flash is probably needed -; -; Build variant 1MB = 1MB firmware no filesystem (default) -;board_build.ldscript = eagle.flash.1m.ld -; Build variant 2MB = 1MB firmware, +744k OTA, 256k filesystem (Zigbee Bridge, most Shelly devices) -board_build.ldscript = eagle.flash.2m256.ld -; Build variant 4MB = 1MB firmware, +1MB OTA, 2MB filesystem (WEMOS D1 Mini, NodeMCU, Sonoff POW) -;board_build.ldscript = eagle.flash.4m2m.ld -; Build variant 16MB = 1MB firmware, +1MB OTA, 14MB filesystem (WEMOS D1 Mini pro, Ledunia (=32MB)) -;board_build.ldscript = eagle.flash.16m14m.ld - -; set CPU frequency to 80MHz (default) or 160MHz -board_build.f_cpu = 160000000L - -; set Flash chip frequency to 40MHz (default), 20MHz, 26Mhz, 80Mhz -;board_build.f_flash = 20000000L -;board_build.f_flash = 26000000L -;board_build.f_flash = 80000000L - -; *** Upload Serial reset method for Wemos and NodeMCU -upload_port = COM5 - -extra_scripts = ${scripts_defaults.extra_scripts} -; pio-tools/obj-dump.py - -lib_extra_dirs = ${library.lib_extra_dirs} - -[core] -; Activate only (one set) if you want to override the standard core defined in platformio.ini !!! - -;platform_packages = ${tasmota_stage.platform_packages} -;build_unflags = ${tasmota_stage.build_unflags} -;build_flags = ${tasmota_stage.build_flags} - -; platform_packages = ${core_stage.platform_packages} -; build_unflags = ${core_stage.build_unflags} -; build_flags = ${core_stage.build_flags} - - -[tasmota_stage] -; *** Esp8266 core for Arduino version Tasmota stage. Backport for PWM selection -platform_packages = tasmota/framework-arduinoespressif8266 @ ~2.7.4 -build_unflags = ${esp_defaults.build_unflags} -build_flags = ${esp82xx_defaults.build_flags} -; *** Use ONE of the two PWM variants. Tasmota default is Locked PWM - ;-DWAVEFORM_LOCKED_PHASE - -DWAVEFORM_LOCKED_PWM - -save-temps=obj -fverbose-asm - -[core_stage] -; *** Esp8266 core for Arduino version stage -platform_packages = framework-arduinoespressif8266 @ https://github.com/esp8266/Arduino.git -; *** Use Xtensa build chain 10.2. GNU13 from https://github.com/earlephilhower/esp-quick-toolchain - mcspr/toolchain-xtensa @ 5.100200.201223 -build_unflags = ${esp_defaults.build_unflags} - -Wswitch-unreachable -build_flags = ${esp82xx_defaults.build_flags} -; *** Use ONE of the two PWM variants. Tasmota default is Locked PWM - ;-DWAVEFORM_LOCKED_PHASE - -DWAVEFORM_LOCKED_PWM - -Wno-switch-unreachable - -[common32] -platform_packages = ${core32.platform_packages} -build_unflags = ${core32.build_unflags} -build_flags = ${core32.build_flags} -upload_port = COM4 -lib_extra_dirs = ${library.lib_extra_dirs} -; *** ESP32 lib. ALWAYS needed for ESP32 !!! - lib/libesp32 - lib/libesp32_lvgl - -[core32] -; Activate Stage Core32 by removing ";" in next 3 lines, if you want to override the standard core32 -;platform_packages = ${core32_stage.platform_packages} -;build_unflags = ${core32_stage.build_unflags} -;build_flags = ${core32_stage.build_flags} - -[core32_stage] -platform_packages = framework-arduinoespressif32 @ https://github.com/Jason2866/arduino-esp32/releases/download/1.0.5-rc6/esp32-1.0.5-rc6.zip - platformio/tool-mklittlefs @ ~1.203.200522 -build_unflags = ${esp32_defaults.build_unflags} -build_flags = ${esp32_defaults.build_flags} - ;-DESP32_STAGE=true - -[library] -lib_ldf_mode = chain+ -shared_libdeps_dir = lib -; *** Library disable / enable for variant Tasmota(32). Disable reduces compile time -; *** !!! Disabling needed libs will generate compile errors !!! -; *** The resulting firmware will NOT be different if you leave all libs enabled -; *** Disabling by putting a ";" in front of the lib name -; *** If you dont know what it is all about, do not change -lib_extra_dirs = -; *** Only disabled for Tasmota minimal and Tasmota light. For all other variants needed! - lib/lib_basic -; **** I2C devices. Most sensors. Disable only if you dont have ANY I2C device enabled - lib/lib_i2c -; *** Displays. Disable if you dont have any Display activated - lib/lib_display -; *** Bear SSL and base64. Disable if you dont have SSL or TLS activated - lib/lib_ssl -; *** Audio needs a lot of time to compile. Mostly not used functions. Recommended to disable - lib/lib_audio -; *** RF 433 stuff (not RF Bridge). Recommended to disable - lib/lib_rf -; *** Mostly not used functions. Recommended to disable - lib/lib_div - -; *** EXPERIMENTAL Tasmota version for ESP32solo1 (used in some Xiaomi devices) -[env:tasmota32solo1] -extends = env:tasmota32 -platform_packages = framework-arduinoespressif32 @ https://github.com/Jason2866/esp32-arduino-lib-builder/raw/framework-arduinoespressif32/framework-arduinoespressif32-release_v3.3-solo1-bd65eb8d1.tar.gz - platformio/tool-mklittlefs @ ~1.203.200522 - platformio/tool-esptoolpy @ ~1.30000.0 -build_unflags = ${esp32_defaults.build_unflags} -build_flags = ${common32.build_flags} - -; *** EXPERIMENTAL Tasmota version for ESP32-S2 -[env:tasmota32s2] -extends = env:tasmota32 -board = esp32s2 -platform_packages = framework-arduinoespressif32 @ https://github.com/Jason2866/arduino-esp32/releases/download/1.0.5-rc1/esp32-s2-1.0.5-rc1.zip - platformio/tool-mklittlefs @ ~1.203.200522 - platformio/tool-esptoolpy @ ~1.30000.0 -build_unflags = ${esp32_defaults.build_unflags} -build_flags = ${common32.build_flags} -lib_ignore = - cc1101 - NimBLE-Arduino - Micro-RTSP - ESP32 Ethernet - -; *** Debug version used for PlatformIO Home Project Inspection -[env:tasmota-debug] -build_type = debug -build_unflags = ${esp_defaults.build_unflags} -build_flags = ${esp82xx_defaults.build_flags} -; -Wstack-usage=300 - -[env:tasmota32-debug] -extends = env:tasmota32 -build_type = debug -build_unflags = ${esp32_defaults.build_unflags} -build_flags = ${esp32_defaults.build_flags} -; -Wstack-usage=300 - - - -; *** EXPERIMENTAL Tasmota version for ESP32-C3 -[env:tasmota32c3] -extends = env:tasmota32_base -board = esp32c3 -board_build.f_cpu = 80000000L -platform = https://github.com/Jason2866/platform-espressif32.git#feature/arduino-c3 -; platform_packages = framework-arduinoespressif32 @ https://github.com/Jason2866/esp32-arduino-lib-builder/releases/download/259/framework-arduinoespressif32-master-c13afea63.tar.gz -; platform_packages = framework-arduinoespressif32 @ https://github.com/Jason2866/esp32-arduino-lib-builder/releases/download/277/framework-arduinoespressif32-master-1d7068e4b.tar.gz -; platform_packages = framework-arduinoespressif32 @ https://github.com/Jason2866/esp32-arduino-lib-builder/releases/download/289/framework-arduinoespressif32-master-1d7068e4b.tar.gz -platform_packages = framework-arduinoespressif32 @ https://github.com/Jason2866/esp32-arduino-lib-builder/releases/download/291/framework-arduinoespressif32-master-1d7068e4b.tar.gz - tasmota/toolchain-riscv32 - platformio/tool-mklittlefs @ ~1.203.200522 -build_unflags = ${esp32_defaults.build_unflags} -mtarget-align -build_flags = ${esp32_defaults.build_flags} - ;-save-temps=obj -fverbose-asm -upload_port = /dev/cu.usbserial-141140 -lib_extra_dirs = lib/libesp32, lib/lib_basic, lib/lib_i2c, lib/lib_rf, lib/lib_div, lib/lib_ssl, lib/lib_display, lib/libesp32_lvgl -lib_ignore = - NimBLE-Arduino - Micro-RTSP - -; *** EXPERIMENTAL Tasmota version for ESP32 IDF4.4. -[env:tasmota32idf4] -extends = env:tasmota32_base -platform = https://github.com/platformio/platform-espressif32.git#feature/idf-master -; platform_packages = framework-arduinoespressif32 @ https://github.com/Jason2866/esp32-arduino-lib-builder/releases/download/259/framework-arduinoespressif32-master-c13afea63.tar.gz -platform_packages = framework-arduinoespressif32 @ https://github.com/Jason2866/esp32-arduino-lib-builder/releases/download/290/framework-arduinoespressif32-master-1d7068e4b.tar.gz - toolchain-xtensa32 @ ~2.80400.0 - platformio/tool-mklittlefs @ ~1.203.200522 -build_unflags = ${esp32_defaults.build_unflags} -build_flags = ${esp32_defaults.build_flags} - ;-DESP32_STAGE=true diff --git a/platformio_tasmota_cenv2.ini b/platformio_tasmota_cenv2.ini deleted file mode 100644 index 7a541b080..000000000 --- a/platformio_tasmota_cenv2.ini +++ /dev/null @@ -1,255 +0,0 @@ -; *** Example PlatformIO Project Configuration Override File *** -; *** Changes done here override settings in platformio.ini *** -; - -; *** Override standard env tasmota32-wroom-32 *** -[env:tasmota32-minimal] -extends = env:tasmota32 -board_build.partitions = esp32_partition_app1856k_spiffs320k.csv -build_flags = ${common32.build_flags} - -I$PROJECT_DIR/include -includetasmota_include.h -; platform_packages = framework-arduinoespressi -lib_extra_dirs = lib/libesp32 - - - -; *** Override standard env tasmota32-wroom-32 *** -[env:tasmota32-base] -extends = env:tasmota32 -platform_packages = framework-arduinoespressif32 @ https://github.com/tasmota/arduino-esp32/releases/download/1.0.7/tasmota-arduinoespressif32-release_v3.3.5.tar.gz - platformio/tool-esptoolpy @ ~1.30100 - platformio/tool-mklittlefs @ ~1.203.200522 -; platform_packages = framework-arduinoespressif32 @ https://github.com/Jason2866/esp32-arduino-lib-builder/raw/framework-arduinoespressif32/framework-arduinoespressif32-release_v3.3-6aaddf972.tar.gz -; platformio/tool-esptoolpy @ ~1.30100 -; platformio/tool-mklittlefs @ ~1.203.200522 - -board_build.f_cpu = 240000000L -; board_build.f_cpu = 80000000L -; board_build.flash_mode = qio -; board_build.f_flash = 80000000L -upload_speed = 115200 -; monitor_speed = 115200 -; upload_port = /dev/cu.SLAB_USBtoUART -upload_port = /dev/cu.usbserial-141140 -;board_build.partitions = esp32_partition_app1572k_spiffs983k.csv -board_build.partitions = esp32_partition_app1856k_spiffs320k.csv -build_unflags = ${core.build_unflags} - -fexceptions -build_flags = ${common32.build_flags} - -fno-exceptions - ;-DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -lc-psram-workaround -lm-psram-workaround -DCONFIG_SPIRAM_IGNORE_NOTFOUND=1 - ; -save-temps=obj -fverbose-asm - ; -DNDEBUG ; -DCOMPILER_OPTIMIZATION_ASSERTIONS_DISABLE - ; -DCONFIG_ARDUINO_LOOP_STACK_SIZE=16384 - ; -Wl,-Llibesp - -; lib_extra_dirs = libesp, lib/libesp32, lib/lib_basic, lib/lib_i2c, lib/lib_rf, lib/lib_div, lib/lib_ssl, lib/lib_display -; lib_extra_dirs = lib/libesp32, lib/lib_basic, lib/lib_i2c, lib/lib_rf, lib/lib_div, lib/lib_ssl, lib/lib_display -lib_ignore = - NimBLE-Arduino - ESP8266SAM - ESP8266Audio - -[env:tasmota32-znp32] -extends = env:tasmota32 -;board_build.f_cpu = 240000000L -board_build.partitions = esp32_partition_app1856k_spiffs320k.csv -; board_build.partitions = esp32_partition_app1984k_spiffs64k.csv -build_flags = ${common32.build_flags} - -DNDEBUG - -D_HADINGER_ZNP32 -lib_ignore = - NimBLE-Arduino - ESP8266Audio - ESP8266SAM - -[env:tasmota32-ezsp32] -extends = env:tasmota32 -;board_build.f_cpu = 240000000L -board_build.partitions = esp32_partition_app1856k_spiffs320k.csv -; board_build.partitions = esp32_partition_app1984k_spiffs64k.csv -build_flags = ${common32.build_flags} - -DNDEBUG - -D_HADINGER_EZSP32 -lib_ignore = - NimBLE-Arduino - ESP8266Audio - ESP8266SAM - -[env:tasmota32-slow] -extends = env:tasmota32-base -board_build.f_cpu = 160000000L - - -[env:tasmota-berry] -extends = env:tasmota -board_build.f_cpu = 160000000L -; Build variant 2MB = 1MB firmware, +744k OTA, 256k filesystem (Zigbee Bridge, most Shelly devices) -board_build.ldscript = eagle.flash.2m256.ld -build_flags = ${core.build_flags} - ; -save-temps=obj -fverbose-asm - -D_HADINGER_DEV -upload_port = /dev/cu.usbserial-141110 -lib_extra_dirs = lib/libesp32, lib/lib_basic, lib/lib_div, lib/lib_ssl -; build_flags = ${common32.build_flags} -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -DFIRMWARE_ODROID_GO -; lib_extra_dirs = lib/libesp32, lib/lib_basic, lib/lib_i2c, lib/lib_rf, lib/lib_div, lib/lib_ssl, lib/lib_display - - - -[env:tasmota-base] -extends = env:tasmota -board_build.f_cpu = 160000000L -; Build variant 2MB = 1MB firmware, +744k OTA, 256k filesystem (Zigbee Bridge, most Shelly devices) -board_build.ldscript = eagle.flash.2m256.ld -; board_build.ldscript = eagle.flash.1m64.ld -build_flags = ${core.build_flags} - ; -save-temps=obj -fverbose-asm - ; -D_HADINGER_ZNP - -DPIO_FRAMEWORK_MMU__16KB_CACHE__48KB_IRAM_SHARED_2NDHEAP -upload_port = /dev/cu.usbserial-141110 -; build_flags = ${common32.build_flags} -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -DFIRMWARE_ODROID_GO -; lib_extra_dirs = lib/libesp32, lib/lib_basic, lib/lib_i2c, lib/lib_rf, lib/lib_div, lib/lib_ssl, lib/lib_display -lib_ignore = - ESP8266Audio - ESP8266SAM - lib_mail - -[env:tasmota-cc2530] -extends = env:tasmota -board_build.f_cpu = 160000000L -; Build variant 2MB = 1MB firmware, +744k OTA, 256k filesystem (Zigbee Bridge, most Shelly devices) -board_build.ldscript = eagle.flash.2m256.ld -build_flags = ${core.build_flags} - ; -save-temps=obj -fverbose-asm - -D_HADINGER_ZNP -upload_port = /dev/cu.usbserial-141110 -; build_flags = ${common32.build_flags} -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -DFIRMWARE_ODROID_GO -; lib_extra_dirs = lib/libesp32, lib/lib_basic, lib/lib_i2c, lib/lib_rf, lib/lib_div, lib/lib_ssl, lib/lib_display -lib_ignore = - ESP8266Audio - ESP8266SAM - IRremoteESP8266 - lib_mail - NeoPixelBus-2.6.1.4 - -[env:tasmota-ezsp] -extends = env:tasmota -board_build.f_cpu = 160000000L -; Build variant 2MB = 1MB firmware, +744k OTA, 256k filesystem (Zigbee Bridge, most Shelly devices) -board_build.ldscript = eagle.flash.2m256.ld -build_flags = ${core.build_flags} - -save-temps=obj -fverbose-asm - -D_HADINGER_EZSP -; upload_port = /dev/cu.usbserial-141110 -; build_flags = ${common32.build_flags} -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -DFIRMWARE_ODROID_GO -; lib_extra_dirs = lib/libesp32, lib/lib_basic, lib/lib_i2c, lib/lib_rf, lib/lib_div, lib/lib_ssl, lib/lib_display -lib_ignore = - ESP8266Audio - ESP8266SAM - IRremoteESP8266 - lib_mail - NeoPixelBus-2.6.1.4 - -[env:tasmota-bulb] -extends = env:tasmota -board_build.f_cpu = 160000000L -; Build variant 2MB = 1MB firmware, +744k OTA, 256k filesystem (Zigbee Bridge, most Shelly devices) -; board_build.ldscript = eagle.flash.2m256.ld -build_flags = ${core.build_flags} - -save-temps=obj -fverbose-asm - -D_HADINGER_BULB -upload_port = /dev/cu.usbserial-141110 -; build_flags = ${common32.build_flags} -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -DFIRMWARE_ODROID_GO -; lib_extra_dirs = lib/libesp32, lib/lib_basic, lib/lib_i2c, lib/lib_rf, lib/lib_div, lib/lib_ssl, lib/lib_display - - -; *** Override standard env tasmota32-wroom-32 *** -[env:tasmota32-wroom-32] -extends = env:tasmota32 -board_build.f_cpu = 240000000L -; board_build.flash_mode = qio -; board_build.f_flash = 80000000L -upload_speed = 115200 -; monitor_speed = 115200 -; upload_port = COM3 -board_build.partitions = esp32_partition_app1572k_spiffs983k.csv -; build_flags = ${common32.build_flags} -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -DFIRMWARE_ODROID_GO -; lib_extra_dirs = lib/libesp32, lib/lib_basic, lib/lib_i2c, lib/lib_rf, lib/lib_div, lib/lib_ssl, lib/lib_display - - -[env:tasmota32-denky] -extends = env:tasmota32-wroom-32 -upload_port = /dev/cu.usbserial-DN0489N1 -build_flags = ${common32.build_flags} - -D_HADINGER_DENKY - -[env:tasmota32-olimexpoe] -extends = env:tasmota32-wroom-32 -upload_port = /dev/cu.usbserial-141110 -build_flags = ${common32.build_flags} - -D_HADINGER_DENKY - -[env:tasmota32-nodemcu] -extends = env:tasmota32-wroom-32 -upload_port = /dev/cu.SLAB_USBtoUART -build_flags = ${common32.build_flags} - -D_HADINGER_DENKY - - -[env:tasmota32-m5stack] -extends = env:tasmota32-wroom-32 -upload_port = /dev/cu.SLAB_USBtoUART -build_flags = ${common32.build_flags} - -D_HADINGER_M5STACK - - -; // #define _HADINGER_DEV // development testing -; #define _HADINGER_DENKY // Denky device -; // #define _HADINGER_IR_DEV // development testing -; // #define _HADINGER_BULB // configuration for AWS IoT configured switches and bulbs, Hue emulation, should be 160 MHz -; // #define _HADINGER_IR // configuration for AWS IoT IR Blaster -; // #define _HADINGER_ZNP // configuration for CC2530 ZNP coordinator + AWS IoT + Ping -; // #define _HADINGER_EZSP // configuration for EZSP coordinator + AWS IoT + I2C + TCP Bridge - -[env:tasmota32-stickc] -extends = env:tasmota32-base -board_build.f_cpu = 240000000L -board_build.flash_mode = qio -board_build.f_flash = 80000000L -upload_port = /dev/cu.usbserial-21524AEB83 -upload_speed = 115200 -build_flags = ${common32.build_flags} -DFIRMWARE_M5STACK_CORE2 -lib_extra_dirs = lib/libesp32, lib/lib_basic, lib/lib_i2c, lib/lib_rf, lib/lib_div, lib/lib_ssl, lib/lib_display, lib/lib_audio, lib/libesp32_lvgl - -[env:tasmota32-core2-custom] -extends = env:tasmota32_base -board = odroid_esp32 -board_build.f_cpu = 240000000L -board_build.flash_mode = qio -board_build.f_flash = 80000000L -upload_speed = 2000000 -board_build.partitions = esp32_partition_app2944k_spiffs10M.csv -build_flags = ${common32.build_flags} -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -lc-psram-workaround -lm-psram-workaround - ; -DFIRMWARE_M5STACK_CORE2 - -D_HADINGER_M5STACK_CORE2 -lib_extra_dirs = lib/libesp32, lib/lib_basic, lib/lib_i2c, lib/lib_rf, lib/lib_div, lib/lib_ssl, lib/lib_display, lib/lib_audio, lib/libesp32_lvgl - -[core] -; Activate (by removing the ";" in the next lines) if you want to override the standard core defined in platformio.ini !!! -platform = ${core_stage.platform} -platform_packages = ${core_stage.platform_packages} -build_unflags = ${core_stage.build_unflags} -build_flags = ${core_stage.build_flags} - -[core_stage] -; *** Esp8266 core for Arduino version stage -platform = espressif8266 @ 3.0.0 -platform_packages = -; *** Use Xtensa build chain 10.2. GNU23 from https://github.com/earlephilhower/esp-quick-toolchain - tasmota/toolchain-xtensa @ 5.100200.210303 -build_unflags = ${esp_defaults.build_unflags} - -Wswitch-unreachable -build_flags = ${esp82xx_defaults.build_flags} -; *** 16k extra heap https://github.com/esp8266/Arduino/pull/7060 - -D PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM48_SECHEAP_SHARED - -Wno-switch-unreachable \ No newline at end of file diff --git a/tasmota/user_config_override2.h b/tasmota/user_config_override2.h deleted file mode 100644 index e1c1fbfc8..000000000 --- a/tasmota/user_config_override2.h +++ /dev/null @@ -1,893 +0,0 @@ -/* - user_config_override.h - user configuration overrides my_user_config.h for Tasmota - - Copyright (C) 2020 Theo Arends - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . -*/ - -#ifndef _USER_CONFIG_OVERRIDE_H_ -#define _USER_CONFIG_OVERRIDE_H_ - -/*****************************************************************************************************\ - * USAGE: - * To modify the stock configuration without changing the my_user_config.h file: - * (1) copy this file to "user_config_override.h" (It will be ignored by Git) - * (2) define your own settings below - * (3) for platformio: - * All done. - * for Arduino IDE: - * enable define USE_CONFIG_OVERRIDE in my_user_config.h - ****************************************************************************************************** - * ATTENTION: - * - Changes to SECTION1 PARAMETER defines will only override flash settings if you change define CFG_HOLDER. - * - Expect compiler warnings when no ifdef/undef/endif sequence is used. - * - You still need to update my_user_config.h for major define USE_MQTT_TLS. - * - All parameters can be persistent changed online using commands via MQTT, WebConsole or Serial. -\*****************************************************************************************************/ - -/* -Examples : - -// -- Master parameter control -------------------- -#undef CFG_HOLDER -#define CFG_HOLDER 4617 // [Reset 1] Change this value to load SECTION1 configuration parameters to flash - -// -- Setup your own Wifi settings --------------- -#undef STA_SSID1 -#define STA_SSID1 "YourSSID" // [Ssid1] Wifi SSID - -#undef STA_PASS1 -#define STA_PASS1 "YourWifiPassword" // [Password1] Wifi password - -// -- Setup your own MQTT settings --------------- -#undef MQTT_HOST -#define MQTT_HOST "your-mqtt-server.com" // [MqttHost] - -#undef MQTT_PORT -#define MQTT_PORT 1883 // [MqttPort] MQTT port (10123 on CloudMQTT) - -#undef MQTT_USER -#define MQTT_USER "YourMqttUser" // [MqttUser] Optional user - -#undef MQTT_PASS -#define MQTT_PASS "YourMqttPass" // [MqttPassword] Optional password - -// You might even pass some parameters from the command line ---------------------------- -// Ie: export PLATFORMIO_BUILD_FLAGS='-DUSE_CONFIG_OVERRIDE -DMY_IP="192.168.1.99" -DMY_GW="192.168.1.1" -DMY_DNS="192.168.1.1"' - -#ifdef MY_IP -#undef WIFI_IP_ADDRESS -#define WIFI_IP_ADDRESS MY_IP // Set to 0.0.0.0 for using DHCP or enter a static IP address -#endif - -#ifdef MY_GW -#undef WIFI_GATEWAY -#define WIFI_GATEWAY MY_GW // if not using DHCP set Gateway IP address -#endif - -#ifdef MY_DNS -#undef WIFI_DNS -#define WIFI_DNS MY_DNS // If not using DHCP set DNS IP address (might be equal to WIFI_GATEWAY) -#endif - -*/ - -#define UPGRADE_V8_MIN // drop support for pre-v8.0 - -/*********************************************************************************************\ - * Undef all modules first, then enable one by one if needed -\*********************************************************************************************/ - -#undef USE_ARDUINO_OTA // Disable support for Arduino OTA -#undef USE_DOMOTICZ // Disable Domoticz -#undef USE_HOME_ASSISTANT // Disable Home Assistant -#undef USE_MQTT_TLS // Disable TLS support won't work as the MQTTHost is not set -#undef USE_KNX // Disable KNX IP Protocol Support -#undef USE_WEBSERVER // Disable Webserver -#undef USE_WEBSEND_RESPONSE // Disable command WebSend response message (+1k code) -#undef USE_EMULATION // Disable Wemo or Hue emulation -#undef USE_EMULATION_HUE // Disable Hue Bridge emulation for Alexa (+14k code, +2k mem common) -#undef USE_EMULATION_WEMO // Disable Belkin WeMo emulation for Alexa (+6k code, +2k mem common) -#undef USE_CUSTOM // Disable Custom features -#undef USE_DISCOVERY // Disable Discovery services for both MQTT and web server -#undef USE_TIMERS // Disable support for up to 16 timers -#undef USE_TIMERS_WEB // Disable support for timer webpage -#undef USE_SUNRISE // Disable support for Sunrise and sunset tools -#undef USE_RULES // Disable support for rules -#undef USE_SCRIPT // Add support for script (+17k code) - -// -- Optional modules ------------------------- -#undef ROTARY_V1 // Disable support for MI Desk Lamp -#undef USE_SONOFF_RF // Disable support for Sonoff Rf Bridge (+3k2 code) - #undef USE_RF_FLASH // Disable support for flashing the EFM8BB1 chip on the Sonoff RF Bridge. C2CK must be connected to GPIO4, C2D to GPIO5 on the PCB -#undef USE_SONOFF_SC // Disable support for Sonoff Sc (+1k1 code) -#undef USE_TUYA_MCU // Disable support for Tuya Serial MCU -#undef USE_ARMTRONIX_DIMMERS // Disable support for Armtronix Dimmers (+1k4 code) -#undef USE_PS_16_DZ // Disable support for PS-16-DZ Dimmer and Sonoff L1 (+2k code) -#undef USE_SONOFF_IFAN // Disable support for Sonoff iFan02 and iFan03 (+2k code) -#undef USE_BUZZER // Disable support for a buzzer (+0k6 code) -#undef USE_ARILUX_RF // Disable support for Arilux RF remote controller -#undef USE_SHUTTER // Disable Shutter support for up to 4 shutter with different motortypes (+6k code) -#undef USE_DEEPSLEEP // Disable support for deepsleep (+1k code) -#undef USE_EXS_DIMMER // Disable support for EX-Store WiFi Dimmer -#undef USE_HOTPLUG // Disable support for HotPlug -#undef USE_DEVICE_GROUPS // Disable support for device groups (+3k5 code) -#undef USE_PWM_DIMMER // Disable support for MJ-SD01/acenx/NTONPOWER PWM dimmers (+4k5 code) -#undef USE_PWM_DIMMER_REMOTE // Disbale support for remote switches to PWM Dimmer -#undef USE_KEELOQ // Disable support for Jarolift rollers by Keeloq algorithm (+4k5 code) -#undef USE_SONOFF_D1 // Disable support for Sonoff D1 Dimmer (+0k7 code) -#undef USE_DGR_LIGHT_SEQUENCE // Disable support for device group light sequencing (requires USE_DEVICE_GROUPS) (+0k2 code) - -// -- Optional light modules ---------------------- -#undef USE_LIGHT // Enable Dimmer/Light support -#undef USE_WS2812 // Disable WS2812 Led string using library NeoPixelBus (+5k code, +1k mem, 232 iram) - Disable by // -#undef USE_MY92X1 // Disable support for MY92X1 RGBCW led controller as used in Sonoff B1, Ailight and Lohas -#undef USE_SM16716 // Disable support for SM16716 RGB LED controller (+0k7 code) -#undef USE_SM2135 // Disable support for SM2135 RGBCW led control as used in Action LSC (+0k6 code) -#undef USE_SONOFF_L1 // Disable support for Sonoff L1 led control -#undef USE_ELECTRIQ_MOODL // Disable support for ElectriQ iQ-wifiMOODL RGBW LED controller -#undef USE_LIGHT_PALETTE // Disable support for color palette (+0k9 code) -#undef USE_SHELLY_DIMMER // Disable support for Shelly Dimmer (+3k code) - -#undef USE_COUNTER // Disable counters -#undef USE_ADC_VCC // Display Vcc in Power status. Disable for use as Analog input on selected devices -#undef USE_DS18x20 // Disable DS18x20 sensor -#undef USE_I2C // Enable I2C, zbbridge uses i2c EEprom -#undef USE_SPI // Disable all SPI devices -#undef USE_DISPLAY // Disable Display support -#undef USE_MHZ19 // Disable support for MH-Z19 CO2 sensor -#undef USE_SENSEAIR // Disable support for SenseAir K30, K70 and S8 CO2 sensor -#undef USE_PMS5003 // Disable support for PMS5003 and PMS7003 particle concentration sensor -#undef USE_NOVA_SDS // Disable support for SDS011 and SDS021 particle concentration sensor -#undef USE_HPMA // Disable support for Honeywell HPMA115S0 particle concentration sensor -#undef USE_SERIAL_BRIDGE // Disable support for software Serial Bridge -#undef USE_MP3_PLAYER // Disable DFPlayer Mini MP3 Player RB-DFR-562 commands: play, volume and stop -#undef USE_AZ7798 // Disable support for AZ-Instrument 7798 CO2 datalogger -#undef USE_PN532_HSU // Disable support for PN532 using HSU (Serial) interface (+1k8 code, 140 bytes mem) -#undef USE_ZIGBEE // Disable serial communication with Zigbee CC2530 flashed with ZNP -#undef USE_RDM6300 // Disable support for RDM6300 125kHz RFID Reader (+0k8) -#undef USE_IBEACON // Disable support for bluetooth LE passive scan of ibeacon devices (uses HM17 module) -#undef USE_GPS // Disable support for GPS and NTP Server for becoming Stratus 1 Time Source (+ 3.1kb flash, +132 bytes RAM) -#undef USE_HM10 // (ESP8266 only) Disable support for HM-10 as a BLE-bridge for the LYWSD03 (+5k1 code) -#undef USE_MI_ESP32 // (ESP32 only) Disable support for ESP32 as a BLE-bridge (+9k2 mem, +292k flash) -#undef USE_HRXL // Disable support for MaxBotix HRXL-MaxSonar ultrasonic range finders (+0k7) -#undef USE_TASMOTA_CLIENT // Disable support for Arduino Uno/Pro Mini via serial interface including flashing (+2k3 code, 44 mem) -#undef USE_OPENTHERM // Disable support for OpenTherm (+15k code) - -#undef USE_ENERGY_SENSOR // Disable energy sensors -#undef USE_ADE7953 // Disable ADE7953 Energy monitor as used on Shelly 2.5 (I2C address 0x38) (+1k5) -#undef USE_PZEM004T // Disable PZEM004T energy sensor -#undef USE_PZEM_AC // Disable PZEM014,016 Energy monitor -#undef USE_PZEM_DC // Disable PZEM003,017 Energy monitor -#undef USE_MCP39F501 // Disable MCP39F501 Energy monitor as used in Shelly 2 -#undef USE_SDM120 // Disable support for Eastron SDM120-Modbus energy meter -#undef USE_SDM630 // Disable support for Eastron SDM630-Modbus energy monitor (+0k6 code) -#undef USE_DDS2382 // Disable support for Hiking DDS2382 Modbus energy monitor (+0k6 code) -#undef USE_DDSU666 // Disable support for Chint DDSU666 Modbus energy monitor (+0k6 code) -#undef USE_SOLAX_X1 // Disable support for Solax X1 series Modbus log info (+3k1 code) -#undef USE_LE01MR // Disable support for F&F LE-01MR Modbus energy meter (+2k code) -#undef USE_TELEINFO // Disable support for French Energy Provider metering telemetry - - -#undef USE_DHT // Disable support for DHT11, AM2301 (DHT21, DHT22, AM2302, AM2321) and SI7021 Temperature and Humidity sensor -#undef USE_MAX31855 // Disable MAX31855 K-Type thermocouple sensor using softSPI -#undef USE_MAX31865 // Disable support for MAX31865 RTD sensors using softSPI -#undef USE_IR_REMOTE // Disable IR driver -#undef USE_IR_RECEIVE - -#undef USE_SR04 // Disable support for for HC-SR04 ultrasonic devices -#undef USE_TM1638 // Disable support for TM1638 switches copying Switch1 .. Switch8 -#undef USE_HX711 // Disable support for HX711 load cell -#undef USE_TX20_WIND_SENSOR // Disable support for La Crosse TX20 anemometer -#undef USE_TX23_WIND_SENSOR // Disable support for La Crosse TX23 anemometer -#undef USE_WINDMETER // Disable support for analog anemometer (+2k2 code) -#undef USE_RC_SWITCH // Disable support for RF transceiver using library RcSwitch -#undef USE_RF_SENSOR // Disable support for RF sensor receiver (434MHz or 868MHz) (+0k8 code) -#undef USE_HRE // Disable support for Badger HR-E Water Meter (+1k4 code) -#undef USE_A4988_STEPPER // Disable support for A4988_Stepper -#undef USE_THERMOSTAT // Disable support for Thermostat -#undef USE_DYP // Disable support for DYP ME-007 ultrasonic distance sensor, serial port version (+0k5 code) -#undef DEBUG_THEO // Disable debug code -#undef USE_DEBUG_DRIVER // Disable debug code -#undef USE_ENHANCED_GUI_WIFI_SCAN - -/*********************************************************************************************\ - * Enable the standard modules common to all configurations -\*********************************************************************************************/ - -// -- Standard options ------------------------ -#define USE_WEBSERVER // Webserver -#define USE_WEBSEND_RESPONSE // command WebSend response message (+1k code) -#define USE_EMULATION // Wemo or Hue emulation -#define USE_EMULATION_HUE // Hue Bridge emulation for Alexa (+14k code, +2k mem common) -#define USE_EMULATION_WEMO // Belkin WeMo emulation for Alexa (+6k code, +2k mem common) -#define USE_TIMERS // support for up to 16 timers -#define USE_TIMERS_WEB // support for timer webpage -#define USE_SUNRISE // support for Sunrise and sunset tools -#define USE_RULES // support for rules - -#define USE_ADC_VCC // Display Vcc in Power status. Disable for use as Analog input on selected devices - -#define USE_LIGHT // Enable Dimmer/Light support - - -// -- MQTT - TLS - AWS IoT ------------------------ -// Using TLS starting with version v6.5.0.16 compilation will only work using Core 2.4.2 and 2.5.2. No longer supported: 2.3.0 -// #define USE_MQTT_TLS // Use TLS for MQTT connection (+34.5k code, +7.0k mem and +4.8k additional during connection handshake) - #define USE_MQTT_TLS_CA_CERT // Force full CA validation instead of fingerprints, slower, but simpler to use (+2.2k code, +1.9k mem during connection handshake) - #define USE_MQTT_TLS_FORCE_EC_CIPHER // Force Elliptic Curve cipher (higher security) required by some servers (automatically enabled with USE_MQTT_AWS_IOT) (+11.4k code, +0.4k mem) - #define USE_MQTT_AWS_IOT_LIGHT // Enable MQTT for AWS IoT in light mode, with user/password instead of private certificate - // #define USE_MQTT_AWS_IOT // Enable MQTT for AWS IoT - requires a private key (+11.9k code, +0.4k mem) - // Note: you need to generate a private key + certificate per device and update 'sonoff/sonoff_aws_iot.cpp' - // Full documentation here: https://github.com/arendst/Sonoff-Tasmota/wiki/AWS-IoT - -// -- Rules or Script ---------------------------- -// Select none or only one of the below defines -// #undef USE_RULES // Add support for rules (+8k code) -// #define USE_SCRIPT // Add support for script (+17k code) -// #define USE_SCRIPT_COMPRESSION - //#define USE_SCRIPT_FATFS 4 // Script: Add FAT FileSystem Support -//#define USE_RF_SENSOR // Add support for RF sensor receiver (434MHz or 868MHz) (+0k8 code) - -// #define USE_EXPRESSION // Add support for expression evaluation in rules (+3k2 code, +64 bytes mem) -// #define SUPPORT_IF_STATEMENT // Add support for IF statement in rules (+4k2 code, -332 bytes mem) -// #define SUPPORT_MQTT_EVENT // Support trigger event with MQTT subscriptions (+3k5 code) - - -// -- OLED Display ---------------------------- -// #define USE_I2C - // #define USE_DISPLAY // Add I2C Display Support (+2k code) - #define USE_DISPLAY_MODES1TO5 // Enable display mode 1 to 5 in addition to mode 0 - #undef USE_DISPLAY_LCD // [DisplayModel 1] Enable Lcd display (I2C addresses 0x27 and 0x3F) (+6k code) - #define USE_DISPLAY_SSD1306 // [DisplayModel 2] Enable SSD1306 Oled 128x64 display (I2C addresses 0x3C and 0x3D) (+16k code) - #undef USE_DISPLAY_MATRIX // [DisplayModel 3] Enable 8x8 Matrix display (I2C adresseses see below) (+11k code) -//#define SHOW_SPLASH //Enable initialization splash message on the display -//#define USE_AWATCH //Enables analog watch support -// #define NUM_GRAPHS -// #define USE_GRAPH //Enable line charts. Also requires NUM_GRAPHS - -// -- PN 532 NFC ---------------------------- -//#define USE_PN532_HSU // Add support for PN532 using HSU (Serial) interface (+1k8 code, 140 bytes mem) - #define USE_PN532_CAUSE_EVENTS // Cause event execution for PN532_UID= and PN532_DATA=[if defined] (+ 30 bytes code) - #define USE_PN532_DATA_FUNCTION // Add sensor40 command support for erase, setting data block content (+1k7 code, 388 bytes mem) - #define USE_PN532_DATA_RAW // Allow DATA block to be used by non-alpha-numberic data (+ 80 bytes code, 48 bytes ram) - -// -- Misc ---------------------------- -//#define USE_DEBUG_DRIVER -#undef PWM_MAX_SLEEP -#define PWM_MAX_SLEEP 25 // for LED salon - - -/*********************************************************************************************\ - * Switch amongs options -\*********************************************************************************************/ -#undef _HADINGER_DONE - -//// -// -// Selectors -// -//// -////////////////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////////////////// -#if !defined(_HADINGER_MINIMAL) && !defined(_HADINGER_DEV) && !defined(_HADINGER_DENKY) && !defined(_HADINGER_M5STACK) && !defined(_HADINGER_M5STACK_CORE2) && !defined(_HADINGER_IR_DEV) && !defined(_HADINGER_BULB) && !defined(_HADINGER_IR) && !defined(_HADINGER_ZNP) && !defined(_HADINGER_ZNP32) && !defined(_HADINGER_EZSP32) && !defined(_HADINGER_EZSP) && !defined(_HADINGER_M5STACK_BLACK) && !defined(_HADINGER_M5STICK) && !defined(_HADINGER_ESP32C3) -// #define _HADINGER_MINIMAL // minimal version -// #define _HADINGER_DEV // development testing -// #define _HADINGER_DENKY // Denky device -// #define _HADINGER_ESP32C3 -// #define _HADINGER_32_BERRY // Berry dev -#define _HADINGER_M5STACK_BLACK // M5Stack device -// #define _HADINGER_M5STICKC // M5Stack device -// #define _HADINGER_M5STACK_CORE2 // M5Stack device -// #define _HADINGER_M5STACK // M5Stack device -// #define _HADINGER_IR_DEV // development testing -// #define _HADINGER_BULB // configuration for AWS IoT configured switches and bulbs, Hue emulation, should be 160 MHz -// #define _HADINGER_IR // configuration for AWS IoT IR Blaster -// #define _HADINGER_ZNP // configuration for CC2530 ZNP coordinator + AWS IoT + Ping -// #define _HADINGER_ZNP32 // configuration for CC2652p ZNP coordinator + AWS IoT + ETH + Berry -// #define _HADINGER_EZSP // configuration for EZSP coordinator + AWS IoT + I2C + TCP Bridge -// #define _HADINGER_EZSP32 // configuration for EFR32 ZNP coordinator + AWS IoT + ETH + Berry -#endif -////////////////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////////////////// - - -////////////////////////////////////////////////////////////////////////////////////////////// -#ifdef _HADINGER_MINIMAL - -// #define USE_MQTT_TLS // Use TLS for MQTT connection (+34.5k code, +7.0k mem and +4.8k additional during connection handshake) -// #define USE_IR_REMOTE - -// #define USE_ENERGY_SENSOR -// #define USE_HLW8012 -// #define USE_SONOFF_RF - -// #define USE_ENHANCED_GUI_WIFI_SCAN - -// #define USE_UFILESYS // use file system -// #define GUI_TRASH_FILE -// #define GUI_EDIT_FILE - -// // #define USE_BERRY -// #define USE_ETHERNET -// #define USE_TELEINFO - -// #define USE_WS2812 - -// #define USE_WS2812_DMA -// // #define USE_WS2812_INVERTED - // #define USE_WS2812_HARDWARE NEO_HW_WS2812X // Hardware type (NEO_HW_WS2812, NEO_HW_WS2812X, NEO_HW_WS2813, NEO_HW_SK6812, NEO_HW_LC8812, NEO_HW_APA106, NEO_HW_P9813) - // #define USE_WS2812_CTYPE NEO_GRB // Color type (NEO_RGB, NEO_GRB, NEO_BRG, NEO_RBG, NEO_RGBW, NEO_GRBW) - - -// #define USE_I2C -// #define USE_BMP -// #define USE_MPU6886 - -// #undef USE_RULES // Disable support for rules -// #define USE_SCRIPT // Add support for script (+17k code) -// // #define USE_SCRIPT_FATFS 4 // Script: Add FAT FileSystem Support - -// #define SUPPORT_MQTT_EVENT // Support trigger event with MQTT subscriptions (+3k5 code) -// #define USE_MQTT_TLS // Use TLS for MQTT connection (+34.5k code, +7.0k mem and +4.8k additional during connection handshake) -// // #undef USE_MQTT_TLS_CA_CERT // Force full CA validation instead of fingerprints, slower, but simpler to use (+2.2k code, +1.9k mem during connection handshake) -// // #undef USE_MQTT_TLS_FORCE_EC_CIPHER // Force Elliptic Curve cipher (higher security) required by some servers (automatically enabled with USE_MQTT_AWS_IOT) (+11.4k code, +0.4k mem) -// // #undef USE_MQTT_AWS_IOT_LIGHT - -// // #define USE_TELEGRAM -// // #define USE_MQTT_TLS_CA_CERT -// #define USE_RC_SWITCH -// #define USE_THERMOSTAT -// #define USE_DOMOTICZ -// #define USE_HOME_ASSISTANT -// #define USE_I2C -// #define USE_DISPLAY -// #define USE_PING - -// #define USE_EXPRESSION // Add support for expression evaluation in rules (+3k2 code, +64 bytes mem) -// #define SUPPORT_IF_STATEMENT // Add support for IF statement in rules (+4k2 code, -332 bytes mem) -// #define SUPPORT_MQTT_EVENT // Support trigger event with MQTT subscriptions (+3k5 code) - -#define _HADINGER_DONE "_HADINGER_MINIMAL" -#endif // -////////////////////////////////////////////////////////////////////////////////////////////// -#ifdef _HADINGER_DEV - -// #define USE_MQTT_TLS // Use TLS for MQTT connection (+34.5k code, +7.0k mem and +4.8k additional during connection handshake) -// #define USE_IR_REMOTE - -// #define USE_ENERGY_SENSOR -// #define USE_HLW8012 -// #define USE_SONOFF_RF - -#define USE_ENHANCED_GUI_WIFI_SCAN - -#undef USE_UFILESYS - -// #define USE_UFILESYS // use file system -#define GUI_TRASH_FILE -#define GUI_EDIT_FILE - -// #define USE_BERRY -// #define USE_ETHERNET -// #define USE_TELEINFO - -// #define USE_WS2812 -// #undef USE_WS2812_HARDWARE -// #define USE_WS2812_HARDWARE NEO_HW_SK6812 // Hardware type - #undef USE_WS2812_CTYPE - #define USE_WS2812_CTYPE NEO_RGBW - #define USE_WS2812_DMA - // #define USE_WS2812_INVERTED - // #define USE_WS2812_HARDWARE NEO_HW_WS2812X // Hardware type (NEO_HW_WS2812, NEO_HW_WS2812X, NEO_HW_WS2813, NEO_HW_SK6812, NEO_HW_LC8812, NEO_HW_APA106, NEO_HW_P9813) - // #define USE_WS2812_CTYPE NEO_GRB // Color type (NEO_RGB, NEO_GRB, NEO_BRG, NEO_RBG, NEO_RGBW, NEO_GRBW) - - -// #define USE_I2C -// #define USE_BMP -// #define USE_MPU6886 - -// #undef USE_RULES // Disable support for rules -// #define USE_SCRIPT // Add support for script (+17k code) -// // #define USE_SCRIPT_FATFS 4 // Script: Add FAT FileSystem Support - -// #define SUPPORT_MQTT_EVENT // Support trigger event with MQTT subscriptions (+3k5 code) -// #define USE_MQTT_TLS // Use TLS for MQTT connection (+34.5k code, +7.0k mem and +4.8k additional during connection handshake) -// // #undef USE_MQTT_TLS_CA_CERT // Force full CA validation instead of fingerprints, slower, but simpler to use (+2.2k code, +1.9k mem during connection handshake) -// // #undef USE_MQTT_TLS_FORCE_EC_CIPHER // Force Elliptic Curve cipher (higher security) required by some servers (automatically enabled with USE_MQTT_AWS_IOT) (+11.4k code, +0.4k mem) -// // #undef USE_MQTT_AWS_IOT_LIGHT - -// // #define USE_TELEGRAM -// // #define USE_MQTT_TLS_CA_CERT -// #define USE_RC_SWITCH -// #define USE_THERMOSTAT -// #define USE_DOMOTICZ -// #define USE_HOME_ASSISTANT -// #define USE_I2C -// #define USE_DISPLAY -// #define USE_PING - -// #define USE_EXPRESSION // Add support for expression evaluation in rules (+3k2 code, +64 bytes mem) -// #define SUPPORT_IF_STATEMENT // Add support for IF statement in rules (+4k2 code, -332 bytes mem) -// #define SUPPORT_MQTT_EVENT // Support trigger event with MQTT subscriptions (+3k5 code) - -#define _HADINGER_DONE "_HADINGER_DEV" -#endif // -////////////////////////////////////////////////////////////////////////////////////////////// -#ifdef _HADINGER_ESP32C3 - -#define USE_ENHANCED_GUI_WIFI_SCAN - -#define USE_UFILESYS // use file system -#define GUI_TRASH_FILE -#define GUI_EDIT_FILE - -#define USE_LIGHT -#define USE_BERRY -#define USE_I2C -// #define USE_ETHERNET -//#define USE_TELEINFO -// #define USE_ENERGY_SENSOR -#define USE_WS2812 - // #define USE_WS2812_DMA - #undef USE_WS2812_RMT - #define USE_WS2812_RMT 1 - -//#define SUPPORT_MQTT_EVENT // Support trigger event with MQTT subscriptions (+3k5 code) -#define USE_MQTT_TLS // Use TLS for MQTT connection (+34.5k code, +7.0k mem and +4.8k additional during connection handshake) -// #undef USE_MQTT_TLS_CA_CERT // Force full CA validation instead of fingerprints, slower, but simpler to use (+2.2k code, +1.9k mem during connection handshake) -// #undef USE_MQTT_TLS_FORCE_EC_CIPHER // Force Elliptic Curve cipher (higher security) required by some servers (automatically enabled with USE_MQTT_AWS_IOT) (+11.4k code, +0.4k mem) -// #undef USE_MQTT_AWS_IOT_LIGHT - -// #define USE_PING - -#define _HADINGER_DONE "_HADINGER_DENKY" -#endif // ////////////////////////////////////////////////////////////////////////////////////////////// -#ifdef _HADINGER_DENKY - -#define USE_ENHANCED_GUI_WIFI_SCAN - -#define USE_UFILESYS // use file system -#define GUI_TRASH_FILE -#define GUI_EDIT_FILE - -#define USE_BERRY -#define USE_I2C -#define USE_ETHERNET -#define USE_TELEINFO -#define USE_ENERGY_SENSOR -#define USE_WS2812 -#define USE_PING - -//#define SUPPORT_MQTT_EVENT // Support trigger event with MQTT subscriptions (+3k5 code) -#define USE_MQTT_TLS // Use TLS for MQTT connection (+34.5k code, +7.0k mem and +4.8k additional during connection handshake) -// #undef USE_MQTT_TLS_CA_CERT // Force full CA validation instead of fingerprints, slower, but simpler to use (+2.2k code, +1.9k mem during connection handshake) -// #undef USE_MQTT_TLS_FORCE_EC_CIPHER // Force Elliptic Curve cipher (higher security) required by some servers (automatically enabled with USE_MQTT_AWS_IOT) (+11.4k code, +0.4k mem) -// #undef USE_MQTT_AWS_IOT_LIGHT - -// #define USE_PING - -#define _HADINGER_DONE "_HADINGER_DENKY" -#endif // -////////////////////////////////////////////////////////////////////////////////////////////// -#ifdef _HADINGER_32_BERRY - -#define USE_ENHANCED_GUI_WIFI_SCAN - -#define USE_UFILESYS // use file system -#define GUI_TRASH_FILE - -#define USE_BERRY -#define USE_I2C - -#define USE_DHT12 -#define USE_BMP -#define USE_MPU6886 -#define USE_MLX90614 -// #define USE_SHT3X - -#define USE_ETHERNET -// #define USE_ETHERNET -// #define USE_TELEINFO -#define USE_ENERGY_SENSOR -#define USE_WS2812 - // #define USE_WS2812_DMA - #define USE_WS2812_RMT 0 - // #define USE_WS2812_I2S 0 - // #define USE_WS2812_INVERTED -// #define USE_DISPLAY -// #define USE_DISPLAY_ILI9341 - -// #undef WS2812_LEDS -// #define WS2812_LEDS 25 // [Pixels] Number of WS2812 LEDs to start with (max is 512) - -#define USE_IR_REMOTE // Send IR remote commands using library IRremoteESP8266 and ArduinoJson (+4k code, 0k3 mem, 48 iram) - // #define USE_IR_RECEIVE // Support for IR receiver (+5k5 code, 264 iram) - -//#define SUPPORT_MQTT_EVENT // Support trigger event with MQTT subscriptions (+3k5 code) - -#define USE_MQTT_TLS // Use TLS for MQTT connection (+34.5k code, +7.0k mem and +4.8k additional during connection handshake) -// #undef USE_MQTT_TLS_CA_CERT // Force full CA validation instead of fingerprints, slower, but simpler to use (+2.2k code, +1.9k mem during connection handshake) -// #undef USE_MQTT_TLS_FORCE_EC_CIPHER // Force Elliptic Curve cipher (higher security) required by some servers (automatically enabled with USE_MQTT_AWS_IOT) (+11.4k code, +0.4k mem) - -// #define USE_PING - -#define _HADINGER_DONE "_HADINGER_DENKY" -#endif // -////////////////////////////////////////////////////////////////////////////////////////////// -#ifdef _HADINGER_M5STACK_BLACK - -// #define USE_MQTT_TLS // Use TLS for MQTT connection (+34.5k code, +7.0k mem and +4.8k additional during connection handshake) - -#define USE_ENHANCED_GUI_WIFI_SCAN - -#define USE_UFILESYS // use file system -#define GUI_TRASH_FILE -#define GUI_EDIT_FILE - -#define USE_ETHERNET - -#define USE_BERRY -// #define USE_ETHERNET -#define USE_I2C -#define USE_SPI -#define USE_I2S - -#define USE_MPU_ACCEL -#define USE_BM8563 -#define USE_BUZZER -// #define USE_MLX90614 - -#define USE_LVGL -#define USE_LVGL_PNG_DECODER -#define USE_LVGL_FREETYPE - -#define USE_WS2812 - -#define USE_DISPLAY_LVGL_ONLY -#define USE_DISPLAY -#define USE_XPT2046 -#define USE_UNIVERSAL_DISPLAY - #undef USE_DISPLAY_MODES1TO5 - #undef USE_DISPLAY_LCD - #undef USE_DISPLAY_SSD1306 - #undef USE_DISPLAY_MATRIX - #undef USE_DISPLAY_SEVENSEG - -// #undef USE_LIGHT -// #undef USE_EMULATION -// #undef USE_EMULATION_WEMO // optimize and remove Wemo -// #undef USE_EMULATION_HUE // optimize and remove Wemo - -#undef USE_LIGHT_VIRTUAL_CT // Disable support for Virtual White Color Temperature (SO106) - -#define USE_IR_REMOTE - -// #define USE_MQTT_TLS // Use TLS for MQTT connection (+34.5k code, +7.0k mem and +4.8k additional during connection handshake) - -#define _HADINGER_DONE "_HADINGER_M5STACK_BLACK" -#endif // -////////////////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////////////////// -#ifdef _HADINGER_M5STICKC - -#define USE_MQTT_TLS // Use TLS for MQTT connection (+34.5k code, +7.0k mem and +4.8k additional during connection handshake) - -#define USE_ENHANCED_GUI_WIFI_SCAN - -#define USE_UFILESYS // use file system -#define GUI_TRASH_FILE -#define GUI_EDIT_FILE - -#define USE_IR_REMOTE - -#define USE_BERRY -// #define USE_ETHERNET -#define USE_I2C -#define USE_I2S -#define USE_SPI - -#define USE_MPU_ACCEL -#define USE_BM8563 -#define USE_BUZZER - -// #define USE_MLX90614 - -#define USE_LVGL -#undef USE_LVGL_PNG_DECODER -// #define USE_LVGL_FREETYPE - -#define USE_DISPLAY_LVGL_ONLY -#define USE_DISPLAY -#define USE_XPT2046 -#define USE_UNIVERSAL_DISPLAY - #undef USE_DISPLAY_MODES1TO5 - #undef USE_DISPLAY_LCD - #undef USE_DISPLAY_SSD1306 - #undef USE_DISPLAY_MATRIX - #undef USE_DISPLAY_SEVENSEG - -#undef USE_LIGHT -#undef USE_EMULATION -#undef USE_EMULATION_WEMO // optimize and remove Wemo -#undef USE_EMULATION_HUE // optimize and remove Wemo - -#undef USE_LIGHT_VIRTUAL_CT // Disable support for Virtual White Color Temperature (SO106) - -// #define USE_MQTT_TLS // Use TLS for MQTT connection (+34.5k code, +7.0k mem and +4.8k additional during connection handshake) - -#define _HADINGER_DONE "_HADINGER_M5STICKC" -#endif // -////////////////////////////////////////////////////////////////////////////////////////////// -#ifdef _HADINGER_M5STACK_CORE2 - -// #define USE_MQTT_TLS // Use TLS for MQTT connection (+34.5k code, +7.0k mem and +4.8k additional during connection handshake) - -#define USE_ENHANCED_GUI_WIFI_SCAN - -#define USE_SDCARD -#define USE_UFILESYS // use file system - #define GUI_TRASH_FILE - #define GUI_EDIT_FILE - -#define USE_BERRY -#define USE_BERRY_PSRAM -// #define USE_ETHERNET -#define USE_I2C -#define USE_SPI - -#define USE_MPU6886 - -#define USE_MLX90614 - -#define USE_LVGL -#define USE_LVGL_FREETYPE -// #define USE_DISPLAY_LVGL_ONLY -// #define SHOW_SPLASH -#define USE_FT5206 -#define USE_AWATCH -#define USE_DISPLAY -// #define USE_XPT2046 -#define USE_UNIVERSAL_DISPLAY -#define USE_TOUCH_BUTTONS - #undef USE_DISPLAY_MODES1TO5 - #undef USE_DISPLAY_LCD - #undef USE_DISPLAY_SSD1306 - #undef USE_DISPLAY_MATRIX - #undef USE_DISPLAY_SEVENSEG - -// #define USE_MQTT_TLS // Use TLS for MQTT connection (+34.5k code, +7.0k mem and +4.8k additional during connection handshake) - -#define _HADINGER_DONE "_HADINGER_M5STACK_BLACK" -#endif // -////////////////////////////////////////////////////////////////////////////////////////////// -#ifdef _HADINGER_M5STACK - -#define USE_ENHANCED_GUI_WIFI_SCAN - -#define USE_UFILESYS // use file system -#define GUI_TRASH_FILE - -#define USE_BERRY -#define USE_ETHERNET -//#define USE_TELEINFO - -//#define USE_WS2812 - -// #define USE_I2S_AUDIO -// #define USE_M5STACK_CORE2 -// #define USE_SCRIPT_FATFS 4 -// #define FAT_SCRIPT_SIZE 8192 -// #define USE_SCRIPT -#define USE_I2C -// #define USE_BMA423 -// #define SAY_TIME -// #define USE_WEBRADIO -// #define USE_I2S_WEBRADIO -// #define USE_DISPLAY -#define USE_SPI - -#define USE_MLX90614 - -#define USE_LVGL -#define USE_DISPLAY_ILI9341 -// #define USE_DISPLAY_ILI9342 -// #define USE_M5STACK_CORE_BASIC -// #define USE_TOUCH_BUTTONS -// #define JPEG_PICTS -// #define USE_FT5206 -// #define USE_MPU6886 - - -//#define SUPPORT_MQTT_EVENT // Support trigger event with MQTT subscriptions (+3k5 code) -#define USE_MQTT_TLS // Use TLS for MQTT connection (+34.5k code, +7.0k mem and +4.8k additional during connection handshake) -// #undef USE_MQTT_TLS_CA_CERT // Force full CA validation instead of fingerprints, slower, but simpler to use (+2.2k code, +1.9k mem during connection handshake) -// #undef USE_MQTT_TLS_FORCE_EC_CIPHER // Force Elliptic Curve cipher (higher security) required by some servers (automatically enabled with USE_MQTT_AWS_IOT) (+11.4k code, +0.4k mem) -// #undef USE_MQTT_AWS_IOT_LIGHT - -// #define USE_PING - -#define _HADINGER_DONE "_HADINGER_DENKY" -#endif // -////////////////////////////////////////////////////////////////////////////////////////////// -#ifdef _HADINGER_IR_DEV - -//#define SUPPORT_MQTT_EVENT // Support trigger event with MQTT subscriptions (+3k5 code) -// #define USE_MQTT_TLS // Use TLS for MQTT connection (+34.5k code, +7.0k mem and +4.8k additional during connection handshake) - -#define _HADINGER_DONE "_HADINGER_IR_DEV" -#endif // - - -////////////////////////////////////////////////////////////////////////////////////////////// -#ifdef _HADINGER_BULB - -#define USE_MQTT_TLS // Use TLS for MQTT connection (+34.5k code, +7.0k mem and +4.8k additional during connection handshake) -#define USE_IR_REMOTE -#define USE_IR_RECEIVE - -#define USE_ENERGY_SENSOR -#define USE_HLW8012 -#define USE_SONOFF_RF - -// #define USE_ENHANCED_GUI_WIFI_SCAN - -#define _HADINGER_DONE "_HADINGER_BULB" -#endif // _HADINGER_BULB - -////////////////////////////////////////////////////////////////////////////////////////////// -#ifdef _HADINGER_IR - -#define USE_MQTT_TLS // Use TLS for MQTT connection (+34.5k code, +7.0k mem and +4.8k additional during connection handshake) - -#define _HADINGER_DONE "_HADINGER_IR" -#endif // _HADINGER_IR -////////////////////////////////////////////////////////////////////////////////////////////// - -#ifdef _HADINGER_ZNP - -#define USE_MQTT_TLS // Use TLS for MQTT connection (+34.5k code, +7.0k mem and +4.8k additional during connection handshake) -#define USE_ZIGBEE // Enable serial communication with Zigbee CC2530 flashed with ZNP -#define USE_ZIGBEE_EEPROM // Use the EEPROM from the Sonoff ZBBridge to save Zigbee configuration and data -#define USE_PING -#undef USE_LIGHT - -#define USE_UFILESYS // use file system -#define GUI_TRASH_FILE - -#undef USE_EMULATION_WEMO // optimize and remove Wemo -#undef USE_LIGHT_VIRTUAL_CT // Disable support for Virtual White Color Temperature (SO106) - -#define _HADINGER_DONE "_HADINGER_ZNP" -#endif // _HADINGER_ZNP -////////////////////////////////////////////////////////////////////////////////////////////// - -#ifdef _HADINGER_ZNP32 - -#define USE_MQTT_TLS // Use TLS for MQTT connection (+34.5k code, +7.0k mem and +4.8k additional during connection handshake) -#define USE_ZIGBEE // Enable serial communication with Zigbee CC2530 flashed with ZNP -#define USE_PING - -#define USE_BERRY - -#define USE_UFILESYS // use file system -#define GUI_TRASH_FILE - -#undef USE_EMULATION_WEMO // optimize and remove Wemo - -// #define USE_I2C -// #define USE_SPI - -// WT32-ETH01 -#define USE_ETHERNET -#undef ETH_TYPE -#define ETH_TYPE 0 // ETH_PHY_LAN8720 -#undef ETH_CLKMODE -#define ETH_CLKMODE 0 // ETH_CLOCK_GPIO0_IN -#undef ETH_ADDRESS -#define ETH_ADDRESS 1 - -#define _HADINGER_DONE "_HADINGER_ZNP32" -#endif // _HADINGER_ZNP32 -////////////////////////////////////////////////////////////////////////////////////////////// - -#ifdef _HADINGER_EZSP32 - -#define USE_MQTT_TLS // Use TLS for MQTT connection (+34.5k code, +7.0k mem and +4.8k additional during connection handshake) -#define USE_ZIGBEE // Enable serial communication with Zigbee CC2530 flashed with ZNP -#undef USE_ZIGBEE_ZNP -#define USE_ZIGBEE_EZSP -#define USE_PING - -#define USE_BERRY - -#define USE_UFILESYS // use file system -#define GUI_TRASH_FILE - -#undef USE_EMULATION_WEMO // optimize and remove Wemo - -// WT32-ETH01 -#define USE_ETHERNET -#undef ETH_TYPE -#define ETH_TYPE 0 // ETH_PHY_LAN8720 -#undef ETH_CLKMODE -#define ETH_CLKMODE 0 // ETH_CLOCK_GPIO0_IN -#undef ETH_ADDRESS -#define ETH_ADDRESS 1 - -#define _HADINGER_DONE "_HADINGER_EZSP32" -#endif // _HADINGER_ZNP32 -////////////////////////////////////////////////////////////////////////////////////////////// - -#ifdef _HADINGER_EZSP - - -#define USE_MQTT_TLS // Use TLS for MQTT connection (+34.5k code, +7.0k mem and +4.8k additional during connection handshake) -#define USE_ZIGBEE // Enable serial communication with Zigbee CC2530 flashed with ZNP -#undef USE_ZIGBEE_ZNP // Enable ZNP protocol, needed for CC2530 based devices -#define USE_ZIGBEE_EZSP // Enable EZSP protocol, needed for EFR32 EmberZNet based devices, like Sonoff Zigbee bridge -#define USE_ZIGBEE_EEPROM -#define USE_TCP_BRIDGE -#define USE_I2C // I2C using library wire (+10k code, 0k2 mem, 124 iram) - -#undef USE_LIGHT -#define USE_UFILESYS // use file system -#define GUI_TRASH_FILE - -#undef USE_EMULATION_WEMO // optimize and remove Wemo -#undef USE_LIGHT_VIRTUAL_CT // Disable support for Virtual White Color Temperature (SO106) - - -#define _HADINGER_DONE "_HADINGER_EZSP" -#endif // _HADINGER_EZSP -////////////////////////////////////////////////////////////////////////////////////////////// - - - -// Fallback for dev Version -#ifndef _HADINGER_DONE - -#undef USE_ZIGBEE_ZNP // Enable ZNP protocol, needed for CC2530 based devices -#define USE_ZIGBEE_EZSP // Enable EZSP protocol, needed for EFR32 EmberZNet based devices, like Sonoff Zigbee bridge -#define USE_TCP_BRIDGE -#define USE_I2C // I2C using library wire (+10k code, 0k2 mem, 124 iram) - -#define _HADINGER_DONE "dev" -#endif -////////////////////////////////////////////////////////////////////////////////////////////// - - -// #define USE_DEVICE_GROUPS // Add support for device groups (+5k5 code) -// #define USE_I2C -// #define USE_PN532_HSU // Add support for PN532 using HSU (Serial) interface (+1k8 code, 140 bytes mem) -// #define USE_MQTT_TLS // Use TLS for MQTT connection (+34.5k code, +7.0k mem and +4.8k additional during connection handshake) -// #define USE_ZIGBEE // Enable serial communication with Zigbee CC2530 flashed with ZNP -// #define USE_PING -// #undef USE_RULES_COMPRESSION - -// #define USE_FFT - -#endif // _USER_CONFIG_OVERRIDE_H_