Merge branch 'main' of https://git.siwatsystem.com/ise-senior-iot/ise-iot-oop
This commit is contained in:
commit
94b2370d98
1 changed files with 5 additions and 0 deletions
|
|
@ -103,6 +103,11 @@ void setup()
|
||||||
espmega.enableWebServer(80);
|
espmega.enableWebServer(80);
|
||||||
espmega.inputs.registerCallback(on_pin_change);
|
espmega.inputs.registerCallback(on_pin_change);
|
||||||
espmega.outputs.setAutoSaveToFRAM(true);
|
espmega.outputs.setAutoSaveToFRAM(true);
|
||||||
|
// Set value of pin 0-12 to 4095
|
||||||
|
for (uint8_t i = 0; i < 13; i++)
|
||||||
|
{
|
||||||
|
espmega.outputs.setValue(i, 4095);
|
||||||
|
}
|
||||||
espmega.installCard(2, &climateCard);
|
espmega.installCard(2, &climateCard);
|
||||||
climateCard.bindFRAM(&espmega.fram, 5000);
|
climateCard.bindFRAM(&espmega.fram, 5000);
|
||||||
climateCard.loadStateFromFRAM();
|
climateCard.loadStateFromFRAM();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue