Description
Sets an output channel to play its pulse train indefinitely when triggered, without needing to be re-triggered.
Syntax
setContinuousLoop(uint8_t channel, uint8_t state)
Parameters
channel: Output channel to set (1-4)
state: 1 if continuous loop, 0 if not
Returns
None
Example
// 1. This code sets output channel 2 to play its pulse train indefinitely
PulsePalObject.setContinuousLoop(2,1);
// 2. This code restores channel 2 to play its pulse train only on trigger
PulsePalObject.setContinuousLoop(2,0);