Browse Source

Change Max7219 coordinates to traditional (X,Y)

Roxy-3D 7 years ago
parent
commit
c2c02bdc67
No account linked to committer's email address
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/src/feature/Max7219_Debug_LEDs.cpp

+ 3
- 3
Marlin/src/feature/Max7219_Debug_LEDs.cpp View File

113
     SERIAL_ECHOLNPGM(")");
113
     SERIAL_ECHOLNPGM(")");
114
     return;
114
     return;
115
   }
115
   }
116
-  if (TEST(LEDs[row], col) == on) return; // if LED is already on/off, leave alone
117
-  if (on) SBI(LEDs[row], col); else CBI(LEDs[row], col);
118
-  Max7219(8 - row, LEDs[row]);
116
+  if (TEST(LEDs[col], row) == on) return; // if LED is already on/off, leave alone
117
+  if (on) SBI(LEDs[col], row); else CBI(LEDs[col], row);
118
+  Max7219(8 - col, LEDs[col]);
119
 }
119
 }
120
 
120
 
121
 void Max7219_LED_On(const uint8_t col, const uint8_t row) {
121
 void Max7219_LED_On(const uint8_t col, const uint8_t row) {

Loading…
Cancel
Save