mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-12-18 00:07:50 +00:00
change Max7219 coordinates are in traditional (X,Y) format
This commit is contained in:
parent
c6e4fbe162
commit
42180e25a3
@ -104,9 +104,9 @@ void Max7219_LED_Set(const uint8_t col, const uint8_t row, const bool on) {
|
|||||||
SERIAL_ECHOLNPGM(")");
|
SERIAL_ECHOLNPGM(")");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (TEST(LEDs[row], col) == on) return; // if LED is already on/off, leave alone
|
if (TEST(LEDs[col], row) == on) return; // if LED is already on/off, leave alone
|
||||||
if (on) SBI(LEDs[row], col); else CBI(LEDs[row], col);
|
if (on) SBI(LEDs[col], row); else CBI(LEDs[col], row);
|
||||||
Max7219(8 - row, LEDs[row]);
|
Max7219(8 - col, LEDs[col]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Max7219_LED_On(const uint8_t col, const uint8_t row) {
|
void Max7219_LED_On(const uint8_t col, const uint8_t row) {
|
||||||
|
Loading…
Reference in New Issue
Block a user