Skip to content

Event: Every () (unit)

Jaume Olivé Petrus edited this page Oct 31, 2017 · 1 revision

This block is a Hat block that is active at regular time intervals, executing its script when the time interval expires. Time intervals can be expressed in microseconds, milliseconds, or seconds.

Shape

Forever block

Example

In this example the logical state of a pin is inverted every 1 second.

Run this example in The Whitecat IDE.

Clone this wiki locally