I2C driver for the NXP chip PCA9685 16xPWM LED controller A total of 4 RGBA LEDs can be controlled by 1 chip giving a RGBA value in the form of: rgba(0-255,0-255,0-255,0-100) then dimmed by 0-100%
i2c.h@0:62c7c3514d8f, 2012-06-15 (annotated)
- Committer:
- Bas
- Date:
- Fri Jun 15 23:30:43 2012 +0000
- Revision:
- 0:62c7c3514d8f
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Bas | 0:62c7c3514d8f | 1 | /* I2C bus Functions */ |
Bas | 0:62c7c3514d8f | 2 | |
Bas | 0:62c7c3514d8f | 3 | void i2c_probe(void); |
Bas | 0:62c7c3514d8f | 4 | |
Bas | 0:62c7c3514d8f | 5 | void init_pca9685(unsigned char address); |
Bas | 0:62c7c3514d8f | 6 | void channel_light(unsigned char ch, unsigned char lev); |
Bas | 0:62c7c3514d8f | 7 | void pca9685_led(unsigned char addr, int led, unsigned char *values); |
Bas | 0:62c7c3514d8f | 8 | void pca9685_rgba_led(unsigned char addr, int rgba_led, unsigned char *color, unsigned char level); |
Bas | 0:62c7c3514d8f | 9 | void pca9685_brightness(int percent, unsigned char *values); |
Bas | 0:62c7c3514d8f | 10 |