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()
command void enable()
Events
event void pressed(uint32_t time)
event void released(uint32_t time)
Commands - Details
disable
command void disable()
enable
command void enable()
Events - Details
pressed
event void pressed(uint32_t time)
- Parameters:
-
time
- the time that the button was pressed
released
event void released(uint32_t time)
- Parameters:
-
time
- the time that the button was released