flip-n-times

xod/core/flip-n-times

Generates `N` switches of output boolean signal. Useful to flash/blink/flip/switch something for several times in a row.
flip-n-times
@/flip-n-times
Generates `N` switches of output boolean signal. Useful to flash/blink/flip/switch something for several times in a row.
Nnumber
Number of times the signal should pass the on-off cycle
Tonnumber
Time to be ON per cycle. In seconds.
SETpulse
Runs a new flip sequence. Cancels the existing if in progress.
Toffnumber
Time to be OFF per cycle. In seconds.
RSTpulse
Cancels the flipping sequence if in progress.
flip-n-times
OUT
ACT
Nc
N
Ton
SET
Toff
RST
Ncnumber
The current number of cycle. Starts from 0.
ACTboolean
Is flip sequence active
OUTboolean
The signal value. Always `false` if the flip sequence is not active.