← All exercises

Flasher

medium

Flashes an output at 1 Hz (1s ON, 1s OFF) while enabled.

What it teaches

Blink an output 1 second on and 1 second off while enable is high. When enable drops, the output stops cleanly mid-cycle. The pattern behind every status-indicator light and 'check engine' blinker.

Inputs and outputs

TagTypeDefaultDescription
In_EnableBOOLEnable signal
Out_FlashBOOLFlashing output

Required behavior