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.
Toffnumber
Time to be OFF per cycle. In seconds.
SETpulse
Runs a new flip sequence. Cancels the existing if in progress.
RSTpulse
Cancels the flipping sequence if in progress.
flip-n-times
OUTOUTNcNcACTACTNNTonTonToffToffSETSETRSTRST
ACTboolean
Is flip sequence active
Ncnumber
The current number of cycle. Starts from 0.
OUTboolean
The signal value. Always `false` if the flip sequence is not active.