API for the Button.  
 More...
- ID: button 
 
- Name: Button 
 
- Other Names: Grove Button 
 
- Category: button 
 
- Manufacturer: seeed 
 
- Connection: gpio 
 
- Kit: gsk
 
Basic UPM module for the button sensor
 
    
    
    while( 1 ) {
        std::cout << button->
name() << 
" value is " << button->
value() << std::endl;
 
        sleep(1);
    }
    
    delete button;
  
button constructor
- Parameters
 - 
  
  
 
 
 
Gets the name of the sensor
- Returns
 - Name of this sensor 
 
 
 
Gets the value from the GPIO pin
- Returns
 - Value from the GPIO pin 
 
 
 
      
        
          | void installISR  | 
          ( | 
          mraa::Edge  | 
          level,  | 
        
        
           | 
           | 
          void(*)(void *)  | 
          isr,  | 
        
        
           | 
           | 
          void *  | 
          arg  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Installs an interrupt service routine (ISR) to be called when the button is activated or deactivated.
- Parameters
 - 
  
    | fptr | Pointer to a function to be called on interrupt  | 
    | arg | Pointer to an object to be supplied as an argument to the ISR.  | 
  
   
 
 
Uninstalls the previously installed ISR 
 
 
The documentation for this class was generated from the following files: