RTTTL on message types

This commit is contained in:
seagull9000 committed 2025-05-20 19:09:49 +12:00
1 parent 9df9b1cc7d
commit a719466871
4 files changed
+28 -7

No files matched your search

+15 -4
View File
@@ -59,12 +59,23 @@ void UITask::begin(DisplayDriver* display, NodePrefs* node_prefs, const char* bu
#endif
}
void UITask::soundBuzzer() {
void UITask::soundBuzzer(buzzerEventType bet) {
#if defined(PIN_BUZZER)
// gemini's pick
buzzer.play("MsgRcv3:d=4,o=6,b=200:32e,32g,32b,16c7");
//Serial.println("DBG: Buzzzzzz");
switch(bet){
case buzzerEventType::contactMessage:
// gemini's pick
buzzer.play("MsgRcv3:d=4,o=6,b=200:32e,32g,32b,16c7");
break;
case buzzerEventType::channelMessage:
case buzzerEventType::roomMessage:
case buzzerEventType::newContactMessage:
case buzzerEventType::noBuzzer:
default:
break;
}
#endif
Serial.print("DBG: Buzzzzzz -> ");
Serial.println((int) bet);
}
void UITask::msgRead(int msgcount) {