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

Peter Kietzmann notifications at github.com
Mon Jun 1 09:32:42 CEST 2015


> + */
> +int tcs37727_init(tcs37727_t *dev, i2c_t i2c, uint8_t address);
> +
> +/**
> + * @brief Read raw sensor's data.
> + *
> + * @param[in]  dev          device descriptor of sensor
> + * @param[out] rawred       raw Red ADC data
> + * @param[out] rawgreen     raw Green ADC data
> + * @param[out] rawblue      raw Blue ADC data
> + * @param[out] rawclear     raw Clear ADC data
> + *
> + * @return                  0 on success
> + * @return                  -1 on error
> + */
> +int tcs37727_read(tcs37727_t *dev, uint16_t *rawred, uint16_t *rawgreen,

I would like to see this driver in a similar style as for the [isl29125](https://github.com/RIOT-OS/RIOT/blob/master/drivers/include/isl29125.h). This would mean to use the `color_rgb_t` as output type. If you think you also need a higher resolution you could also introduce an own type in addition (just compare the isl29125 implementation)

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


More information about the notifications mailing list