Skip to main content

update()

update()

This function calls updateButton() and updateLeds()

It is recommended to call this function at the end of every loop.

Example:

void loop() {
if (tlob.buttonDown){
// turn all leds on
tlob.ledAll(HIGH);
} else {
// turn all leds off
tlob.ledAll(LOW);
}
tlob.update();
}