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

Peter Kietzmann notifications at github.com
Mon Jun 1 11:14:03 CEST 2015


> +    if (i2c_init_master(i2c, I2C_SPEED) < 0) {
> +        i2c_release(dev->i2c);
> +        return -1;
> +    }
> +
> +    i2c_release(dev->i2c);
> +
> +    if (tcs37727_test(dev)) {
> +        return -2;
> +    }
> +
> +    i2c_acquire(dev->i2c);
> +
> +    if (i2c_write_reg(dev->i2c, dev->addr,
> +                      (TCS37727_BYTE_TRANS | TCS37727_CONTROL),
> +                      TCS37727_CONTROL_AGAIN_4) != 1) {

So you won't extend the functionality :-) ? Well ok, if this is merged I can can do it for you.

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


More information about the notifications mailing list