Interface: moteiv.tos.interfaces.Button

interface Button

Basic interface for handling button events.

Author:
Joe Polastre, Moteiv Corporation <info@moteiv.com>

Commands
command void disable() Disable button events.
command void enable() Enable the button events.

Events
event void pressed(uint32_t time) Notification that the button has been pressed.
event void released(uint32_t time) Notification that the button has been released.

Commands - Details

disable

command void disable()

Disable button events.

enable

command void enable()

Enable the button events.

Events - Details

pressed

event void pressed(uint32_t time)

Notification that the button has been pressed.

Parameters:
time - the time that the button was pressed

released

event void released(uint32_t time)

Notification that the button has been released.

Parameters:
time - the time that the button was released