Browse Source
Change Max7219 coordinates to traditional (X,Y)
pull/1/head
Roxy-3D
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
Marlin/src/feature/Max7219_Debug_LEDs.cpp
|
|
@ -113,9 +113,9 @@ void Max7219_LED_Set(const uint8_t col, const uint8_t row, const bool on) { |
|
|
|
SERIAL_ECHOLNPGM(")"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (TEST(LEDs[row], col) == on) return; // if LED is already on/off, leave alone
|
|
|
|
if (on) SBI(LEDs[row], col); else CBI(LEDs[row], col); |
|
|
|
Max7219(8 - row, LEDs[row]); |
|
|
|
if (TEST(LEDs[col], row) == on) return; // if LED is already on/off, leave alone
|
|
|
|
if (on) SBI(LEDs[col], row); else CBI(LEDs[col], row); |
|
|
|
Max7219(8 - col, LEDs[col]); |
|
|
|
} |
|
|
|
|
|
|
|
void Max7219_LED_On(const uint8_t col, const uint8_t row) { |
|
|
|