[riot-notifications] [RIOT] Driver for TCS3772 Color Light-to-Digital Converter (#3135)

Johann Fischer notifications at github.com
Tue Jun 16 11:36:55 CEST 2015


> + * @brief Device descriptor for TCS37727 sensors.
> + */
> +typedef struct {
> +    i2c_t i2c;              /**< I2C device the sensor is connected to */
> +    uint8_t addr;           /**< the sensor's slave address on the I2C bus */
> +    bool initialized;       /**< sensor status, true if sensor is initialized */
> +    int atime_us;           /**< atime value conveted to microseconds */
> +    int again;              /**< amount of gain */
> +    int ir;                 /**< IR component */
> +    int cr;                 /**< IR compensated channels red */
> +    int cg;                 /**< IR compensated channels green */
> +    int cb;                 /**< IR compensated channels blue */
> +    int cc;                 /**< IR compensated channels clear */
> +    int lux;                /**< Lux */
> +    int ct;                 /**< Color temperature */
> +} tcs37727_t;

once again:
The init function do not need any parameters, the sensor should be self adjusted by autgain function.
I am considering to divide the tcs37727_t in tcs37727_t and tcs37727_data_t, there also insert color_rgb_t. What do you mean?

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/3135/files#r32504905
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150616/1e76da23/attachment-0001.html>


More information about the notifications mailing list