[max7219digit] fix 270° rotation (#4930)

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
Pascal 2023-06-12 06:59:25 +02:00 committed by GitHub
parent b9e7fdd2b0
commit 0a407c5425
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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_) {