change texts

This commit is contained in:
Nicu Hodos 2021-12-08 09:06:03 +01:00
parent 5a8e015b14
commit 534cf4ba28
2 changed files with 17 additions and 21 deletions

View File

@ -99,6 +99,8 @@ namespace Display {
}
void displayText(const char c[]) {
tDisplay.disable();
displayColon(false);
clockDisplay.println(c);
clockDisplay.writeDisplay();
adjustTime();

View File

@ -55,15 +55,27 @@ namespace Ir {
case 0x12:
command("Slp");
break;
case 0xC1:
Display::displayText("Mute");
break;
case 0xC4:
command("Play");
break;
case 0xC7:
avrOn ? Display::displayText(" Up") : Display::changeBrightness(true);
Mqtt::commands.pop();
break;
case 0xC8:
avrOn ? Display::displayText(" Dn") : Display::changeBrightness(false);
Mqtt::commands.pop();
break;
case 0xD0:
command("Fire");
command("Stop");
break;
case 0xC0:
avrOn = true;
Wifi::reconnect();
command("On");
break;
case 0x84:
Display::displayFloat(Bmp::bmp.readTemperature());
break;
default:
@ -71,24 +83,6 @@ namespace Ir {
break;
}
}
if (Mqtt::commands.getCurrent() == 0xC7) {
if (!avrOn) {
Display::displayText("B Up");
Display::changeBrightness(true);
} else {
Display::displayText(" Up");
}
Mqtt::commands.pop();
}
if (Mqtt::commands.getCurrent() == 0xC8) {
if (!avrOn) {
Display::displayText("B Dn");
Display::changeBrightness(false);
} else {
Display::displayText(" Dn");
}
Mqtt::commands.pop();
}
}
void setup() {