From 8754a35cba0b08ec53e67aedc0f27b1e7867058c Mon Sep 17 00:00:00 2001 From: AnK Date: Wed, 30 Apr 2025 01:14:55 +0300 Subject: [PATCH] cross compilation --- build-flags/build_flags_m5stack | 4 +++- lighthub/inputs.cpp | 1 + platformio.ini | 31 ++++++++++++++++++------------- 3 files changed, 22 insertions(+), 14 deletions(-) diff --git a/build-flags/build_flags_m5stack b/build-flags/build_flags_m5stack index 2d4f82a..e88495e 100644 --- a/build-flags/build_flags_m5stack +++ b/build-flags/build_flags_m5stack @@ -12,7 +12,9 @@ #-DPID_DISABLE -DARDUINO_OTA_MDNS_DISABLE -DMDNS_ENABLE --DMCP23017 +#-DMCP23017 +-DPID_DISABLE +-DNO_HOMIE -DFS_STORAGE -DFS_PREPARE diff --git a/lighthub/inputs.cpp b/lighthub/inputs.cpp index 2f2e9a2..0bdc86e 100644 --- a/lighthub/inputs.cpp +++ b/lighthub/inputs.cpp @@ -638,6 +638,7 @@ debugSerial << F("IN:") << pin << F(" DHT22 type. T=") << temp << F("°C H=") << debugSerial<valuestring <valuestring); } + return false; } bool Input::setCurrentInput(int n) diff --git a/platformio.ini b/platformio.ini index dab5ef0..acf24de 100644 --- a/platformio.ini +++ b/platformio.ini @@ -118,6 +118,8 @@ lib_deps = https://github.com/anklimov/Arduino-PID-Library.git TimerInterrupt_Generic d00616/arduino-NVM @ ^0.9.1 + https://github.com/mathertel/RotaryEncoder + @@ -166,10 +168,9 @@ lib_deps = https://github.com/anklimov/pubsubclient.git Streaming ;ESP_EEPROM - ;https://github.com/anklimov/NRFFlashStorage Adafruit Unified Sensor DHT sensor library for ESPx - https://github.com/anklimov/Artnet.git + ;https://github.com/anklimov/Artnet.git https://github.com/anklimov/ModbusMaster https://github.com/anklimov/Arduino-Temperature-Control-Library.git https://github.com/anklimov/DS2482_OneWire @@ -177,17 +178,18 @@ lib_deps = FastLED@3.3.2 ClosedCube HDC1080 ;SparkFun CCS811 Arduino Library - SparkFun CCS811 Arduino Library@~1.0.7 + ;sparkfun/SparkFun CCS811 Arduino Library@~1.0.7 + https://github.com/sparkfun/SparkFun_CCS811_Arduino_Library#v1.0.7 M5Stack Adafruit NeoPixel https://github.com/anklimov/ArduinoOTA - Adafruit MCP23017 Arduino Library + ;Adafruit MCP23017 Arduino Library Adafruit BusIO https://github.com/arcao/Syslog.git ; br3ttb/PID@^1.2.1 https://github.com/anklimov/Arduino-PID-Library.git ;ArduinoMDNS - https://github.com/khoih-prog/TimerInterrupt_Generic.git + ;https://github.com/khoih-prog/TimerInterrupt_Generic.git https://github.com/mathertel/RotaryEncoder monitor_speed = 115200 @@ -252,7 +254,7 @@ lib_deps = https://github.com/anklimov/ESP-Dmx FastLED@3.3.2 ClosedCube HDC1080 - SparkFun CCS811 Arduino Library@~1.0.7 + https://github.com/sparkfun/SparkFun_CCS811_Arduino_Library#v1.0.7 Adafruit NeoPixel https://github.com/anklimov/ArduinoOTA Adafruit MCP23017 Arduino Library @@ -323,7 +325,8 @@ lib_deps = https://github.com/arcao/Syslog.git Streaming ClosedCube HDC1080 - SparkFun CCS811 Arduino Library@~1.0.7 + ;sparkfun/SparkFun CCS811 Arduino Library@~1.0.7 + https://github.com/sparkfun/SparkFun_CCS811_Arduino_Library#v1.0.7 Adafruit NeoPixel https://github.com/anklimov/ArduinoOTA Adafruit MCP23017 Arduino Library @@ -401,6 +404,8 @@ lib_deps = https://github.com/anklimov/Arduino-PID-Library.git ;ArduinoMDNS ;https://github.com/khoih-prog/TimerInterrupt_Generic.git + https://github.com/mathertel/RotaryEncoder + monitor_speed = 115200 @@ -467,7 +472,7 @@ lib_deps = https://github.com/arcao/Syslog.git Streaming ClosedCube HDC1080 - SparkFun CCS811 Arduino Library@~1.0.7 + https://github.com/sparkfun/SparkFun_CCS811_Arduino_Library#v1.0.7 Adafruit NeoPixel https://github.com/anklimov/ArduinoOTA Adafruit MCP23017 Arduino Library @@ -521,7 +526,7 @@ lib_deps = https://github.com/arcao/Syslog.git Streaming ClosedCube HDC1080 - SparkFun CCS811 Arduino Library@~1.0.7 + https://github.com/sparkfun/SparkFun_CCS811_Arduino_Library#v1.0.7 Adafruit NeoPixel https://github.com/anklimov/ArduinoOTA Adafruit MCP23017 Arduino Library @@ -621,7 +626,7 @@ lib_deps = Streaming ESP_EEPROM ClosedCube HDC1080 - SparkFun CCS811 Arduino Library@~1.0.7 + https://github.com/sparkfun/SparkFun_CCS811_Arduino_Library#v1.0.7 Adafruit NeoPixel https://github.com/anklimov/ArduinoOTA.git Adafruit MCP23017 Arduino Library @@ -676,7 +681,7 @@ lib_deps = https://github.com/arcao/Syslog.git Streaming ClosedCube HDC1080 - SparkFun CCS811 Arduino Library@~1.0.7 + https://github.com/sparkfun/SparkFun_CCS811_Arduino_Library#v1.0.7 Adafruit NeoPixel https://github.com/anklimov/ArduinoOTA Adafruit MCP23017 Arduino Library @@ -744,7 +749,7 @@ lib_deps = Streaming https://github.com/livello/PrintEx#is-select-redecl ClosedCube HDC1080 - SparkFun CCS811 Arduino Library@~1.0.7 + https://github.com/sparkfun/SparkFun_CCS811_Arduino_Library#v1.0.7 Adafruit NeoPixel https://github.com/anklimov/ArduinoOTA Adafruit MCP23017 Arduino Library @@ -799,7 +804,7 @@ lib_deps = Streaming https://github.com/livello/PrintEx#is-select-redecl ClosedCube HDC1080 - SparkFun CCS811 Arduino Library@~1.0.7 + https://github.com/sparkfun/SparkFun_CCS811_Arduino_Library#v1.0.7 Adafruit NeoPixel https://github.com/anklimov/ArduinoOTA Adafruit MCP23017 Arduino Library