Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CPS = TimeUnit(machine.CPUFrequency() / 256)
Functions ¶
func Initialize ¶
func Initialize()
Initialize sets up the AVR timer interrupt to track time. It must be called before using Wait() or WaitForSecond()
Types ¶
type TimeUnit ¶
type TimeUnit uint32
func WaitForSecond ¶
func WaitForSecond() TimeUnit
WaitForSecond waits until the next second then returns the current number of seconds It returns a monotonically increasing count of seconds. If execution is somehow paused seconds will jump ahead when it returns, assuming the interrupt is still triggering.
Click to show internal directories.
Click to hide internal directories.