display temp
This commit is contained in:
parent
b4c7661c3a
commit
5a8e015b14
@ -81,8 +81,12 @@ namespace Display {
|
||||
}
|
||||
|
||||
void displayFloat(float value) {
|
||||
tDisplay.disable();
|
||||
displayColon(false);
|
||||
clockDisplay.print(value);
|
||||
clockDisplay.writeDisplay();
|
||||
adjustTime();
|
||||
tDisplay.enableDelayed(1000);
|
||||
}
|
||||
|
||||
void displayValue(uint8_t value) {
|
||||
|
||||
@ -62,7 +62,9 @@ namespace Ir {
|
||||
command("Fire");
|
||||
break;
|
||||
case 0xC0:
|
||||
command("On");
|
||||
avrOn = true;
|
||||
Wifi::reconnect();
|
||||
Display::displayFloat(Bmp::bmp.readTemperature());
|
||||
break;
|
||||
default:
|
||||
Display::displayValue(lastCommand);
|
||||
|
||||
@ -13,11 +13,11 @@ Task tWifiConnected(onWifiConnected, &ts);
|
||||
|
||||
#include "wifi.h"
|
||||
#include "display.h"
|
||||
#include "bmp.h"
|
||||
#include "ntp_time.h"
|
||||
#include "mqtt.h"
|
||||
#include "ota.h"
|
||||
#include "ir.h"
|
||||
#include "bmp.h"
|
||||
|
||||
#define STAY_CONNECTED_AFTER_BOOT 30*60
|
||||
|
||||
@ -30,8 +30,6 @@ void setup() {
|
||||
Ir::setup();
|
||||
Mqtt::setup();
|
||||
Bmp::setup();
|
||||
Display::displayFloat(Bmp::bmp.readTemperature());
|
||||
delay(3000);
|
||||
|
||||
hourChanged.setWaiting();
|
||||
wifiConnected.setWaiting();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user