tweak 270 flipped

This commit is contained in:
Cameron Steel 2024-01-17 21:18:15 +11:00 committed by GitHub
parent b9bcef8343
commit e65774f14f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -284,7 +284,7 @@ void MAX7219Component::send64pixels(uint8_t chip, const uint8_t pixels[8]) {
} else {
for (uint8_t i = 0; i < 8; i++) {
if (this->flip_x_) {
b |= ((pixels[7 - col] >> i) & 1) << i;
b |= ((pixels[col] >> i) & 1) << (7 - i);
} else {
b |= ((pixels[7 - col] >> i) & 1) << (7 - i);
}