瀏覽代碼

Change Max7219 coordinates to traditional (X,Y)

Roxy-3D 7 年之前
父節點
當前提交
c2c02bdc67
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      Marlin/src/feature/Max7219_Debug_LEDs.cpp

+ 3
- 3
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) {
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) {

Loading…
取消
儲存