Back to Index

One-shot pulse when the condition becomes true. Outputs 1 for a single cycle.

Signature

ONCE(cond, &q);

Example

ONCE(in(1), fire);
if (fire) { logn("Triggered"); }