API for the TCS3414CS Color Sensor.  
 More...
This module defines the TCS3414CS interface for the color sensor
 
    
    
    while (!doWork) {
        sensor->readRGB (&rgb);
        std::cout << (int)rgb.r << ", " << (int)rgb.g << ", " << (int)rgb.b << ", " << rgb.clr << std::endl;
        usleep (500000);
    }
  
      
        
          | TCS3414CS  | 
          ( | 
          int  | 
          bus = 0,  | 
        
        
           | 
           | 
          int  | 
          addr = DEFAULT_ADDR  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Instantiates a TCS3414CS object
- Parameters
 - 
  
    | bus | Number of the used bus  | 
    | addr | I2C address of the device  | 
  
   
 
 
Gets the RGB value from the sensor.
- Parameters
 - 
  
  
 
 
 
      
        
          | void clearInterrupt  | 
          ( | 
          void  | 
           | ) | 
           | 
        
      
 
 
Returns the name of the component 
 
 
The documentation for this class was generated from the following files: