Enable blue LED when running on ESP32
This commit is contained in:
parent
58144a5187
commit
fda5c6ff27
@ -129,6 +129,8 @@ void setup() {
|
||||
}
|
||||
snprintf(&buf[0], sizeof(buf), "%6x", chipId);
|
||||
Log.notice(F("Main: Started setup for %s." CR), &buf[0]);
|
||||
pinMode(PIN_LED, OUTPUT);
|
||||
digitalWrite(PIN_LED, HIGH);
|
||||
#endif
|
||||
printBuildOptions();
|
||||
|
||||
@ -290,7 +292,7 @@ bool loopReadGravity() {
|
||||
}
|
||||
return true;
|
||||
} else {
|
||||
Log.error(F("MAIN: No gyro value found, the device might be moving."));
|
||||
Log.error(F("MAIN: No gyro value found, the device might be moving." CR));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
@ -35,6 +35,7 @@ SOFTWARE.
|
||||
#define PIN_SDA D3
|
||||
#define PIN_SCL D4
|
||||
#define PIN_DS D6
|
||||
#define PIN_LED 2
|
||||
//#define PIN_A0 A0
|
||||
#else // defined (ESP32)
|
||||
#if defined (ESPRESSIF32_20)
|
||||
@ -51,6 +52,7 @@ SOFTWARE.
|
||||
#define PIN_SCL 16
|
||||
#define PIN_DS 19
|
||||
#define PIN_A0 36
|
||||
#define PIN_LED 2
|
||||
#endif
|
||||
|
||||
#define PIN_LED 2
|
||||
|
Loading…
Reference in New Issue
Block a user