Class which provides functions to control a TAOS TCS3472 Color Light-to-Digital Converter with IR Filter via I2C. (Tidied up)

Dependents:   openwear-lifelogger-example

Fork of TCS3472_I2C by Karl Maxwell

Revision:
2:38d5187a4e7b
Parent:
1:70d7d9f1af01
Child:
3:6a89ac4a1979
--- a/TCS3472_I2C.h	Wed Mar 19 17:23:11 2014 +0000
+++ b/TCS3472_I2C.h	Wed Mar 19 18:48:12 2014 +0000
@@ -4,7 +4,11 @@
 
 //Defines 
 #define SLAVE_ADDRESS           0x29
+
 #define ENABLE_REGISTER         0x00
+#define ATIME                   0x01
+#define WTIME                   0x03
+#define CONFIGURATION_REGISTER  0x0D
 #define CDATA                   0x14
 #define RDATA                   0x16
 #define GDATA                   0x18
@@ -20,12 +24,18 @@
     int getGreenData();
     int getBlueData();
     
-    char readEnableRegister();
+    int setIntegrationTime( const float itime ); // itime (in ms) should be in the range 2.4 - 614.4ms.
+    int enableWait();
+    int disableWait();
+    int enableInterrupt();
+    int disableInterrupt();
+    int setWaitTime( const float wtime ); // wtime (in ms) should be in the range 2.4 - 7400ms.
 
 private:
     I2C i2c_;
     
     int enableRGBC();
+    char readEnableRegister();
     int writeSingleRegister( char address, char data );
     char readSingleRegister( char address );
     int readMultipleRegisters( char address, char* output, int quantity );