Bläddra i källkod

Change Max7219 coordinates to traditional (X,Y)

Roxy-3D 7 år sedan
förälder
incheckning
c2c02bdc67
Inget konto är kopplat till bidragsgivarens mejladress
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3
    3
      Marlin/src/feature/Max7219_Debug_LEDs.cpp

+ 3
- 3
Marlin/src/feature/Max7219_Debug_LEDs.cpp Visa fil

@@ -113,9 +113,9 @@ void Max7219_LED_Set(const uint8_t col, const uint8_t row, const bool on) {
113 113
     SERIAL_ECHOLNPGM(")");
114 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 121
 void Max7219_LED_On(const uint8_t col, const uint8_t row) {

Laddar…
Avbryt
Spara