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

Johann Fischer notifications at github.com
Mon Jun 1 10:04:44 CEST 2015


> +#define TCS37727_ENABLE_PEN        (1 << 2) /* Proximity enable, activates the proximity function */
> +#define TCS37727_ENABLE_AEN        (1 << 1) /* RGBC enable, actives the two-channel ADC */
> +#define TCS37727_ENABLE_PON        (1 << 0) /* Power ON */
> +
> +/**
> + * @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 */
> +

ok

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


More information about the notifications mailing list