Vishay VEML6040 Color RGB sensor I2C driver library
Dependents: test_VEML6040 testSensor
Diff: VEML6040.h
- Revision:
- 5:a4dcc19d057e
- Parent:
- 4:f5b142e3fe79
diff -r f5b142e3fe79 -r a4dcc19d057e VEML6040.h --- a/VEML6040.h Mon Jun 05 02:02:20 2017 +0000 +++ b/VEML6040.h Mon Nov 06 01:18:56 2017 +0000 @@ -96,6 +96,26 @@ void getCOLORConf(uint8_t *colorconf) ; void setCOLORConf(uint8_t colorconf) ; + +/** + * get Integration Time accoding to + * current colorconf setting. + * As error margin is +/-20%, + * The value has 25% addition. + */ +int getIT(void) ; + +/** + * set Integration Time + */ +#define IT_40MS 0x00 +#define IT_80MS 0x10 +#define IT_160MS 0x20 +#define IT_320MS 0x30 +#define IT_640MS 0x40 +#define IT_1280MS 0x50 +void setIT(uint8_t it_value) ; + // void getX(uint8_t *X) ; // void getY(uint8_t *Y) ; // void getZ(uint8_t *Z) ;