GroveButton Class
- ID: grovebutton
- Name: Button
- Other Names: Grove Touch Sensor
- Category: button touch
- Manufacturer: seeed
- Connection: gpio
- Kit: gsk
Basic UPM module for the Grove button
Item Index
Methods
Methods
GroveButton
(
Number
-
pin
Grove button constructor
Parameters:
-
pin
NumberPin to use
Returns:
Number:
name
()
String
Gets the name of the sensor
Returns:
String:
Name of this sensor
value
()
Number
Gets the value from the GPIO pin
Returns:
Number:
Value from the GPIO pin
installISR
(
-
level
-
isr
-
arg
Installs an interrupt service routine (ISR) to be called when the button is activated or deactivated.
Parameters:
-
level
Mraa::Edgeundefined
-
isr
Functionundefined
-
arg
Void *Pointer to an object to be supplied as an argument to the ISR.
uninstallISR
()
Uninstalls the previously installed ISR