turn PC on at boot

This commit is contained in:
Siwat Sirichai 2024-02-25 14:03:21 +07:00
parent 8fcd1b1ad7
commit 6b85380447

View file

@ -108,6 +108,8 @@ void setup()
{ {
espmega.outputs.setValue(i, 4095); espmega.outputs.setValue(i, 4095);
} }
espmega.outputs.setState(12, true);
espmega.outputs.setValue(12,4095);
espmega.installCard(2, &climateCard); espmega.installCard(2, &climateCard);
climateCard.bindFRAM(&espmega.fram, 5000); climateCard.bindFRAM(&espmega.fram, 5000);
climateCard.loadStateFromFRAM(); climateCard.loadStateFromFRAM();