display climate implementation

This commit is contained in:
Siwat Sirichai 2023-12-31 00:37:50 +07:00
parent ea2c2e076b
commit 19aae95252
4 changed files with 21 additions and 17 deletions

View file

@ -89,6 +89,9 @@ void setup() {
espmega.inputs.registerCallback(input_change_callback);
Serial.println("Installing Climate Card");
espmega.installCard(2, &climateCard);
climateCard.bindFRAM(&espmega.fram, 2000);
climateCard.loadStateFromFRAM();
climateCard.setFRAMAutoSave(true);
Serial.println("Enabling Internal Display");
espmega.enableInternalDisplay(&Serial);
espmega.display->bindClimateCard(&climateCard);