diff --git a/platformio.ini b/platformio.ini index f09ee9c..364beb8 100644 --- a/platformio.ini +++ b/platformio.ini @@ -41,7 +41,7 @@ lib_deps = https://github.com/mp-se/arduino-mqtt#v2.5.2 https://github.com/mp-se/ESPAsyncWebServer#0.1.1 https://github.com/mp-se/ESPAsyncTCP#0.1.0 - https://github.com/mp-se/espframework#1.0.6 + https://github.com/mp-se/espframework#1.0.7 https://github.com/mp-se/OneWireNg#0.13.3 lib_deps32 = https://github.com/mp-se/NimBLE-Arduino#1.4.1 @@ -64,6 +64,7 @@ build_unflags = ${common_env_data.build_unflags} build_flags = ${common_env_data.build_flags} -D LOG_LEVEL=5 + -D DISABLE_LED #-D USE_SERIAL_PINS # Use the TX/RX pins for the serial port #-D RUN_HARDWARE_TEST # Will run diagnositc setup to validate the GPIO configurations lib_deps = @@ -137,6 +138,7 @@ build_flags = #-D CORE_DEBUG_LEVEL=6 -D ESP32C3 -D ARDUINO_ESP32C3_DEV + -D DISABLE_LED #-D ARDUINO_USB_CDC_ON_BOOT=1 #-DUSE_SERIAL_PINS # Use the TX/RX pins for the serial port lib_deps = diff --git a/src/main.cpp b/src/main.cpp index ab18c03..b50c1c8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -149,11 +149,9 @@ void setup() { // Do this setup for all modes exect wifi setup switch (runMode) { case RunMode::wifiSetupMode: -#if !defined(ESP32C3) && !defined(ESP8266) // We cant use LED on ESP32C3 since that pin is connected to GYRO ledOn(LedColor::RED); // Red or fast flashing to indicate connection // error -#endif myWifi.startAP(); break; @@ -207,10 +205,8 @@ void setup() { case RunMode::configurationMode: if (myWifi.isConnected()) { Log.notice(F("Main: Activating web server." CR)); -#if !defined(ESP32C3) && !defined(ESP8266) // We cant use LED on ESP32C3 since that pin is connected to GYRO ledOn(LedColor::BLUE); // Blue or slow flashing to indicate config mode -#endif PERF_BEGIN("main-wifi-ota"); if (myOta.checkFirmwareVersion()) myOta.updateFirmware(); PERF_END("main-wifi-ota"); @@ -220,10 +216,8 @@ void setup() { mySerialWebSocket.begin(myWebServer.getWebServer(), &Serial); mySerial.begin(&mySerialWebSocket); } else { -#if !defined(ESP32C3) && !defined(ESP8266) // We cant use LED on ESP32C3 since that pin is connected to GYRO ledOn(LedColor::RED); // Red or fast flashing to indicate connection -#endif // error } @@ -231,11 +225,9 @@ void setup() { break; default: -#if !defined(ESP32C3) && !defined(ESP8266) // We cant use LED on ESP32C3 since that pin is connected to GYRO ledOn( LedColor::GREEN); // Green or fast flashing to indicate gravity mode -#endif break; }