Timers_Class

periodic()

Description

Same thing as singleShot function but the interrupt handling is periodic now.

Syntax

For more flexibility, this method is overloaded:

  • timer.periodic(msec, function, arg, timerid)

  • timer.periodic(msec, function, timerid) => arg = 0

Parameters

timer: a variable of type Timers_Class .

msec: the new period divider used by setPeriodMilliseconds() , type int.

function: a function pointer refers to the handling user program, type bool.

arg: an argument for the previous function, type void.

timerid: the timer instance, type int, default -1.

See also

Corrections, suggestions, and new documentation can be added directly to the wiki page. Scroll to the bottom, choose "Edit Page" and use "Papilio" as the password.

  

Share |