mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 03:12:20 +01:00
[max7219digit] fix 270° rotation (#4930)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
@@ -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_) {
|
||||
|
Reference in New Issue
Block a user