Kaynağa Gözat

[2.0.x] Tweaks and additions for MAX7219 (#11034)

Scott Lahteine 6 yıl önce
ebeveyn
işleme
d4795e5b8e
No account linked to committer's email address
58 değiştirilmiş dosya ile 1003 ekleme ve 780 silme
  1. 12
    11
      Marlin/Configuration_adv.h
  2. 1
    1
      Marlin/src/Marlin.cpp
  3. 12
    11
      Marlin/src/config/default/Configuration_adv.h
  4. 12
    11
      Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h
  5. 12
    11
      Marlin/src/config/examples/Anet/A6/Configuration_adv.h
  6. 12
    11
      Marlin/src/config/examples/Anet/A8/Configuration_adv.h
  7. 12
    11
      Marlin/src/config/examples/Azteeg/X5GT/Configuration_adv.h
  8. 12
    11
      Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration_adv.h
  9. 12
    11
      Marlin/src/config/examples/BIBO/TouchX/default/Configuration_adv.h
  10. 12
    11
      Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h
  11. 12
    11
      Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h
  12. 12
    11
      Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h
  13. 12
    11
      Marlin/src/config/examples/Cartesio/Configuration_adv.h
  14. 12
    11
      Marlin/src/config/examples/Creality/CR-10/Configuration_adv.h
  15. 12
    11
      Marlin/src/config/examples/Creality/CR-10S/Configuration_adv.h
  16. 12
    11
      Marlin/src/config/examples/Creality/CR-10mini/Configuration_adv.h
  17. 12
    11
      Marlin/src/config/examples/Creality/CR-8/Configuration_adv.h
  18. 12
    11
      Marlin/src/config/examples/Creality/Ender-2/Configuration_adv.h
  19. 12
    11
      Marlin/src/config/examples/Creality/Ender-3/Configuration_adv.h
  20. 12
    11
      Marlin/src/config/examples/Creality/Ender-4/Configuration_adv.h
  21. 12
    11
      Marlin/src/config/examples/Felix/Configuration_adv.h
  22. 9
    8
      Marlin/src/config/examples/FolgerTech/i3-2020/Configuration_adv.h
  23. 12
    11
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro C/Configuration_adv.h
  24. 12
    11
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro W/Configuration_adv.h
  25. 12
    11
      Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h
  26. 12
    11
      Marlin/src/config/examples/JGAurora/A5/Configuration_adv.h
  27. 12
    11
      Marlin/src/config/examples/MakerParts/Configuration_adv.h
  28. 12
    11
      Marlin/src/config/examples/Malyan/M150/Configuration_adv.h
  29. 12
    11
      Marlin/src/config/examples/Malyan/M200/Configuration_adv.h
  30. 12
    11
      Marlin/src/config/examples/Micromake/C1/enhanced/Configuration_adv.h
  31. 12
    11
      Marlin/src/config/examples/Mks/Sbase/Configuration_adv.h
  32. 12
    11
      Marlin/src/config/examples/RigidBot/Configuration_adv.h
  33. 12
    11
      Marlin/src/config/examples/SCARA/Configuration_adv.h
  34. 12
    11
      Marlin/src/config/examples/Sanguinololu/Configuration_adv.h
  35. 12
    11
      Marlin/src/config/examples/TheBorg/Configuration_adv.h
  36. 12
    11
      Marlin/src/config/examples/TinyBoy2/Configuration_adv.h
  37. 12
    11
      Marlin/src/config/examples/UltiMachine/Archim2/Configuration_adv.h
  38. 12
    11
      Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h
  39. 12
    11
      Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h
  40. 12
    11
      Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration_adv.h
  41. 12
    11
      Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h
  42. 12
    11
      Marlin/src/config/examples/delta/FLSUN/kossel/Configuration_adv.h
  43. 12
    11
      Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h
  44. 12
    11
      Marlin/src/config/examples/delta/generic/Configuration_adv.h
  45. 12
    11
      Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h
  46. 12
    11
      Marlin/src/config/examples/delta/kossel_pro/Configuration_adv.h
  47. 12
    11
      Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h
  48. 12
    11
      Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h
  49. 12
    11
      Marlin/src/config/examples/makibox/Configuration_adv.h
  50. 12
    11
      Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h
  51. 12
    11
      Marlin/src/config/examples/wt150/Configuration_adv.h
  52. 310
    202
      Marlin/src/feature/Max7219_Debug_LEDs.cpp
  53. 21
    28
      Marlin/src/feature/Max7219_Debug_LEDs.h
  54. 0
    2
      Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp
  55. 60
    0
      Marlin/src/gcode/feature/leds/M7219.cpp
  56. 4
    0
      Marlin/src/gcode/gcode.cpp
  57. 4
    0
      Marlin/src/gcode/gcode.h
  58. 6
    0
      Marlin/src/inc/SanityCheck.h

+ 12
- 11
Marlin/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 1
- 1
Marlin/src/Marlin.cpp Dosyayı Görüntüle

@@ -536,7 +536,7 @@ void idle(
536 536
 ) {
537 537
   #if ENABLED(MAX7219_DEBUG)
538 538
     Max7219_idle_tasks();
539
-  #endif  // MAX7219_DEBUG
539
+  #endif
540 540
 
541 541
   lcd_update();
542 542
 

+ 12
- 11
Marlin/src/config/default/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/Anet/A6/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/Anet/A8/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/Azteeg/X5GT/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/BIBO/TouchX/default/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h Dosyayı Görüntüle

@@ -1670,27 +1670,28 @@
1670 1670
 /**
1671 1671
  * MAX7219 Debug Matrix
1672 1672
  *
1673
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1674
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1675
- *
1676
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1677
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1673
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1674
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1678 1675
  */
1679 1676
 //#define MAX7219_DEBUG
1680 1677
 #if ENABLED(MAX7219_DEBUG)
1681
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1682
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1683
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1678
+  #define MAX7219_CLK_PIN   64
1679
+  #define MAX7219_DIN_PIN   57
1680
+  #define MAX7219_LOAD_PIN  44
1681
+
1682
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1683
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1684
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1684 1685
 
1685 1686
   /**
1686 1687
    * Sample debug features
1687 1688
    * If you add more debug displays, be careful to avoid conflicts!
1688 1689
    */
1689 1690
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1690
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1691
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1691
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1692
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1692 1693
 
1693
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1694
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1694 1695
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1695 1696
                                          // tweaks made to the configuration are affecting the printer in real-time.
1696 1697
 #endif

+ 12
- 11
Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/Cartesio/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/Creality/CR-10/Configuration_adv.h Dosyayı Görüntüle

@@ -1665,27 +1665,28 @@
1665 1665
 /**
1666 1666
  * MAX7219 Debug Matrix
1667 1667
  *
1668
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1669
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670
- *
1671
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1672
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1668
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1669
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1673 1670
  */
1674 1671
 //#define MAX7219_DEBUG
1675 1672
 #if ENABLED(MAX7219_DEBUG)
1676
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1677
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1678
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1673
+  #define MAX7219_CLK_PIN   64
1674
+  #define MAX7219_DIN_PIN   57
1675
+  #define MAX7219_LOAD_PIN  44
1676
+
1677
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1678
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1679
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1679 1680
 
1680 1681
   /**
1681 1682
    * Sample debug features
1682 1683
    * If you add more debug displays, be careful to avoid conflicts!
1683 1684
    */
1684 1685
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1685
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1686
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1687
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1687 1688
 
1688
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1689
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1689 1690
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1690 1691
                                          // tweaks made to the configuration are affecting the printer in real-time.
1691 1692
 #endif

+ 12
- 11
Marlin/src/config/examples/Creality/CR-10S/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/Creality/CR-10mini/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/Creality/CR-8/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/Creality/Ender-2/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/Creality/Ender-3/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/Creality/Ender-4/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/Felix/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 9
- 8
Marlin/src/config/examples/FolgerTech/i3-2020/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,11 +1662,8 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 #define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
@@ -1682,15 +1679,19 @@
1682 1679
 //#define MAX7219_DIN_PIN  P2_13 // for RAMPS E1 on Re-ARM  E1_DIR_PIN     P2_13
1683 1680
 //#define MAX7219_LOAD_PIN P2_08 // for RAMPS E1 on Re-ARM  E1_STEP_PIN    P2_08
1684 1681
 
1682
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1683
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1684
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1685
+
1685 1686
   /**
1686 1687
    * Sample debug features
1687 1688
    * If you add more debug displays, be careful to avoid conflicts!
1688 1689
    */
1689 1690
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1690
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1691
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1691
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1692
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1692 1693
 
1693
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1694
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1694 1695
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1695 1696
                                          // tweaks made to the configuration are affecting the printer in real-time.
1696 1697
 #endif

+ 12
- 11
Marlin/src/config/examples/Geeetech/Prusa i3 Pro C/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/Geeetech/Prusa i3 Pro W/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/JGAurora/A5/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/MakerParts/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/Malyan/M150/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/Malyan/M200/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/Micromake/C1/enhanced/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/Mks/Sbase/Configuration_adv.h Dosyayı Görüntüle

@@ -1670,27 +1670,28 @@
1670 1670
 /**
1671 1671
  * MAX7219 Debug Matrix
1672 1672
  *
1673
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1674
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1675
- *
1676
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1677
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1673
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1674
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1678 1675
  */
1679 1676
 //#define MAX7219_DEBUG
1680 1677
 #if ENABLED(MAX7219_DEBUG)
1681
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1682
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1683
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1678
+  #define MAX7219_CLK_PIN   64
1679
+  #define MAX7219_DIN_PIN   57
1680
+  #define MAX7219_LOAD_PIN  44
1681
+
1682
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1683
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1684
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1684 1685
 
1685 1686
   /**
1686 1687
    * Sample debug features
1687 1688
    * If you add more debug displays, be careful to avoid conflicts!
1688 1689
    */
1689 1690
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1690
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1691
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1691
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1692
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1692 1693
 
1693
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1694
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1694 1695
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1695 1696
                                          // tweaks made to the configuration are affecting the printer in real-time.
1696 1697
 #endif

+ 12
- 11
Marlin/src/config/examples/RigidBot/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/SCARA/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/Sanguinololu/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/TheBorg/Configuration_adv.h Dosyayı Görüntüle

@@ -1663,27 +1663,28 @@
1663 1663
 /**
1664 1664
  * MAX7219 Debug Matrix
1665 1665
  *
1666
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1667
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1668
- *
1669
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1670
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1666
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1667
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1671 1668
  */
1672 1669
 //#define MAX7219_DEBUG
1673 1670
 #if ENABLED(MAX7219_DEBUG)
1674
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1675
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1676
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1671
+  #define MAX7219_CLK_PIN   64
1672
+  #define MAX7219_DIN_PIN   57
1673
+  #define MAX7219_LOAD_PIN  44
1674
+
1675
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1676
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1677
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1677 1678
 
1678 1679
   /**
1679 1680
    * Sample debug features
1680 1681
    * If you add more debug displays, be careful to avoid conflicts!
1681 1682
    */
1682 1683
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1683
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1684
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1685
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1685 1686
 
1686
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1687
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1687 1688
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1688 1689
                                          // tweaks made to the configuration are affecting the printer in real-time.
1689 1690
 #endif

+ 12
- 11
Marlin/src/config/examples/TinyBoy2/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/UltiMachine/Archim2/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h Dosyayı Görüntüle

@@ -1665,27 +1665,28 @@
1665 1665
 /**
1666 1666
  * MAX7219 Debug Matrix
1667 1667
  *
1668
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1669
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670
- *
1671
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1672
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1668
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1669
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1673 1670
  */
1674 1671
 //#define MAX7219_DEBUG
1675 1672
 #if ENABLED(MAX7219_DEBUG)
1676
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1677
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1678
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1673
+  #define MAX7219_CLK_PIN   64
1674
+  #define MAX7219_DIN_PIN   57
1675
+  #define MAX7219_LOAD_PIN  44
1676
+
1677
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1678
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1679
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1679 1680
 
1680 1681
   /**
1681 1682
    * Sample debug features
1682 1683
    * If you add more debug displays, be careful to avoid conflicts!
1683 1684
    */
1684 1685
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1685
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1686
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1687
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1687 1688
 
1688
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1689
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1689 1690
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1690 1691
                                          // tweaks made to the configuration are affecting the printer in real-time.
1691 1692
 #endif

+ 12
- 11
Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration_adv.h Dosyayı Görüntüle

@@ -1664,27 +1664,28 @@
1664 1664
 /**
1665 1665
  * MAX7219 Debug Matrix
1666 1666
  *
1667
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1668
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1669
- *
1670
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1671
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1667
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1668
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1672 1669
  */
1673 1670
 //#define MAX7219_DEBUG
1674 1671
 #if ENABLED(MAX7219_DEBUG)
1675
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1676
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1677
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1672
+  #define MAX7219_CLK_PIN   64
1673
+  #define MAX7219_DIN_PIN   57
1674
+  #define MAX7219_LOAD_PIN  44
1675
+
1676
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1677
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1678
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1678 1679
 
1679 1680
   /**
1680 1681
    * Sample debug features
1681 1682
    * If you add more debug displays, be careful to avoid conflicts!
1682 1683
    */
1683 1684
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1684
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1685
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1685
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1686 1687
 
1687
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1688
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1688 1689
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1689 1690
                                          // tweaks made to the configuration are affecting the printer in real-time.
1690 1691
 #endif

+ 12
- 11
Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h Dosyayı Görüntüle

@@ -1664,27 +1664,28 @@
1664 1664
 /**
1665 1665
  * MAX7219 Debug Matrix
1666 1666
  *
1667
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1668
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1669
- *
1670
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1671
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1667
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1668
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1672 1669
  */
1673 1670
 //#define MAX7219_DEBUG
1674 1671
 #if ENABLED(MAX7219_DEBUG)
1675
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1676
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1677
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1672
+  #define MAX7219_CLK_PIN   64
1673
+  #define MAX7219_DIN_PIN   57
1674
+  #define MAX7219_LOAD_PIN  44
1675
+
1676
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1677
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1678
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1678 1679
 
1679 1680
   /**
1680 1681
    * Sample debug features
1681 1682
    * If you add more debug displays, be careful to avoid conflicts!
1682 1683
    */
1683 1684
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1684
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1685
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1685
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1686 1687
 
1687
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1688
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1688 1689
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1689 1690
                                          // tweaks made to the configuration are affecting the printer in real-time.
1690 1691
 #endif

+ 12
- 11
Marlin/src/config/examples/delta/FLSUN/kossel/Configuration_adv.h Dosyayı Görüntüle

@@ -1664,27 +1664,28 @@
1664 1664
 /**
1665 1665
  * MAX7219 Debug Matrix
1666 1666
  *
1667
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1668
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1669
- *
1670
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1671
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1667
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1668
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1672 1669
  */
1673 1670
 //#define MAX7219_DEBUG
1674 1671
 #if ENABLED(MAX7219_DEBUG)
1675
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1676
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1677
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1672
+  #define MAX7219_CLK_PIN   64
1673
+  #define MAX7219_DIN_PIN   57
1674
+  #define MAX7219_LOAD_PIN  44
1675
+
1676
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1677
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1678
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1678 1679
 
1679 1680
   /**
1680 1681
    * Sample debug features
1681 1682
    * If you add more debug displays, be careful to avoid conflicts!
1682 1683
    */
1683 1684
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1684
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1685
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1685
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1686 1687
 
1687
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1688
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1688 1689
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1689 1690
                                          // tweaks made to the configuration are affecting the printer in real-time.
1690 1691
 #endif

+ 12
- 11
Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h Dosyayı Görüntüle

@@ -1664,27 +1664,28 @@
1664 1664
 /**
1665 1665
  * MAX7219 Debug Matrix
1666 1666
  *
1667
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1668
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1669
- *
1670
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1671
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1667
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1668
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1672 1669
  */
1673 1670
 //#define MAX7219_DEBUG
1674 1671
 #if ENABLED(MAX7219_DEBUG)
1675
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1676
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1677
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1672
+  #define MAX7219_CLK_PIN   64
1673
+  #define MAX7219_DIN_PIN   57
1674
+  #define MAX7219_LOAD_PIN  44
1675
+
1676
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1677
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1678
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1678 1679
 
1679 1680
   /**
1680 1681
    * Sample debug features
1681 1682
    * If you add more debug displays, be careful to avoid conflicts!
1682 1683
    */
1683 1684
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1684
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1685
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1685
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1686 1687
 
1687
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1688
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1688 1689
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1689 1690
                                          // tweaks made to the configuration are affecting the printer in real-time.
1690 1691
 #endif

+ 12
- 11
Marlin/src/config/examples/delta/generic/Configuration_adv.h Dosyayı Görüntüle

@@ -1664,27 +1664,28 @@
1664 1664
 /**
1665 1665
  * MAX7219 Debug Matrix
1666 1666
  *
1667
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1668
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1669
- *
1670
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1671
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1667
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1668
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1672 1669
  */
1673 1670
 //#define MAX7219_DEBUG
1674 1671
 #if ENABLED(MAX7219_DEBUG)
1675
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1676
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1677
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1672
+  #define MAX7219_CLK_PIN   64
1673
+  #define MAX7219_DIN_PIN   57
1674
+  #define MAX7219_LOAD_PIN  44
1675
+
1676
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1677
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1678
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1678 1679
 
1679 1680
   /**
1680 1681
    * Sample debug features
1681 1682
    * If you add more debug displays, be careful to avoid conflicts!
1682 1683
    */
1683 1684
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1684
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1685
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1685
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1686 1687
 
1687
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1688
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1688 1689
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1689 1690
                                          // tweaks made to the configuration are affecting the printer in real-time.
1690 1691
 #endif

+ 12
- 11
Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h Dosyayı Görüntüle

@@ -1664,27 +1664,28 @@
1664 1664
 /**
1665 1665
  * MAX7219 Debug Matrix
1666 1666
  *
1667
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1668
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1669
- *
1670
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1671
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1667
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1668
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1672 1669
  */
1673 1670
 //#define MAX7219_DEBUG
1674 1671
 #if ENABLED(MAX7219_DEBUG)
1675
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1676
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1677
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1672
+  #define MAX7219_CLK_PIN   64
1673
+  #define MAX7219_DIN_PIN   57
1674
+  #define MAX7219_LOAD_PIN  44
1675
+
1676
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1677
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1678
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1678 1679
 
1679 1680
   /**
1680 1681
    * Sample debug features
1681 1682
    * If you add more debug displays, be careful to avoid conflicts!
1682 1683
    */
1683 1684
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1684
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1685
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1685
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1686 1687
 
1687
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1688
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1688 1689
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1689 1690
                                          // tweaks made to the configuration are affecting the printer in real-time.
1690 1691
 #endif

+ 12
- 11
Marlin/src/config/examples/delta/kossel_pro/Configuration_adv.h Dosyayı Görüntüle

@@ -1669,27 +1669,28 @@
1669 1669
 /**
1670 1670
  * MAX7219 Debug Matrix
1671 1671
  *
1672
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1673
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1674
- *
1675
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1676
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1672
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1673
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1677 1674
  */
1678 1675
 //#define MAX7219_DEBUG
1679 1676
 #if ENABLED(MAX7219_DEBUG)
1680
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1681
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1682
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1677
+  #define MAX7219_CLK_PIN   64
1678
+  #define MAX7219_DIN_PIN   57
1679
+  #define MAX7219_LOAD_PIN  44
1680
+
1681
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1682
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1683
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1683 1684
 
1684 1685
   /**
1685 1686
    * Sample debug features
1686 1687
    * If you add more debug displays, be careful to avoid conflicts!
1687 1688
    */
1688 1689
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1689
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1690
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1690
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1691
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1691 1692
 
1692
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1693
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1693 1694
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1694 1695
                                          // tweaks made to the configuration are affecting the printer in real-time.
1695 1696
 #endif

+ 12
- 11
Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h Dosyayı Görüntüle

@@ -1664,27 +1664,28 @@
1664 1664
 /**
1665 1665
  * MAX7219 Debug Matrix
1666 1666
  *
1667
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1668
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1669
- *
1670
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1671
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1667
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1668
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1672 1669
  */
1673 1670
 //#define MAX7219_DEBUG
1674 1671
 #if ENABLED(MAX7219_DEBUG)
1675
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1676
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1677
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1672
+  #define MAX7219_CLK_PIN   64
1673
+  #define MAX7219_DIN_PIN   57
1674
+  #define MAX7219_LOAD_PIN  44
1675
+
1676
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1677
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1678
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1678 1679
 
1679 1680
   /**
1680 1681
    * Sample debug features
1681 1682
    * If you add more debug displays, be careful to avoid conflicts!
1682 1683
    */
1683 1684
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1684
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1685
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1685
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1686 1687
 
1687
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1688
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1688 1689
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1689 1690
                                          // tweaks made to the configuration are affecting the printer in real-time.
1690 1691
 #endif

+ 12
- 11
Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 #define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/makibox/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h Dosyayı Görüntüle

@@ -1662,27 +1662,28 @@
1662 1662
 /**
1663 1663
  * MAX7219 Debug Matrix
1664 1664
  *
1665
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1666
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1667
- *
1668
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1669
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1665
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1666
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1670 1667
  */
1671 1668
 //#define MAX7219_DEBUG
1672 1669
 #if ENABLED(MAX7219_DEBUG)
1673
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1674
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1675
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1670
+  #define MAX7219_CLK_PIN   64
1671
+  #define MAX7219_DIN_PIN   57
1672
+  #define MAX7219_LOAD_PIN  44
1673
+
1674
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1675
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1676
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1676 1677
 
1677 1678
   /**
1678 1679
    * Sample debug features
1679 1680
    * If you add more debug displays, be careful to avoid conflicts!
1680 1681
    */
1681 1682
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1682
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1683
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1683
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1684 1685
 
1685
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1686
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1686 1687
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1687 1688
                                          // tweaks made to the configuration are affecting the printer in real-time.
1688 1689
 #endif

+ 12
- 11
Marlin/src/config/examples/wt150/Configuration_adv.h Dosyayı Görüntüle

@@ -1663,27 +1663,28 @@
1663 1663
 /**
1664 1664
  * MAX7219 Debug Matrix
1665 1665
  *
1666
- * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1667
- * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1668
- *
1669
- * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1670
- * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1666
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
1667
+ * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1671 1668
  */
1672 1669
 //#define MAX7219_DEBUG
1673 1670
 #if ENABLED(MAX7219_DEBUG)
1674
-  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1675
-  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1676
-  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1671
+  #define MAX7219_CLK_PIN   64
1672
+  #define MAX7219_DIN_PIN   57
1673
+  #define MAX7219_LOAD_PIN  44
1674
+
1675
+  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
1676
+  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
1677
+  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
1677 1678
 
1678 1679
   /**
1679 1680
    * Sample debug features
1680 1681
    * If you add more debug displays, be careful to avoid conflicts!
1681 1682
    */
1682 1683
   #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1683
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1684
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1684
+  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
1685
+  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
1685 1686
 
1686
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1687
+  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
1687 1688
                                          // If you experience stuttering, reboots, etc. this option can reveal how
1688 1689
                                          // tweaks made to the configuration are affecting the printer in real-time.
1689 1690
 #endif

+ 310
- 202
Marlin/src/feature/Max7219_Debug_LEDs.cpp Dosyayı Görüntüle

@@ -22,11 +22,9 @@
22 22
 
23 23
 /**
24 24
  * This module is off by default, but can be enabled to facilitate the display of
25
- * extra debug information during code development. It assumes the existence of a
26
- * Max7219 LED Matrix. A suitable device can be obtained on eBay similar to this:
27
- * http://www.ebay.com/itm/191781645249 for under $2.00 including shipping.
25
+ * extra debug information during code development.
28 26
  *
29
- * Just connect up +5v and GND to give it power, then connect up the pins assigned
27
+ * Just connect up 5V and GND to give it power, then connect up the pins assigned
30 28
  * in Configuration_adv.h. For example, on the Re-ARM you could use:
31 29
  *
32 30
  *   #define MAX7219_CLK_PIN   77
@@ -35,26 +33,14 @@
35 33
  *
36 34
  * Max7219_init() is called automatically at startup, and then there are a number of
37 35
  * support functions available to control the LEDs in the 8x8 grid.
38
- *
39
- * void Max7219_init();
40
- * void Max7219_PutByte(uint8_t data);
41
- * void Max7219(uint8_t reg, uint8_t data);
42
- * void Max7219_LED_On(uint8_t col, uint8_t row);
43
- * void Max7219_LED_Off(uint8_t col, uint8_t row);
44
- * void Max7219_LED_Toggle(uint8_t col, uint8_t row);
45
- * void Max7219_Clear_Row(uint8_t row);
46
- * void Max7219_Clear_Column(uint8_t col);
47
- * void Max7219_Set_Row(uint8_t row, uint8_t val);
48
- * void Max7219_Set_2_Rows(uint8_t row, uint16_t val);
49
- * void Max7219_Set_4_Rows(uint8_t row, uint32_t val);
50
- * void Max7219_Set_Column(uint8_t col, uint8_t val);
51
- * void Max7219_idle_tasks();
52 36
  */
53 37
 
54
-#include "../inc/MarlinConfig.h"
38
+#include "../inc/MarlinConfigPre.h"
55 39
 
56 40
 #if ENABLED(MAX7219_DEBUG)
57 41
 
42
+#define MAX7219_ERRORS // Disable to save 406 bytes of Program Memory
43
+
58 44
 #include "Max7219_Debug_LEDs.h"
59 45
 
60 46
 #include "../module/planner.h"
@@ -64,6 +50,38 @@
64 50
 
65 51
 static uint8_t LEDs[8] = { 0 };
66 52
 
53
+#ifndef MAX7219_ROTATE
54
+  #define MAX7219_ROTATE 0
55
+#endif
56
+#define _ROT ((MAX7219_ROTATE + 360) % 360)
57
+#if _ROT == 0
58
+  #define _ROW_ y
59
+  #define _COL_ x
60
+  #define XOR_7219(x, y) LEDs[y] ^= _BV(7 - x)
61
+  #define BIT_7219(x, y) TEST(LEDs[y], 7 - x)
62
+  #define SEND_7219(R,V) Max7219(max7219_reg_digit0 + R, V)
63
+#elif _ROT == 90
64
+  #define _ROW_ x
65
+  #define _COL_ y
66
+  #define XOR_7219(x, y) LEDs[x] ^= _BV(y)
67
+  #define BIT_7219(x, y) TEST(LEDs[x], y)
68
+  #define SEND_7219(R,V) Max7219(max7219_reg_digit0 + R, V)
69
+#elif _ROT == 180
70
+  #define _ROW_ y
71
+  #define _COL_ x
72
+  #define XOR_7219(x, y) LEDs[y] ^= _BV(x)
73
+  #define BIT_7219(x, y) TEST(LEDs[y], x)
74
+  #define SEND_7219(R,V) Max7219(max7219_reg_digit7 - R, V)
75
+#elif _ROT == 270
76
+  #define _ROW_ x
77
+  #define _COL_ y
78
+  #define XOR_7219(x, y) LEDs[x] ^= _BV(7 - y)
79
+  #define BIT_7219(x, y) TEST(LEDs[x], 7 - y)
80
+  #define SEND_7219(R,V) Max7219(max7219_reg_digit7 - R, V)
81
+#else
82
+  #error "MAX7219_ROTATE must be a multiple of +/- 90°."
83
+#endif
84
+
67 85
 #ifdef CPU_32_BIT
68 86
   // Approximate a 1µs delay on 32-bit ARM
69 87
   #define SIG_DELAY() DELAY_US(1)
@@ -73,6 +91,9 @@ static uint8_t LEDs[8] = { 0 };
73 91
 #endif
74 92
 
75 93
 void Max7219_PutByte(uint8_t data) {
94
+  #ifndef CPU_32_BIT
95
+    CRITICAL_SECTION_START;
96
+  #endif
76 97
   for (uint8_t i = 8; i--;) {
77 98
     SIG_DELAY();
78 99
     WRITE(MAX7219_CLK_PIN, LOW);       // tick
@@ -83,10 +104,16 @@ void Max7219_PutByte(uint8_t data) {
83 104
     SIG_DELAY();
84 105
     data <<= 1;
85 106
   }
107
+  #ifndef CPU_32_BIT
108
+    CRITICAL_SECTION_END;
109
+  #endif
86 110
 }
87 111
 
88 112
 void Max7219(const uint8_t reg, const uint8_t data) {
89 113
   SIG_DELAY();
114
+  #ifndef CPU_32_BIT
115
+    CRITICAL_SECTION_START;
116
+  #endif
90 117
   WRITE(MAX7219_LOAD_PIN, LOW);  // begin
91 118
   SIG_DELAY();
92 119
   Max7219_PutByte(reg);          // specify register
@@ -96,125 +123,168 @@ void Max7219(const uint8_t reg, const uint8_t data) {
96 123
   WRITE(MAX7219_LOAD_PIN, LOW);  // and tell the chip to load the data
97 124
   SIG_DELAY();
98 125
   WRITE(MAX7219_LOAD_PIN, HIGH);
126
+  #ifndef CPU_32_BIT
127
+    CRITICAL_SECTION_END;
128
+  #endif
99 129
   SIG_DELAY();
100 130
 }
101 131
 
102
-void Max7219_LED_Set(const uint8_t col, const uint8_t row, const bool on) {
103
-  if (row > 7 || col > 7) {
104
-    SERIAL_ECHOPAIR("??? Max7219_LED_Set(", (int)row);
105
-    SERIAL_ECHOPAIR(",", (int)col);
106
-    SERIAL_ECHOLNPGM(")");
107
-    return;
132
+#if ENABLED(MAX7219_NUMERIC)
133
+
134
+  // Draw an integer with optional leading zeros and optional decimal point
135
+  void Max7219_Print(const uint8_t start, int16_t value, uint8_t size, const bool leadzero=false, bool dec=false) {
136
+    constexpr uint8_t led_numeral[10] = { 0x7E, 0x60, 0x6D, 0x79, 0x63, 0x5B, 0x5F, 0x70, 0x7F, 0x7A },
137
+                      led_decimal = 0x80, led_minus = 0x01;
138
+
139
+    bool blank = false, neg = value < 0;
140
+    if (neg) value *= -1;
141
+    while (size--) {
142
+      const bool minus = neg && blank;
143
+      if (minus) neg = false;
144
+      Max7219(
145
+        max7219_reg_digit0 + start + size,
146
+        minus ? led_minus : blank ? 0x00 : led_numeral[value % 10] | (dec ? led_decimal : 0x00)
147
+      );
148
+      value /= 10;
149
+      if (!value && !leadzero) blank = true;
150
+      dec = false;
151
+    }
108 152
   }
109
-  if (TEST(LEDs[col], row) == on) return; // if LED is already on/off, leave alone
110
-  if (on) SBI(LEDs[col], row); else CBI(LEDs[col], row);
111
-  Max7219(8 - col, LEDs[col]);
112
-}
113 153
 
114
-void Max7219_LED_On(const uint8_t col, const uint8_t row) {
115
-  if (row > 7 || col > 7) {
116
-    SERIAL_ECHOPAIR("??? Max7219_LED_On(", (int)col);
117
-    SERIAL_ECHOPAIR(",", (int)row);
118
-    SERIAL_ECHOLNPGM(")");
119
-    return;
154
+  // Draw a float with a decimal point and optional digits
155
+  void Max7219_Print(const uint8_t start, const float value, const uint8_t pre_size, const uint8_t post_size, const bool leadzero=false) {
156
+    if (pre_size) Max7219_Print(start, value, pre_size, leadzero, !!post_size);
157
+    if (post_size) {
158
+      const int16_t after = ABS(value) * (10 ^ post_size);
159
+      Max7219_Print(start + pre_size, after, post_size, true);
160
+    }
120 161
   }
121
-  Max7219_LED_Set(col, row, true);
162
+
163
+#endif // MAX7219_NUMERIC
164
+
165
+inline void Max7219_Error(const char * const func, const int32_t v1, const int32_t v2=-1) {
166
+  #if ENABLED(MAX7219_ERRORS)
167
+    SERIAL_ECHOPGM("??? ");
168
+    serialprintPGM(func);
169
+    SERIAL_CHAR('(');
170
+    SERIAL_ECHO(v1);
171
+    if (v2 > 0) SERIAL_ECHOPAIR(", ", v2);
172
+    SERIAL_CHAR(')');
173
+    SERIAL_EOL();
174
+  #else
175
+    UNUSED(func); UNUSED(v1); UNUSED(v2);
176
+  #endif
122 177
 }
123 178
 
124
-void Max7219_LED_Off(const uint8_t col, const uint8_t row) {
125
-  if (row > 7 || col > 7) {
126
-    SERIAL_ECHOPAIR("??? Max7219_LED_Off(", (int)row);
127
-    SERIAL_ECHOPAIR(",", (int)col);
128
-    SERIAL_ECHOLNPGM(")");
129
-    return;
130
-  }
131
-  Max7219_LED_Set(col, row, false);
179
+inline uint8_t flipped(const uint8_t bits) {
180
+  uint8_t outbits = 0;
181
+  for (uint8_t b = 0; b < 8; b++)
182
+    if (bits & _BV(b)) outbits |= _BV(7 - b);
183
+  return outbits;
132 184
 }
133 185
 
134
-void Max7219_LED_Toggle(const uint8_t col, const uint8_t row) {
135
-  if (row > 7 || col > 7) {
136
-    SERIAL_ECHOPAIR("??? Max7219_LED_Toggle(", (int)row);
137
-    SERIAL_ECHOPAIR(",", (int)col);
138
-    SERIAL_ECHOLNPGM(")");
139
-    return;
140
-  }
141
-  if (TEST(LEDs[row], col))
142
-    Max7219_LED_Off(col, row);
143
-  else
144
-    Max7219_LED_On(col, row);
186
+// Modify a single LED bit and send the changed line
187
+void Max7219_LED_Set(const uint8_t x, const uint8_t y, const bool on) {
188
+  if (x > 7 || y > 7) return Max7219_Error(PSTR("Max7219_LED_Set"), x, y);
189
+  if (BIT_7219(x, y) == on) return;
190
+  XOR_7219(x, y);
191
+  SEND_7219(_ROW_, LEDs[_ROW_]);
145 192
 }
146 193
 
147
-void Max7219_Clear_Column(const uint8_t col) {
148
-  if (col > 7) {
149
-    SERIAL_ECHOPAIR("??? Max7219_Clear_Column(", (int)col);
150
-    SERIAL_ECHOLNPGM(")");
151
-    return;
152
-  }
153
-  LEDs[col] = 0;
154
-  Max7219(8 - col, LEDs[col]);
194
+void Max7219_LED_On(const uint8_t x, const uint8_t y) {
195
+  if (x > 7 || y > 7) return Max7219_Error(PSTR("Max7219_LED_On"), x, y);
196
+  Max7219_LED_Set(x, y, true);
155 197
 }
156 198
 
157
-void Max7219_Clear_Row(const uint8_t row) {
158
-  if (row > 7) {
159
-    SERIAL_ECHOPAIR("??? Max7219_Clear_Row(", (int)row);
160
-    SERIAL_ECHOLNPGM(")");
161
-    return;
162
-  }
163
-  for (uint8_t c = 0; c <= 7; c++)
164
-    Max7219_LED_Off(c, row);
199
+void Max7219_LED_Off(const uint8_t x, const uint8_t y) {
200
+  if (x > 7 || y > 7) return Max7219_Error(PSTR("Max7219_LED_Off"), x, y);
201
+  Max7219_LED_Set(x, y, false);
165 202
 }
166 203
 
167
-void Max7219_Set_Row(const uint8_t row, const uint8_t val) {
168
-  if (row > 7) {
169
-    SERIAL_ECHOPAIR("??? Max7219_Set_Row(", (int)row);
170
-    SERIAL_ECHOPAIR(",", (int)val);
171
-    SERIAL_ECHOLNPGM(")");
172
-    return;
173
-  }
174
-  for (uint8_t b = 0; b <= 7; b++)
175
-    if (TEST(val, b))
176
-      Max7219_LED_On(7 - b, row);
177
-    else
178
-      Max7219_LED_Off(7 - b, row);
204
+void Max7219_LED_Toggle(const uint8_t x, const uint8_t y) {
205
+  if (x > 7 || y > 7) return Max7219_Error(PSTR("Max7219_LED_Toggle"), x, y);
206
+  Max7219_LED_Set(x, y, !BIT_7219(x, y));
179 207
 }
180 208
 
181
-void Max7219_Set_2_Rows(const uint8_t row, const uint16_t val) {
182
-  if (row > 6) {
183
-    SERIAL_ECHOPAIR("??? Max7219_Set_2_Rows(", (int)row);
184
-    SERIAL_ECHOPAIR(",", (int)val);
185
-    SERIAL_ECHOLNPGM(")");
186
-    return;
187
-  }
188
-  Max7219_Set_Row(row + 1, (val >> 8) & 0xFF);
189
-  Max7219_Set_Row(row + 0, (val     ) & 0xFF);
209
+inline void _Max7219_Set_Reg(const uint8_t reg, const uint8_t val) {
210
+  LEDs[reg] = val;
211
+  SEND_7219(reg, val);
190 212
 }
191 213
 
192
-void Max7219_Set_4_Rows(const uint8_t row, const uint32_t val) {
193
-  if (row > 4) {
194
-    SERIAL_ECHOPAIR("??? Max7219_Set_4_Rows(", (int)row);
195
-    SERIAL_ECHOPAIR(",", (long)val);
196
-    SERIAL_ECHOLNPGM(")");
197
-    return;
198
-  }
199
-  Max7219_Set_Row(row + 3, (val >> 24) & 0xFF);
200
-  Max7219_Set_Row(row + 2, (val >> 16) & 0xFF);
201
-  Max7219_Set_Row(row + 1, (val >>  8) & 0xFF);
202
-  Max7219_Set_Row(row + 0, (val      ) & 0xFF);
214
+void Max7219_Set_Row(const uint8_t _ROW_, const uint8_t val) {
215
+  if (_ROW_ > 7) return Max7219_Error(PSTR("Max7219_Set_Row"), _ROW_);
216
+  #if _ROT == 90
217
+    for (uint8_t _COL_ = 0; _COL_ <= 7; _COL_++) Max7219_LED_Set(7 - _COL_, _ROW_, TEST(val, _COL_));
218
+  #elif _ROT == 180
219
+    _Max7219_Set_Reg(_ROW_, flipped(val));
220
+  #elif _ROT == 270
221
+    for (uint8_t _COL_ = 0; _COL_ <= 7; _COL_++) Max7219_LED_Set(_COL_, _ROW_, TEST(val, _COL_));
222
+  #else
223
+    _Max7219_Set_Reg(_ROW_, val);
224
+  #endif
203 225
 }
204 226
 
205
-void Max7219_Set_Column(const uint8_t col, const uint8_t val) {
206
-  if (col > 7) {
207
-    SERIAL_ECHOPAIR("??? Max7219_Column(", (int)col);
208
-    SERIAL_ECHOPAIR(",", (int)val);
209
-    SERIAL_ECHOLNPGM(")");
210
-    return;
211
-  }
212
-  LEDs[col] = val;
213
-  Max7219(8 - col, LEDs[col]);
227
+void Max7219_Clear_Row(const uint8_t _ROW_) {
228
+  if (_ROW_ > 7) return Max7219_Error(PSTR("Max7219_Clear_Row"), _ROW_);
229
+  #if _ROT == 90 || _ROT == 270
230
+    for (uint8_t _COL_ = 0; _COL_ <= 7; _COL_++) Max7219_LED_Off(_COL_, _ROW_);
231
+  #else
232
+    _Max7219_Set_Reg(_ROW_, 0);
233
+  #endif
234
+}
235
+
236
+void Max7219_Set_Column(const uint8_t _COL_, const uint8_t val) {
237
+  if (_COL_ > 7) return Max7219_Error(PSTR("Max7219_Set_Column"), _COL_);
238
+  #if _ROT == 90
239
+    _Max7219_Set_Reg(_COL_, val);
240
+  #elif _ROT == 180
241
+    for (uint8_t _ROW_ = 0; _ROW_ <= 7; _ROW_++) Max7219_LED_Set(_COL_, _ROW_, TEST(val, _ROW_));
242
+  #elif _ROT == 270
243
+    _Max7219_Set_Reg(_COL_, flipped(val));
244
+  #else
245
+    for (uint8_t _ROW_ = 0; _ROW_ <= 7; _ROW_++) Max7219_LED_Set(_COL_, _ROW_, TEST(val, _ROW_));
246
+  #endif
247
+}
248
+
249
+void Max7219_Clear_Column(const uint8_t _COL_) {
250
+  if (_COL_ > 7) return Max7219_Error(PSTR("Max7219_Clear_Column"), _COL_);
251
+  #if _ROT == 90 || _ROT == 270
252
+    _Max7219_Set_Reg(_COL_, 0);
253
+  #else
254
+    for (uint8_t _ROW_ = 0; _ROW_ <= 7; _ROW_++) Max7219_LED_Off(_COL_, _ROW_);
255
+  #endif
256
+}
257
+
258
+void Max7219_Set_2_Rows(const uint8_t y, uint16_t val) {
259
+  if (y > 6) return Max7219_Error(PSTR("Max7219_Set_2_Rows"), y, val);
260
+  Max7219_Set_Row(y + 0, val & 0xFF); val >>= 8;
261
+  Max7219_Set_Row(y + 1, val & 0xFF);
262
+}
263
+
264
+void Max7219_Set_4_Rows(const uint8_t y, uint32_t val) {
265
+  if (y > 4) return Max7219_Error(PSTR("Max7219_Set_4_Rows"), y, val);
266
+  Max7219_Set_Row(y + 0, val & 0xFF); val >>= 8;
267
+  Max7219_Set_Row(y + 1, val & 0xFF); val >>= 8;
268
+  Max7219_Set_Row(y + 2, val & 0xFF); val >>= 8;
269
+  Max7219_Set_Row(y + 3, val & 0xFF);
270
+}
271
+
272
+void Max7219_Set_2_Columns(const uint8_t x, uint16_t val) {
273
+  if (x > 6) return Max7219_Error(PSTR("Max7219_Set_2_Columns"), x, val);
274
+  Max7219_Set_Column(x + 0, val & 0xFF); val >>= 8;
275
+  Max7219_Set_Column(x + 1, val & 0xFF);
276
+}
277
+
278
+void Max7219_Set_4_Columns(const uint8_t x, uint32_t val) {
279
+  if (x > 4) return Max7219_Error(PSTR("Max7219_Set_4_Columns"), x, val);
280
+  Max7219_Set_Column(x + 0, val & 0xFF); val >>= 8;
281
+  Max7219_Set_Column(x + 1, val & 0xFF); val >>= 8;
282
+  Max7219_Set_Column(x + 2, val & 0xFF); val >>= 8;
283
+  Max7219_Set_Column(x + 3, val & 0xFF);
214 284
 }
215 285
 
216 286
 void Max7219_register_setup() {
217
-  //initiation of the max 7219
287
+  // Initialize the Max7219
218 288
   Max7219(max7219_reg_scanLimit, 0x07);
219 289
   Max7219(max7219_reg_decodeMode, 0x00);       // using an led matrix (not digits)
220 290
   Max7219(max7219_reg_shutdown, 0x01);         // not in shutdown mode
@@ -223,135 +293,173 @@ void Max7219_register_setup() {
223 293
                                                // range: 0x00 to 0x0F
224 294
 }
225 295
 
226
-void Max7219_init() {
227
-  uint8_t i, x, y;
296
+#ifdef MAX7219_INIT_TEST
297
+#if (MAX7219_INIT_TEST + 0) == 2
298
+
299
+  inline void Max7219_spiral(const bool on, const uint16_t del) {
300
+    constexpr int8_t way[] = { 1, 0, 0, 1, -1, 0, 0, -1 };
301
+    int8_t px = 0, py = 0, dir = 0;
302
+    for (uint8_t i = 64; i--;) {
303
+      Max7219_LED_Set(px, py, on);
304
+      delay(del);
305
+      const int8_t x = px + way[dir], y = py + way[dir + 1];
306
+      if (!WITHIN(x, 0, 7) || !WITHIN(y, 0, 7) || BIT_7219(x, y) == on) dir = (dir + 2) & 0x7;
307
+      px += way[dir]; py += way[dir + 1];
308
+    }
309
+  }
310
+
311
+#else
228 312
 
313
+  inline void Max7219_colset(const uint8_t x, const bool on) {
314
+    for (uint8_t y = 0; y <= 7; y++) Max7219_LED_Set(x, y, on);
315
+  }
316
+  inline void Max7219_sweep(const int8_t dir, const uint16_t ms, const bool on) {
317
+    uint8_t x = dir > 0 ? 0 : 7;
318
+    for (uint8_t i = 8; i--; x += dir) {
319
+      Max7219_Set_Column(x, on ? 0xFF : 0x00);
320
+      delay(ms);
321
+    }
322
+  }
323
+
324
+#endif
325
+#endif // MAX7219_INIT_TEST
326
+
327
+void Max7219_init() {
229 328
   SET_OUTPUT(MAX7219_DIN_PIN);
230 329
   SET_OUTPUT(MAX7219_CLK_PIN);
231
-
232 330
   OUT_WRITE(MAX7219_LOAD_PIN, HIGH);
233 331
   delay(1);
234 332
 
235 333
   Max7219_register_setup();
236 334
 
237
-  for (i = 0; i <= 7; i++) {      // empty registers, turn all LEDs off
335
+  for (uint8_t i = 0; i <= 7; i++) {      // Empty registers to turn all LEDs off
238 336
     LEDs[i] = 0x00;
239
-    Max7219(i + 1, 0);
337
+    Max7219(max7219_reg_digit0 + i, 0);
240 338
   }
241 339
 
242
-  for (x = 0; x <= 7; x++)        // Do an aesthetically pleasing pattern to fully test
243
-    for (y = 0; y <= 7; y++) {    // the Max7219 module and LEDs. First, turn them
244
-      Max7219_LED_On(y, x);       // all on.
245
-      delay(3);
246
-    }
340
+  #ifdef MAX7219_INIT_TEST
341
+    #if (MAX7219_INIT_TEST + 0) == 2
342
+      Max7219_spiral(true, 8);
343
+      delay(150);
344
+      Max7219_spiral(false, 8);
345
+    #else
346
+      // Do an aesthetically-pleasing pattern to fully test the Max7219 module and LEDs.
347
+      // Light up and turn off columns, both forward and backward.
348
+      Max7219_sweep(1, 20, true);
349
+      Max7219_sweep(1, 20, false);
350
+      delay(150);
351
+      Max7219_sweep(-1, 20, true);
352
+      Max7219_sweep(-1, 20, false);
353
+    #endif
354
+  #endif
355
+}
247 356
 
248
-  for (x = 0; x <= 7; x++)        // Now, turn them all off.
249
-    for (y = 0; y <= 7; y++) {
250
-      Max7219_LED_Off(y, x);
251
-      delay(3);                   // delay() is OK here. Max7219_init() is only called from
252
-    }                             // setup() and nothing is running yet.
357
+/**
358
+ * This code demonstrates some simple debugging using a single 8x8 LED Matrix. If your feature could
359
+ * benefit from matrix display, add its code here. Very little processing is required, so the 7219 is
360
+ * ideal for debugging when realtime feedback is important but serial output can't be used.
361
+ */
253 362
 
254
-  delay(150);
363
+// Apply changes to update a marker
364
+inline void Max7219_Mark16(const uint8_t y, const uint8_t v1, const uint8_t v2) {
365
+  Max7219_LED_Off(v1 & 0x7, y + (v1 >= 8));
366
+   Max7219_LED_On(v2 & 0x7, y + (v2 >= 8));
367
+}
255 368
 
256
-  for (x = 8; x--;)               // Now, do the same thing from the opposite direction
257
-    for (y = 0; y <= 7; y++) {
258
-      Max7219_LED_On(y, x);
259
-      delay(2);
260
-    }
369
+// Apply changes to update a tail-to-head range
370
+inline void Max7219_Range16(const uint8_t y, const uint8_t ot, const uint8_t nt, const uint8_t oh, const uint8_t nh) {
371
+  if (ot != nt) for (uint8_t n = ot & 0xF; n != (nt & 0xF) && n != (nh & 0xF); n = (n + 1) & 0xF)
372
+    Max7219_LED_Off(n & 0x7, y + (n >= 8));
373
+  if (oh != nh) for (uint8_t n = (oh + 1) & 0xF; n != ((nh + 1) & 0xF); n = (n + 1) & 0xF)
374
+     Max7219_LED_On(n & 0x7, y + (n >= 8));
375
+}
261 376
 
262
-  for (x = 8; x--;)
263
-    for (y = 0; y <= 7; y++) {
264
-      Max7219_LED_Off(y, x);
265
-      delay(2);
266
-    }
377
+// Apply changes to update a quantity
378
+inline void Max7219_Quantity16(const uint8_t y, const uint8_t ov, const uint8_t nv) {
379
+  for (uint8_t i = MIN(nv, ov); i < MAX(nv, ov); i++)
380
+    Max7219_LED_Set(i >> 1, y + (i & 1), nv >= ov);
267 381
 }
268 382
 
269
-/**
270
- * These are sample debug features to demonstrate the usage of the 8x8 LED Matrix for debug purposes.
271
- * There is very little CPU burden added to the system by displaying information within the idle()
272
- * task.
273
- *
274
- * But with that said, if your debugging can be facilitated by making calls into the library from
275
- * other places in the code, feel free to do it.  The CPU burden for a few calls to toggle an LED
276
- * or clear a row is not very significant.
277
- */
278 383
 void Max7219_idle_tasks() {
279
-  #if MAX7219_DEBUG_STEPPER_HEAD || MAX7219_DEBUG_STEPPER_TAIL || MAX7219_DEBUG_STEPPER_QUEUE
280
-    CRITICAL_SECTION_START;
281
-    #if MAX7219_DEBUG_STEPPER_HEAD || MAX7219_DEBUG_STEPPER_QUEUE
384
+  #define MAX7219_USE_HEAD (defined(MAX7219_DEBUG_PLANNER_HEAD) || defined(MAX7219_DEBUG_PLANNER_QUEUE))
385
+  #define MAX7219_USE_TAIL (defined(MAX7219_DEBUG_PLANNER_TAIL) || defined(MAX7219_DEBUG_PLANNER_QUEUE))
386
+  #if MAX7219_USE_HEAD || MAX7219_USE_TAIL
387
+    #ifndef CPU_32_BIT
388
+      CRITICAL_SECTION_START;
389
+    #endif
390
+    #if MAX7219_USE_HEAD
282 391
       const uint8_t head = planner.block_buffer_head;
283 392
     #endif
284
-    #if MAX7219_DEBUG_STEPPER_TAIL || MAX7219_DEBUG_STEPPER_QUEUE
393
+    #if MAX7219_USE_TAIL
285 394
       const uint8_t tail = planner.block_buffer_tail;
286 395
     #endif
287
-    CRITICAL_SECTION_END;
396
+    #ifndef CPU_32_BIT
397
+      CRITICAL_SECTION_END;
398
+    #endif
399
+  #endif
400
+
401
+  #if ENABLED(MAX7219_DEBUG_PRINTER_ALIVE)
402
+    static uint8_t refresh_cnt; // = 0
403
+    constexpr uint16_t refresh_limit = 5;
404
+    static millis_t next_blink = 0;
405
+    const millis_t ms = millis();
406
+    const bool do_blink = ELAPSED(ms, next_blink);
407
+  #else
408
+    static uint16_t refresh_cnt; // = 0
409
+    constexpr bool do_blink = true;
410
+    constexpr uint16_t refresh_limit = 50000;
288 411
   #endif
289 412
 
290
-  static uint16_t refresh_cnt = 0;  // The Max7219 circuit boards available for several dollars on eBay
291
-  if (refresh_cnt++ > 50000) {      // are vulnerable to electrical noise, especially with long wires
292
-    Max7219_register_setup();       // next to high current wires. If the display becomes corrupted due
293
-    Max7219_LED_Toggle(7, 0);       // to electrical noise, this will fix it within a couple of seconds.
413
+  // Some Max7219 units are vulnerable to electrical noise, especially
414
+  // with long wires next to high current wires. If the display becomes
415
+  // corrupted, this will fix it within a couple seconds.
416
+  if (do_blink && ++refresh_cnt >= refresh_limit) {
294 417
     refresh_cnt = 0;
418
+    Max7219_register_setup();
295 419
   }
296 420
 
297 421
   #if ENABLED(MAX7219_DEBUG_PRINTER_ALIVE)
298
-    static millis_t next_blink = 0;
299
-    if (ELAPSED(millis(), next_blink)) {
422
+    if (do_blink) {
300 423
       Max7219_LED_Toggle(7, 7);
301
-      next_blink = millis() + 750;
424
+      next_blink = ms + 1000;
302 425
     }
303 426
   #endif
304 427
 
305
-  #ifdef MAX7219_DEBUG_STEPPER_HEAD
306
-    static int16_t last_head_cnt = 0;
307
-    if (last_head_cnt != head) {
308
-      if (last_head_cnt < 8)
309
-        Max7219_LED_Off(MAX7219_DEBUG_STEPPER_HEAD, last_head_cnt);
310
-      else
311
-        Max7219_LED_Off(MAX7219_DEBUG_STEPPER_HEAD + 1, last_head_cnt - 8);
428
+  #if defined(MAX7219_DEBUG_PLANNER_HEAD) && defined(MAX7219_DEBUG_PLANNER_TAIL) && MAX7219_DEBUG_PLANNER_HEAD == MAX7219_DEBUG_PLANNER_TAIL
429
+
430
+    static int16_t last_head_cnt = 0xF, last_tail_cnt = 0xF;
312 431
 
432
+    if (last_head_cnt != head || last_tail_cnt != tail) {
433
+      Max7219_Range16(MAX7219_DEBUG_PLANNER_HEAD, last_tail_cnt, tail, last_head_cnt, head);
313 434
       last_head_cnt = head;
314
-      if (head < 8)
315
-        Max7219_LED_On(MAX7219_DEBUG_STEPPER_HEAD, head);
316
-      else
317
-        Max7219_LED_On(MAX7219_DEBUG_STEPPER_HEAD + 1, head - 8);
435
+      last_tail_cnt = tail;
318 436
     }
319
-  #endif
320 437
 
321
-  #ifdef MAX7219_DEBUG_STEPPER_TAIL
322
-    static int16_t last_tail_cnt = 0;
323
-    if (last_tail_cnt != tail) {
324
-      if (last_tail_cnt < 8)
325
-        Max7219_LED_Off(MAX7219_DEBUG_STEPPER_TAIL, last_tail_cnt);
326
-      else
327
-        Max7219_LED_Off(MAX7219_DEBUG_STEPPER_TAIL + 1, last_tail_cnt - 8);
438
+  #else
439
+
440
+    #ifdef MAX7219_DEBUG_PLANNER_HEAD
441
+      static int16_t last_head_cnt = 0x1;
442
+      if (last_head_cnt != head) {
443
+        Max7219_Mark16(MAX7219_DEBUG_PLANNER_HEAD, last_head_cnt, head);
444
+        last_head_cnt = head;
445
+      }
446
+    #endif
447
+
448
+    #ifdef MAX7219_DEBUG_PLANNER_TAIL
449
+      static int16_t last_tail_cnt = 0x1;
450
+      if (last_tail_cnt != tail) {
451
+        Max7219_Mark16(MAX7219_DEBUG_PLANNER_TAIL, last_tail_cnt, tail);
452
+        last_tail_cnt = tail;
453
+      }
454
+    #endif
328 455
 
329
-      last_tail_cnt = tail;
330
-      if (tail < 8)
331
-        Max7219_LED_On(MAX7219_DEBUG_STEPPER_TAIL, tail);
332
-      else
333
-        Max7219_LED_On(MAX7219_DEBUG_STEPPER_TAIL + 1, tail - 8);
334
-    }
335 456
   #endif
336 457
 
337
-  #ifdef MAX7219_DEBUG_STEPPER_QUEUE
458
+  #ifdef MAX7219_DEBUG_PLANNER_QUEUE
338 459
     static int16_t last_depth = 0;
339
-    int16_t current_depth = head - tail;
340
-    if (current_depth != last_depth) {  // usually, no update will be needed.
341
-      if (current_depth < 0) current_depth += BLOCK_BUFFER_SIZE;
342
-      NOMORE(current_depth, BLOCK_BUFFER_SIZE);
343
-      NOMORE(current_depth, 16);        // if the BLOCK_BUFFER_SIZE is greater than 16, two lines
344
-                                        // of LEDs is enough to see if the buffer is draining
345
-
346
-      const uint8_t st = MIN(current_depth, last_depth),
347
-                    en = MAX(current_depth, last_depth);
348
-      if (current_depth < last_depth)
349
-        for (uint8_t i = st; i <= en; i++)   // clear the highest order LEDs
350
-          Max7219_LED_Off(MAX7219_DEBUG_STEPPER_QUEUE + (i & 1), i / 2);
351
-      else
352
-        for (uint8_t i = st; i <= en; i++)   // set the LEDs to current depth
353
-          Max7219_LED_On(MAX7219_DEBUG_STEPPER_QUEUE + (i & 1), i / 2);
354
-
460
+    const int16_t current_depth = (head - tail + BLOCK_BUFFER_SIZE) & (BLOCK_BUFFER_SIZE - 1) & 0xF;
461
+    if (current_depth != last_depth) {
462
+      Max7219_Quantity16(MAX7219_DEBUG_PLANNER_QUEUE, last_depth, current_depth);
355 463
       last_depth = current_depth;
356 464
     }
357 465
   #endif

+ 21
- 28
Marlin/src/feature/Max7219_Debug_LEDs.h Dosyayı Görüntüle

@@ -22,11 +22,9 @@
22 22
 
23 23
 /**
24 24
  * This module is off by default, but can be enabled to facilitate the display of
25
- * extra debug information during code development. It assumes the existence of a
26
- * Max7219 LED Matrix. A suitable device can be obtained on eBay similar to this:
27
- * http://www.ebay.com/itm/191781645249 for under $2.00 including shipping.
25
+ * extra debug information during code development.
28 26
  *
29
- * Just connect up +5v and GND to give it power, then connect up the pins assigned
27
+ * Just connect up 5V and GND to give it power, then connect up the pins assigned
30 28
  * in Configuration_adv.h. For example, on the Re-ARM you could use:
31 29
  *
32 30
  *   #define MAX7219_CLK_PIN   77
@@ -35,28 +33,13 @@
35 33
  *
36 34
  * Max7219_init() is called automatically at startup, and then there are a number of
37 35
  * support functions available to control the LEDs in the 8x8 grid.
38
- *
39
- * void Max7219_init();
40
- * void Max7219_PutByte(uint8_t data);
41
- * void Max7219(uint8_t reg, uint8_t data);
42
- * void Max7219_LED_Set(uint8_t row, uint8_t col, bool on);
43
- * void Max7219_LED_On(uint8_t col, uint8_t row);
44
- * void Max7219_LED_Off(uint8_t col, uint8_t row);
45
- * void Max7219_LED_Toggle(uint8_t row, uint8_t col);
46
- * void Max7219_Clear_Row(uint8_t row);
47
- * void Max7219_Clear_Column(uint8_t col);
48
- * void Max7219_Set_Row(uint8_t row, uint8_t val);
49
- * void Max7219_Set_2_Rows(uint8_t row, uint16_t val);
50
- * void Max7219_Set_4_Rows(uint8_t row, uint32_t val);
51
- * void Max7219_Set_Column(uint8_t col, uint8_t val);
52
- * void Max7219_idle_tasks();
53 36
  */
54 37
 
55 38
 #ifndef __MAX7219_DEBUG_LEDS_H__
56 39
 #define __MAX7219_DEBUG_LEDS_H__
57 40
 
58 41
 //
59
-// define max7219 registers
42
+// MAX7219 registers
60 43
 //
61 44
 #define max7219_reg_noop        0x00
62 45
 #define max7219_reg_digit0      0x01
@@ -68,23 +51,33 @@
68 51
 #define max7219_reg_digit6      0x07
69 52
 #define max7219_reg_digit7      0x08
70 53
 
71
-#define max7219_reg_intensity   0x0A
72
-#define max7219_reg_displayTest 0x0F
73 54
 #define max7219_reg_decodeMode  0x09
55
+#define max7219_reg_intensity   0x0A
74 56
 #define max7219_reg_scanLimit   0x0B
75 57
 #define max7219_reg_shutdown    0x0C
58
+#define max7219_reg_displayTest 0x0F
76 59
 
77 60
 void Max7219_init();
78 61
 void Max7219_PutByte(uint8_t data);
62
+
63
+// Set a single register (e.g., a whole native row)
79 64
 void Max7219(const uint8_t reg, const uint8_t data);
80
-void Max7219_LED_Set(const uint8_t row, const uint8_t col, const bool on);
81
-void Max7219_LED_On(const uint8_t row, const uint8_t col);
82
-void Max7219_LED_Off(const uint8_t row, const uint8_t col);
83
-void Max7219_LED_Toggle(const uint8_t row, const uint8_t col);
84
-void Max7219_Clear_Row(const uint8_t row);
65
+
66
+// Set a single LED by XY coordinate
67
+void Max7219_LED_Set(const uint8_t x, const uint8_t y, const bool on);
68
+void Max7219_LED_On(const uint8_t x, const uint8_t y);
69
+void Max7219_LED_Off(const uint8_t x, const uint8_t y);
70
+void Max7219_LED_Toggle(const uint8_t x, const uint8_t y);
71
+
72
+// Set all 8 LEDs in a single column
73
+void Max7219_Set_Column(const uint8_t col, const uint8_t val);
85 74
 void Max7219_Clear_Column(const uint8_t col);
75
+
76
+// Set all 8 LEDs in a single row
86 77
 void Max7219_Set_Row(const uint8_t row, const uint8_t val);
87
-void Max7219_Set_Column(const uint8_t col, const uint8_t val);
78
+void Max7219_Clear_Row(const uint8_t row);
79
+
80
+// Apply custom code to update the matrix
88 81
 void Max7219_idle_tasks();
89 82
 
90 83
 #endif // __MAX7219_DEBUG_LEDS_H__

+ 0
- 2
Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp Dosyayı Görüntüle

@@ -41,8 +41,6 @@
41 41
   #include "../../../feature/bedlevel/bedlevel.h"
42 42
   #include "../../../libs/least_squares_fit.h"
43 43
 
44
-  #include "../../../feature/Max7219_Debug_LEDs.h"
45
-
46 44
   #include <math.h>
47 45
 
48 46
   #define UBL_G29_P31

+ 60
- 0
Marlin/src/gcode/feature/leds/M7219.cpp Dosyayı Görüntüle

@@ -0,0 +1,60 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
+ *
5
+ * Based on Sprinter and grbl.
6
+ * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+
23
+#include "../../../inc/MarlinConfigPre.h"
24
+
25
+#if ENABLED(MAX7219_GCODE)
26
+
27
+#include "../../gcode.h"
28
+#include "../../../feature/Max7219_Debug_LEDs.h"
29
+
30
+/**
31
+ * M7219: Control the Max7219 LED matrix
32
+ * 
33
+ *  I         - Initialize (clear) the matrix
34
+ *  C<column> - Set a column to the 8-bit value V
35
+ *  R<row>    - Set a row to the 8-bit value V
36
+ *  X<pos>    - X position of an LED to set or toggle
37
+ *  Y<pos>    - Y position of an LED to set or toggle
38
+ *  V<value>  - The 8-bit value or on/off state to set
39
+ */
40
+void GcodeSuite::M7219() {
41
+  if (parser.seen('I'))
42
+    for (uint8_t r = 0; r < 8; r++) Max7219_Set_Row(r, 0);
43
+  else if (parser.seenval('R')) {
44
+    const uint8_t r = parser.value_int();
45
+    Max7219_Set_Row(r, parser.byteval('V'));
46
+  }
47
+  else if (parser.seenval('C')) {
48
+    const uint8_t c = parser.value_int();
49
+    Max7219_Set_Column(c, parser.byteval('V'));
50
+  }
51
+  else if (parser.seenval('X') || parser.seenval('Y')) {
52
+    const uint8_t x = parser.byteval('X'), y = parser.byteval('Y');
53
+    if (parser.seenval('V'))
54
+      Max7219_LED_Set(x, y, parser.boolval('V'));
55
+    else
56
+      Max7219_LED_Toggle(x, y);
57
+  }
58
+}
59
+
60
+#endif // MAX7219_GCODE

+ 4
- 0
Marlin/src/gcode/gcode.cpp Dosyayı Görüntüle

@@ -599,6 +599,10 @@ void GcodeSuite::process_parsed_command(
599 599
         case 702: M702(); break;                                  // M702: Unload Filament
600 600
       #endif
601 601
 
602
+      #if ENABLED(MAX7219_GCODE)
603
+        case 7219: M7219(); break;                                // M7219: Set LEDs, columns, and rows
604
+      #endif
605
+
602 606
       #if ENABLED(LIN_ADVANCE)
603 607
         case 900: M900(); break;                                  // M900: Set advance K factor.
604 608
       #endif

+ 4
- 0
Marlin/src/gcode/gcode.h Dosyayı Görüntüle

@@ -727,6 +727,10 @@ private:
727 727
     static void M702();
728 728
   #endif
729 729
 
730
+  #if ENABLED(MAX7219_GCODE)
731
+    static void M7219();
732
+  #endif
733
+
730 734
   #if HAS_BED_PROBE
731 735
     static void M851();
732 736
   #endif

+ 6
- 0
Marlin/src/inc/SanityCheck.h Dosyayı Görüntüle

@@ -283,6 +283,12 @@
283 283
   #error "JUNCTION_ACCELERATION_FACTOR is obsolete. Delete it from Configuration_adv.h."
284 284
 #elif defined(JUNCTION_ACCELERATION)
285 285
   #error "JUNCTION_ACCELERATION is obsolete. Delete it from Configuration_adv.h."
286
+#elif defined(MAX7219_DEBUG_STEPPER_HEAD)
287
+  #error "MAX7219_DEBUG_STEPPER_HEAD is now MAX7219_DEBUG_PLANNER_HEAD. Please update your configuration."
288
+#elif defined(MAX7219_DEBUG_STEPPER_TAIL)
289
+  #error "MAX7219_DEBUG_STEPPER_TAIL is now MAX7219_DEBUG_PLANNER_TAIL. Please update your configuration."
290
+#elif defined(MAX7219_DEBUG_STEPPER_QUEUE)
291
+  #error "MAX7219_DEBUG_STEPPER_QUEUE is now MAX7219_DEBUG_PLANNER_QUEUE. Please update your configuration."
286 292
 #endif
287 293
 
288 294
 #define BOARD_MKS_13     -47

Loading…
İptal
Kaydet