-
Notifications
You must be signed in to change notification settings - Fork 67
Home
Metro library for Arduino or Wiring that facilitates the implementation of recurring timed events by Thomas Ouellet Fredericks with contributions from: Paul Bouchier and Benjamin.soelberg
Download the latest version here : https://github.com/thomasfredericks/Metro-Arduino-Wiring/archive/master.zip
Put the Metro folder in your Arduino or Wiring "libraries".
Instantiates a Metro object with a default interval of 1000 milliseconds.
Instantiates a Metro object with a set interval in milliseconds.
Because Metro does not use interrupts, you have to "check" the Metro regularly (as often as possible). check() returns true if the interval has lapsed. Returns false if not.
Changes the interval in milliseconds.
Restarts/resets the Metro. Often a good idea if you change the interval.