Description
Sets an output channel to loop its custom pulse train for pulseTrainDuration seconds. Otherwise, the pulse train ends after its final pulse.
Syntax
setCustomTrainLoop(uint8_t channel, uint8_t loop_state)
Parameters
channel: the output channel to adjust
loop_state: 1 if loop, 0 if not
Returns
None
Example
// Set output channel 1 to play its custom pulse train on a loop for 10 seconds when triggered
myPulsePal.setCustomTrainLoop(1,1);
myPulsePal.setPulseTrainDuration(1,10);