APDS9930 Digital Proximity and Ambient Light Sensor.  
 More...
- ID: apds9930 
 
- Name: APDS9930 Digital Proximity and Ambient Light Sensor 
 
- Category: light proximity 
 
- Manufacturer: Avago Technologies 
 
- Connection: iio i2c
 
This sensor provides digital ambient light sensing (ALS), IR LED and a complete proximity detection system.
    
    
    
    
    usleep(120000);
    while (shouldRun) {
        cout << "Luminance value is " << lux << endl;
        cout << "Proximity value is " << proximity << endl;
        sleep(1);
    }
 
APDS-9930 digital proximity and ambient light sensor constructor
- Parameters
 - 
  
  
 
 
 
Gets the ambient luminance value from the sensor
- Returns
 - Ambient Luminance value 
 
 
 
Gets the proximity value from the sensor
- Returns
 - Proximity value 
 
 
 
      
        
          | bool enableProximity  | 
          ( | 
          bool  | 
          enable | ) | 
           | 
        
      
 
Enable proximity 
- Parameters
 - 
  
  
 
 
 
      
        
          | bool enableIlluminance  | 
          ( | 
          bool  | 
          enable | ) | 
           | 
        
      
 
Enable illuminance 
- Parameters
 - 
  
  
 
 
 
The documentation for this class was generated from the following files:
- /iotdk/jenkins/workspace/upm-doc-stable/src/apds9930/apds9930.hpp
 
- /iotdk/jenkins/workspace/upm-doc-stable/src/apds9930/apds9930.cxx