Skip to content

Latest commit

 

History

History
70 lines (42 loc) · 1.71 KB

tick.md

File metadata and controls

70 lines (42 loc) · 1.71 KB

H4P Logo

H4P_EmitTick

Shortname 1sec

Emits H4PE_HEARTBEAT event once per second. This is synchronous, called on the main loop and not an exact asynchronous "hard-realtime" second. It is sent when the number of millis() is exactly divisible by 1000. Unless your app loads up the queue with badly-designed long-running tasks, it is reasonably accurate.

For information on how to use this plugin, see 💎Everything is an event: Listeners, Emitters and Handlers


Contents


Usage

H4P_EmitTick ticktock();

This plugin is a "singleton" - there may be only one single instance of it in the app. It may be instantiated as any name the user chooses, prefix all API calls below with than name.

Dependencies

N/A

Commands Added

N/A

Service Commands

stop / start have no effect

Callback functions

N/A


API

Constructor

H4P_EmitTick();

Example Sketch


(c) 2021 Phil Bowles [email protected]