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

Peter Kietzmann notifications at github.com
Mon Jun 1 11:12:44 CEST 2015


> +/**
> + * @brief Control Register
> + */
> +#define TCS37727_CONTROL_PDRIVE_100    0x00 /* 100 mA LED Drive Strength */
> +#define TCS37727_CONTROL_PDRIVE_50     0x04 /* 50 mA LED Drive Strength */
> +#define TCS37727_CONTROL_PDRIVE_25     0x08 /* 25 mA LED Drive Strength */
> +#define TCS37727_CONTROL_PDRIVE_12     0x0C /* 12.5 mA LED Drive Strength */
> +#define TCS37727_CONTROL_AGAIN_1       0x00 /* 1 × gain RGBC Gain Value */
> +#define TCS37727_CONTROL_AGAIN_4       0x01 /* 4 × gain RGBC Gain Value */
> +#define TCS37727_CONTROL_AGAIN_16      0x02 /* 16 × gain RGBC Gain Value */
> +#define TCS37727_CONTROL_AGAIN_60      0x03 /* 60 × gain RGBC Gain Value */
> +
> +/**
> + * @brief  Device ID
> + */
> +#define TCS37727_DID_VALUE         0x49

So this value won't change between different boards/sensors? In this case I think it's ok to leave it where it is. Didn't get that this is a register value..

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


More information about the notifications mailing list