Class that stores state and functions for interacting with TLC59711 Senor.
More...
#include <Adafruit_TLC59711.h>
|
| | Adafruit_TLC59711 (uint8_t n, uint8_t c, uint8_t d) |
| | Instantiates a new Adafruit_TLC59711 class. More...
|
| |
| | Adafruit_TLC59711 (uint8_t n, SPIClass *theSPI=&SPI) |
| | Instantiates a new Adafruit_TLC59711 class using provided SPI. More...
|
| |
| bool | begin () |
| | Begins SPI connection if there is not empty PWM buffer. More...
|
| |
| void | setPWM (uint16_t chan, uint16_t pwm) |
| | Set PWM value on selected channel. More...
|
| |
| void | setLED (uint8_t lednum, uint16_t r, uint16_t g, uint16_t b) |
| | Set RGB value for selected LED. More...
|
| |
| void | getLED (uint8_t lednum, uint16_t &r, uint16_t &g, uint16_t &b) |
| | Get RGB value for selected LED. More...
|
| |
|
void | write () |
| | Writes PWM buffer to board.
|
| |
| void | setBrightness (uint8_t bcr, uint8_t bcg, uint8_t bcb) |
| | Set the brightness of LED channels to specific value. More...
|
| |
| void | simpleSetBrightness (uint8_t BC) |
| | Set the brightness of LED channels to same value. More...
|
| |
Class that stores state and functions for interacting with TLC59711 Senor.
◆ Adafruit_TLC59711() [1/2]
| Adafruit_TLC59711::Adafruit_TLC59711 |
( |
uint8_t |
n, |
|
|
uint8_t |
c, |
|
|
uint8_t |
d |
|
) |
| |
Instantiates a new Adafruit_TLC59711 class.
- Parameters
-
| n | number of connected drivers |
| c | clock pin |
| d | data pin |
◆ Adafruit_TLC59711() [2/2]
| Adafruit_TLC59711::Adafruit_TLC59711 |
( |
uint8_t |
n, |
|
|
SPIClass * |
theSPI = &SPI |
|
) |
| |
Instantiates a new Adafruit_TLC59711 class using provided SPI.
- Parameters
-
| n | number of connected drivers |
| *theSPI | spi object |
◆ begin()
| bool Adafruit_TLC59711::begin |
( |
| ) |
|
Begins SPI connection if there is not empty PWM buffer.
- Returns
- If successful returns true, otherwise false
◆ setPWM()
| void Adafruit_TLC59711::setPWM |
( |
uint16_t |
chan, |
|
|
uint16_t |
pwm |
|
) |
| |
Set PWM value on selected channel.
- Parameters
-
| chan | one from 12 channel (per driver) so there is 12 * number of drivers |
| pwm | pwm value |
◆ setLED()
| void Adafruit_TLC59711::setLED |
( |
uint8_t |
lednum, |
|
|
uint16_t |
r, |
|
|
uint16_t |
g, |
|
|
uint16_t |
b |
|
) |
| |
Set RGB value for selected LED.
- Parameters
-
| lednum | selected LED number that for which value will be set |
| r | red value |
| g | green value |
| b | blue value |
◆ getLED()
| void Adafruit_TLC59711::getLED |
( |
uint8_t |
lednum, |
|
|
uint16_t & |
r, |
|
|
uint16_t & |
g, |
|
|
uint16_t & |
b |
|
) |
| |
Get RGB value for selected LED.
- Parameters
-
| lednum | selected LED number that for which value will be set |
| r | red value |
| g | green value |
| b | blue value |
◆ setBrightness()
| void Adafruit_TLC59711::setBrightness |
( |
uint8_t |
bcr, |
|
|
uint8_t |
bcg, |
|
|
uint8_t |
bcb |
|
) |
| |
Set the brightness of LED channels to specific value.
- Parameters
-
| bcr | Brightness Control Red value |
| bcg | Brightness Control Green value |
| bcb | Brightness Control Blue value |
◆ simpleSetBrightness()
| void Adafruit_TLC59711::simpleSetBrightness |
( |
uint8_t |
BC | ) |
|
Set the brightness of LED channels to same value.
- Parameters
-
| BC | Brightness Control value |
The documentation for this class was generated from the following files: