Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
s-light committed Dec 7, 2023
1 parent b26853a commit f11d403
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Adafruit_TLC59711.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void Adafruit_TLC59711::setPWM(uint16_t chan, uint16_t pwm) {
* @param b
* blue value
*/
void Adafruit_TLC59711::setLED(uint8_t lednum, uint16_t r, uint16_t g,
void Adafruit_TLC59711::setLED(uint16_t lednum, uint16_t r, uint16_t g,
uint16_t b) {
setPWM(lednum * 3, r);
setPWM(lednum * 3 + 1, g);
Expand All @@ -151,7 +151,7 @@ void Adafruit_TLC59711::setLED(uint8_t lednum, uint16_t r, uint16_t g,
* @param b
* blue value
*/
void Adafruit_TLC59711::getLED(uint8_t lednum, uint16_t &r, uint16_t &g,
void Adafruit_TLC59711::getLED(uint16_t lednum, uint16_t &r, uint16_t &g,
uint16_t &b) {
r = pwmbuffer[lednum * 3];
g = pwmbuffer[lednum * 3 + 1];
Expand Down
6 changes: 3 additions & 3 deletions Adafruit_TLC59711.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class Adafruit_TLC59711 {
bool begin();

void setPWM(uint16_t chan, uint16_t pwm);
void setLED(uint8_t lednum, uint16_t r, uint16_t g, uint16_t b);
void getLED(uint8_t lednum, uint16_t &r, uint16_t &g, uint16_t &b);
void setLED(uint16_t lednum, uint16_t r, uint16_t g, uint16_t b);
void getLED(uint16_t lednum, uint16_t &r, uint16_t &g, uint16_t &b);
void write();
void setBrightness(uint8_t bcr, uint8_t bcg, uint8_t bcb);
void simpleSetBrightness(uint8_t BC);
Expand All @@ -47,7 +47,7 @@ class Adafruit_TLC59711 {
uint16_t *pwmbuffer = NULL;

uint8_t BCr = 0, BCg = 0, BCb = 0;
int8_t numdrivers = 0;
uint8_t numdrivers = 0;
Adafruit_SPIDevice *_spi_dev = NULL;
};

Expand Down

0 comments on commit f11d403

Please sign in to comment.