Button Class
- ID: button
- Name: Button
- Other Names: Grove Button
- Category: button
- Manufacturer: seeed
- Connection: gpio
- Kit: gsk
Basic UPM module for the button sensor
Item Index
Methods
Methods
Button
(
Number
-
pin
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