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:
- 
                                              
pinNumberPin 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:
- 
                                              
levelMraa::Edgeundefined
 - 
                                              
isrFunctionundefined
 - 
                                              
argVoid *Pointer to an object to be supplied as an argument to the ISR.
 
uninstallISR
                      
                              ()
                      
                      
                      
                      
                      
                      
                      
                      
                          
                      
                          Uninstalls the previously installed ISR