Skip to content

Commit

Permalink
Disable led for esp8266
Browse files Browse the repository at this point in the history
  • Loading branch information
mp-se committed Oct 13, 2024
1 parent d096a59 commit 4627065
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void setup() {
// Do this setup for all modes exect wifi setup
switch (runMode) {
case RunMode::wifiSetupMode:
#if !defined(ESP32C3)
#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
Expand Down Expand Up @@ -207,7 +207,7 @@ void setup() {
case RunMode::configurationMode:
if (myWifi.isConnected()) {
Log.notice(F("Main: Activating web server." CR));
#if !defined(ESP32C3)
#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
Expand All @@ -220,7 +220,7 @@ void setup() {
mySerialWebSocket.begin(myWebServer.getWebServer(), &Serial);
mySerial.begin(&mySerialWebSocket);
} else {
#if !defined(ESP32C3)
#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
Expand All @@ -231,7 +231,7 @@ void setup() {
break;

default:
#if !defined(ESP32C3)
#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
Expand Down

0 comments on commit 4627065

Please sign in to comment.