API for the GUVA-S12D UV Sensor.  
 More...
- ID: guvas12d 
 
- Name: Grove UV Sensor 
 
- Other Names: GUVA-S12D UV Sensor 
 
- Category: light 
 
- Manufacturer: seeed 
 
- Connection: analog 
 
- Kit: eak
 
UPM module for the GUVA-S12D UV sensor
     
    
    
    
    
    while (shouldRun)
    {
        cout << 
"Volts: " << volts->
volts()
 
             << " mW/m^2"
             << endl;
        sleep(1);
    }
 
GUVA-S12D UV sensor constructor
- Parameters
 - 
  
    | pin | Analog pin to use  | 
    | aref | Analog reference voltage to use  | 
  
   
 
 
      
        
          | float value  | 
          ( | 
          float  | 
          aref,  | 
        
        
           | 
           | 
          unsigned int  | 
          samples  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
- Deprecated:
 - This method is being replaced by the volts() and illumination() methods.
 
Gets the average voltage value from the sensor
- Parameters
 - 
  
    | aref | Reference voltage in use (usually 5.0 V or 3.3 V)  | 
    | samples | Number of samples to average over (currently ignored)  | 
  
   
- Returns
 - Average voltage reading 
 
 
 
Gets the voltage value from the sensor
- Returns
 - Voltage reading 
 
 
 
Gets the computed illumination intensity from the sensor in mW/m^2.
- Returns
 - Intensity over the sensitive wavelengths in mW/m^2 
 
 
 
      
        
          | void setScale  | 
          ( | 
          float  | 
          scale | ) | 
           | 
        
      
 
Set sensor scale. This scale is applied to the intensity value before the offset is applied. Default is 1.0.
- Parameters
 - 
  
  
 
 
 
      
        
          | void setOffset  | 
          ( | 
          float  | 
          offset | ) | 
           | 
        
      
 
Set sensor offset. This offset is applied to the intensity value before scaling. Default is 0.0.
- Parameters
 - 
  
  
 
 
 
The documentation for this class was generated from the following files:
- /iotdk/jenkins/workspace/upm-doc-stable/src/guvas12d/guvas12d.hpp
 
- /iotdk/jenkins/workspace/upm-doc-stable/src/guvas12d/guvas12d.cxx