energy auto save
This commit is contained in:
parent
a294430c0a
commit
181c1937ee
2 changed files with 13 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -4,3 +4,4 @@
|
||||||
.vscode/launch.json
|
.vscode/launch.json
|
||||||
.vscode/ipch
|
.vscode/ipch
|
||||||
/.vscode
|
/.vscode
|
||||||
|
/.vscode
|
||||||
|
|
|
||||||
12
src/main.cpp
12
src/main.cpp
|
|
@ -177,21 +177,33 @@ void setup()
|
||||||
espmega.installCard(4, &analogCard);
|
espmega.installCard(4, &analogCard);
|
||||||
espmega.installCard(5, &ct1);
|
espmega.installCard(5, &ct1);
|
||||||
ct1.bindFRAM(&espmega.fram, 6000);
|
ct1.bindFRAM(&espmega.fram, 6000);
|
||||||
|
ct1.loadEnergy();
|
||||||
|
ct1.setEnergyAutoSave(true);
|
||||||
espmega.iot->registerCard(5);
|
espmega.iot->registerCard(5);
|
||||||
espmega.installCard(6, &ct2);
|
espmega.installCard(6, &ct2);
|
||||||
ct2.bindFRAM(&espmega.fram, 6100);
|
ct2.bindFRAM(&espmega.fram, 6100);
|
||||||
|
ct2.loadEnergy();
|
||||||
|
ct2.setEnergyAutoSave(true);
|
||||||
espmega.iot->registerCard(6);
|
espmega.iot->registerCard(6);
|
||||||
espmega.installCard(7, &ct3);
|
espmega.installCard(7, &ct3);
|
||||||
ct3.bindFRAM(&espmega.fram, 6200);
|
ct3.bindFRAM(&espmega.fram, 6200);
|
||||||
|
ct3.loadEnergy();
|
||||||
|
ct3.setEnergyAutoSave(true);
|
||||||
espmega.iot->registerCard(7);
|
espmega.iot->registerCard(7);
|
||||||
espmega.installCard(8, &ct4);
|
espmega.installCard(8, &ct4);
|
||||||
ct4.bindFRAM(&espmega.fram, 6300);
|
ct4.bindFRAM(&espmega.fram, 6300);
|
||||||
|
ct4.loadEnergy();
|
||||||
|
ct4.setEnergyAutoSave(true);
|
||||||
espmega.iot->registerCard(8);
|
espmega.iot->registerCard(8);
|
||||||
espmega.installCard(9, &ct5);
|
espmega.installCard(9, &ct5);
|
||||||
ct5.bindFRAM(&espmega.fram, 6400);
|
ct5.bindFRAM(&espmega.fram, 6400);
|
||||||
|
ct5.loadEnergy();
|
||||||
|
ct5.setEnergyAutoSave(true);
|
||||||
espmega.iot->registerCard(9);
|
espmega.iot->registerCard(9);
|
||||||
espmega.installCard(10, &ct6);
|
espmega.installCard(10, &ct6);
|
||||||
ct6.bindFRAM(&espmega.fram, 6500);
|
ct6.bindFRAM(&espmega.fram, 6500);
|
||||||
|
ct6.loadEnergy();
|
||||||
|
ct6.setEnergyAutoSave(true);
|
||||||
espmega.iot->registerCard(10);
|
espmega.iot->registerCard(10);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue