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