Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
phd0 authored Feb 6, 2024
1 parent 721dd79 commit 64f6174
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Adafruit_LEDBackpack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,9 @@ static const PROGMEM uint16_t alphafonttable[] = {
0b0001001000000000, // |
0b0010010010001001, // }
0b0000010100100000, // ~
0b0011111111111111 };
0b0011111111111111,

};


void Adafruit_LEDBackpack::setDisplayState(bool state) {
Expand All @@ -307,6 +309,7 @@ void Adafruit_LEDBackpack::blinkRate(uint8_t b) {
}

Adafruit_LEDBackpack::Adafruit_LEDBackpack(void) {}

bool Adafruit_LEDBackpack::begin(uint8_t _addr, TwoWire* theWire) {
if (i2c_dev)
delete i2c_dev;
Expand All @@ -315,7 +318,7 @@ bool Adafruit_LEDBackpack::begin(uint8_t _addr, TwoWire* theWire) {
return false;
i2c_addr = _addr;
// turn on oscillator
uint8_t buffer[1] = { 0x21 };
uint8_t buffer[1] = {0x21};
i2c_dev->write(buffer, 1);

// internal RAM powers up with garbage/random values.
Expand Down

0 comments on commit 64f6174

Please sign in to comment.