mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 01:08:03 +01:00
[max7219digit] fix 270° rotation (#4930)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
b9e7fdd2b0
commit
0a407c5425
1 changed files with 3 additions and 1 deletions
|
@ -278,7 +278,9 @@ void MAX7219Component::send64pixels(uint8_t chip, const uint8_t pixels[8]) {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
b = pixels[7 - col];
|
||||
for (uint8_t i = 0; i < 8; i++) {
|
||||
b |= ((pixels[7 - col] >> i) & 1) << (7 - i);
|
||||
}
|
||||
}
|
||||
// send this byte to display at selected chip
|
||||
if (this->invert_) {
|
||||
|
|
Loading…
Reference in a new issue