Pārlūkot izejas kodu

Make M7219 I more robust and nice to look at

Make M2719 initialize the Max7219 registers and then run the initialization pattern (if one is specified).
Roxy-3D 5 gadus atpakaļ
vecāks
revīzija
60f1376798
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3
    1
      Marlin/src/gcode/feature/leds/M7219.cpp

+ 3
- 1
Marlin/src/gcode/feature/leds/M7219.cpp Parādīt failu

@@ -42,8 +42,10 @@
42 42
  *               rows or columns depending upon rotation)
43 43
  */
44 44
 void GcodeSuite::M7219() {
45
-  if (parser.seen('I'))
45
+  if (parser.seen('I')) {
46 46
     Max7219_Clear();
47
+    Max7219_init();
48
+  }
47 49
 
48 50
   if (parser.seen('F'))
49 51
     for (uint8_t x = 0; x < MAX7219_X_LEDS; x++)

Notiek ielāde…
Atcelt
Saglabāt