Set up scheduled program cycles #24
|
@ -536,8 +536,12 @@ void loop() {
|
||||||
//Serial.println("Start sending");
|
//Serial.println("Start sending");
|
||||||
start_millis = millis() + ((yourInputCycleID - 1) * yourInputStepLength);
|
start_millis = millis() + ((yourInputCycleID - 1) * yourInputStepLength);
|
||||||
stop_millis = start_millis + yourInputStepLength;
|
stop_millis = start_millis + yourInputStepLength;
|
||||||
|
if(yourInputCycleID == 1){
|
||||||
|
pause_until_millis = stop_millis + (yourInputStepLength * (yourInputNtransmitters - 1));
|
||||||
|
} else {
|
||||||
// Subtract 2 rather than 1 here to account for start_millis duration at beginning of repeat.
|
// Subtract 2 rather than 1 here to account for start_millis duration at beginning of repeat.
|
||||||
pause_until_millis = stop_millis + (yourInputStepLength * (yourInputNtransmitters - 2));
|
pause_until_millis = stop_millis + (yourInputStepLength * (yourInputNtransmitters - 2));
|
||||||
|
}
|
||||||
//sender.startSending();
|
//sender.startSending();
|
||||||
programRunning = true;
|
programRunning = true;
|
||||||
startProgram = false;
|
startProgram = false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user