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 9bbb23e commit 8b7bd80
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Adafruit_LEDBackpack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,7 @@ void Adafruit_8x16matrix::drawPixel(int16_t x, int16_t y, uint16_t color) {

if (color) {
displaybuffer[y] |= 1 << x;
}
else {
} else {
displaybuffer[y] &= ~(1 << x);
}
}
Expand Down Expand Up @@ -548,8 +547,7 @@ void Adafruit_8x16minimatrix::drawPixel(int16_t x, int16_t y, uint16_t color) {

if (color) {
displaybuffer[x] |= 1 << y;
}
else {
} else {
displaybuffer[x] &= ~(1 << y);
}
}
Expand Down Expand Up @@ -586,8 +584,7 @@ void Adafruit_8x8matrix::drawPixel(int16_t x, int16_t y, uint16_t color) {

if (color) {
displaybuffer[y] |= 1 << x;
}
else {
} else {
displaybuffer[y] &= ~(1 << x);
}
}
Expand Down Expand Up @@ -857,8 +854,7 @@ void Adafruit_7segment::printFloat(double n, uint8_t fracDigits, uint8_t base) {
// did toIntFactor shift the decimal off the display?
if (toIntFactor < 1) {
printError();
}
else {
} else {
// otherwise, display the number
int8_t displayPos = 4;

Expand Down

0 comments on commit 8b7bd80

Please sign in to comment.