display update
This commit is contained in:
parent
c72a0d48df
commit
0a93b99021
4 changed files with 8 additions and 5 deletions
|
@ -81,6 +81,9 @@ void setup()
|
|||
ESP_LOGV("CUD IoT OS", "Initializing Air Conditioner");
|
||||
espmega.installCard(2, &ac);
|
||||
ac.bindFRAM(&espmega.fram, AC_FRAM_ADDR);
|
||||
ac.loadStateFromFRAM();
|
||||
ac.setFRAMAutoSave(true);
|
||||
ESP_LOGD("CUD IoT OS", "Loaded Air Conditioner State from FRAM, Temperature: %d, Mode: %d, Fan Speed: %d", ac.getTemperature(), ac.getMode(), ac.getFanSpeed());
|
||||
espmega.display->bindClimateCard(&ac); // Show our climate card on the display
|
||||
// Register all cards with iot
|
||||
ESP_LOGV("CUD IoT OS", "Registering Cards with IoT");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue