Impuls generator in progress

This commit is contained in:
Dmitry Borisenko
2020-11-01 16:50:44 +03:00
parent 24de398a32
commit 518a0e0404
5 changed files with 114 additions and 33 deletions

View File

@@ -17,6 +17,8 @@
#include "items/ButtonInClass.h"
#include "items/LoggingClass.h"
#include "items/ImpulsOutClass.h"
void not_async_actions();
Timings metric;
@@ -99,11 +101,13 @@ void setup() {
just_load = false;
initialized = true; //this second POST makes the data to be processed (you don't need to connect as "keep-alive" for that to work)
static bool firstTime = true;
if (firstTime) myImpulsOut = new MyImpulsOutVector();
firstTime = false;
myImpulsOut->push_back(ImpulsOutClass(500, 10, 13));
myImpulsOut->at(0).activate();
}
void loop() {
if (!initialized) {
return;
@@ -129,4 +133,10 @@ void loop() {
myLogging->at(i).loop();
}
}
if (myImpulsOut != nullptr) {
for (unsigned int i = 0; i < myImpulsOut->size(); i++) {
myImpulsOut->at(i).loop();
}
}
}