Compare commits

...

5 Commits

Author SHA1 Message Date
Disappear9 3346738c03
Merge ccf7a85de7 into b4bdd75be9 2025-01-12 09:10:03 -03:00
richonguzman b4bdd75be9 wx module for QRP_LightTracker 2025-01-12 09:09:54 -03:00
Disappear9 ccf7a85de7
Prevent buzzer pin from conflict 2024-11-20 21:19:55 +08:00
Disappear9 b97be0e07b
Prevent buzzer pin from conflict 2024-11-20 21:18:00 +08:00
Disappear9 a09b9d3322
Prevent ledMessagePin from conflict 2024-11-20 20:58:37 +08:00
4 changed files with 11 additions and 7 deletions

View File

@ -682,7 +682,7 @@ namespace MENU_Utils {
}
#endif
#ifdef HAS_AXP2101
if (Config.notification.lowBatteryBeep && !POWER_Utils::isCharging() && batteryCharge.toInt() < lowBatteryPercent) {
if (Config.notification.buzzerActive && Config.notification.lowBatteryBeep && !POWER_Utils::isCharging() && batteryCharge.toInt() < lowBatteryPercent) {
lowBatteryPercent = batteryCharge.toInt();
NOTIFICATION_Utils::lowBatteryBeep();
if (batteryCharge.toInt() < 6) {
@ -721,4 +721,4 @@ namespace MENU_Utils {
}
}
}
}

View File

@ -181,8 +181,10 @@ namespace MSG_Utils {
if (messageLed && ledOnDelta > 1 * 1000) {
digitalWrite(Config.notification.ledMessagePin, LOW);
}
if (!messageLed && digitalRead(Config.notification.ledMessagePin) == HIGH) {
digitalWrite(Config.notification.ledMessagePin, LOW);
if (!messageLed && Config.notification.ledMessage){
if (digitalRead(Config.notification.ledMessagePin) == HIGH){
digitalWrite(Config.notification.ledMessagePin, LOW);
}
}
}
@ -547,4 +549,4 @@ namespace MSG_Utils {
}
}
}
}

View File

@ -466,7 +466,7 @@ namespace POWER_Utils {
void shutdown() {
logger.log(logging::LoggerLevel::LOGGER_LEVEL_WARN, "Main", "SHUTDOWN !!!");
#if defined(HAS_AXP192) || defined(HAS_AXP2101)
if (Config.notification.shutDownBeep) NOTIFICATION_Utils::shutDownBeep();
if (Config.notification.buzzerActive && Config.notification.shutDownBeep) NOTIFICATION_Utils::shutDownBeep();
displayToggle(false);
PMU.shutdown();
#else
@ -504,4 +504,4 @@ namespace POWER_Utils {
#endif
}
}
}

View File

@ -47,6 +47,8 @@ namespace WX_Utils {
while (1) delay(1);
}
logger.log(logging::LoggerLevel::LOGGER_LEVEL_INFO, "BME", " SHTC3 sensor found");
wxModuleFound = true;
wxModuleType = 4;
#else
if (wxModuleAddress != 0x00) {
#if defined(HELTEC_V3_GPS) || defined(HELTEC_V3_TNC) || defined(HELTEC_V3_2_GPS) || defined(HELTEC_V3_2_TNC)