setContinuousLoop()

Description

Sets an output channel to play its pulse train indefinitely when triggered, without needing to be re-triggered.

Syntax

setContinuousLoop(channel, state)

Parameters

  • channel: The output channel to set (1-4)

  • state: 1 for continuous loop, 0 for normal mode.

Returns

None

Example

# 1. This code sets output channel 2 to play its pulse train indefinitely when triggered once

myPulsePal.setContinuousLoop(2, 1)

# 2. This code restores channel 2 to play its pulse train only once per trigger

myPulsePal.setContinuousLoop(2, 0)