Interface: moteiv.tos.interfaces.ButtonAdvanced
interface ButtonAdvanced
Advanced button handling interface for complex gestures.
- Author:
-
Joe Polastre, Moteiv Corporation <info@moteiv.com>
Commands
command void disable()
command void enable()
command uint16_t getLongPress()
command void setLongPress(uint16_t time)
Events
event void longClick(uint32_t time)
event void multiClick(uint8_t count)
Commands - Details
disable
command void disable()
enable
command void enable()
getLongPress
command uint16_t getLongPress()
- Returns:
-
time the time required for a long press in milliseconds
setLongPress
command void setLongPress(uint16_t time)
- Parameters:
-
time
- the number of milliseconds in duration for a button press
Events - Details
longClick
event void longClick(uint32_t time)
- Parameters:
-
time
- The time that the long click started
multiClick
event void multiClick(uint8_t count)
- Parameters:
-
count
- Number of clicks in the multi click event