Browse Source

Add MAX7219 reverse units option (#11860)

Roxy-3D 6 years ago
parent
commit
d3d6be8210
58 changed files with 64 additions and 4 deletions
  1. 1
    0
      Marlin/Configuration_adv.h
  2. 1
    0
      Marlin/src/config/default/Configuration_adv.h
  3. 1
    0
      Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h
  4. 1
    0
      Marlin/src/config/examples/Anet/A2/Configuration_adv.h
  5. 1
    0
      Marlin/src/config/examples/Anet/A2plus/Configuration_adv.h
  6. 1
    0
      Marlin/src/config/examples/Anet/A6/Configuration_adv.h
  7. 1
    0
      Marlin/src/config/examples/Anet/A8/Configuration_adv.h
  8. 1
    1
      Marlin/src/config/examples/Azteeg/X5GT/Configuration_adv.h
  9. 1
    0
      Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration_adv.h
  10. 1
    0
      Marlin/src/config/examples/BIBO/TouchX/default/Configuration_adv.h
  11. 1
    0
      Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h
  12. 1
    0
      Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h
  13. 1
    0
      Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h
  14. 1
    0
      Marlin/src/config/examples/Cartesio/Configuration_adv.h
  15. 1
    0
      Marlin/src/config/examples/Creality/CR-10/Configuration_adv.h
  16. 1
    0
      Marlin/src/config/examples/Creality/CR-10S/Configuration_adv.h
  17. 1
    0
      Marlin/src/config/examples/Creality/CR-10mini/Configuration_adv.h
  18. 1
    0
      Marlin/src/config/examples/Creality/CR-8/Configuration_adv.h
  19. 1
    0
      Marlin/src/config/examples/Creality/Ender-2/Configuration_adv.h
  20. 1
    0
      Marlin/src/config/examples/Creality/Ender-3/Configuration_adv.h
  21. 1
    0
      Marlin/src/config/examples/Creality/Ender-4/Configuration_adv.h
  22. 1
    0
      Marlin/src/config/examples/Einstart-S/Configuration_adv.h
  23. 1
    0
      Marlin/src/config/examples/Felix/Configuration_adv.h
  24. 1
    0
      Marlin/src/config/examples/FolgerTech/i3-2020/Configuration_adv.h
  25. 1
    0
      Marlin/src/config/examples/Formbot/T-Rex_2+/Configuration_adv.h
  26. 1
    0
      Marlin/src/config/examples/Formbot/T_Rex_3/Configuration_adv.h
  27. 1
    0
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro C/Configuration_adv.h
  28. 1
    0
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro W/Configuration_adv.h
  29. 1
    0
      Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h
  30. 1
    0
      Marlin/src/config/examples/JGAurora/A5/Configuration_adv.h
  31. 1
    0
      Marlin/src/config/examples/MakerParts/Configuration_adv.h
  32. 1
    0
      Marlin/src/config/examples/Malyan/M150/Configuration_adv.h
  33. 1
    0
      Marlin/src/config/examples/Malyan/M200/Configuration_adv.h
  34. 1
    0
      Marlin/src/config/examples/Micromake/C1/enhanced/Configuration_adv.h
  35. 1
    0
      Marlin/src/config/examples/Mks/Sbase/Configuration_adv.h
  36. 1
    0
      Marlin/src/config/examples/RigidBot/Configuration_adv.h
  37. 1
    0
      Marlin/src/config/examples/SCARA/Configuration_adv.h
  38. 1
    0
      Marlin/src/config/examples/Sanguinololu/Configuration_adv.h
  39. 1
    0
      Marlin/src/config/examples/TheBorg/Configuration_adv.h
  40. 1
    0
      Marlin/src/config/examples/TinyBoy2/Configuration_adv.h
  41. 1
    0
      Marlin/src/config/examples/Tronxy/X3A/Configuration_adv.h
  42. 1
    0
      Marlin/src/config/examples/UltiMachine/Archim2/Configuration_adv.h
  43. 1
    0
      Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h
  44. 1
    0
      Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h
  45. 1
    0
      Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration_adv.h
  46. 1
    0
      Marlin/src/config/examples/delta/Anycubic/Kossel/Configuration_adv.h
  47. 1
    0
      Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h
  48. 1
    0
      Marlin/src/config/examples/delta/FLSUN/kossel/Configuration_adv.h
  49. 1
    0
      Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h
  50. 1
    0
      Marlin/src/config/examples/delta/generic/Configuration_adv.h
  51. 1
    0
      Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h
  52. 1
    0
      Marlin/src/config/examples/delta/kossel_pro/Configuration_adv.h
  53. 1
    0
      Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h
  54. 1
    0
      Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h
  55. 1
    0
      Marlin/src/config/examples/makibox/Configuration_adv.h
  56. 1
    0
      Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h
  57. 1
    0
      Marlin/src/config/examples/wt150/Configuration_adv.h
  58. 7
    3
      Marlin/src/feature/Max7219_Debug_LEDs.cpp

+ 1
- 0
Marlin/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/default/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/Anet/A2/Configuration_adv.h View File

1674
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1674
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1675
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1675
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1676
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1676
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1677
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1677
 
1678
 
1678
   /**
1679
   /**
1679
    * Sample debug features
1680
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/Anet/A2plus/Configuration_adv.h View File

1674
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1674
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1675
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1675
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1676
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1676
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1677
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1677
 
1678
 
1678
   /**
1679
   /**
1679
    * Sample debug features
1680
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/Anet/A6/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/Anet/A8/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 1
Marlin/src/config/examples/Azteeg/X5GT/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
-
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1696
   /**
1696
   /**
1697
    * Sample debug features
1697
    * Sample debug features
1698
    * If you add more debug displays, be careful to avoid conflicts!
1698
    * If you add more debug displays, be careful to avoid conflicts!

+ 1
- 0
Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/BIBO/TouchX/default/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h View File

1700
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1700
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1701
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1701
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1702
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1702
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1703
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1703
 
1704
 
1704
   /**
1705
   /**
1705
    * Sample debug features
1706
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/Cartesio/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/Creality/CR-10/Configuration_adv.h View File

1695
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1695
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1696
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1696
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1697
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1697
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1698
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1698
 
1699
 
1699
   /**
1700
   /**
1700
    * Sample debug features
1701
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/Creality/CR-10S/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/Creality/CR-10mini/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/Creality/CR-8/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/Creality/Ender-2/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/Creality/Ender-3/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/Creality/Ender-4/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/Einstart-S/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/Felix/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/FolgerTech/i3-2020/Configuration_adv.h View File

1700
   #define MAX7219_NUMBER_UNITS 2   // Number of Max7219 units in chain.
1700
   #define MAX7219_NUMBER_UNITS 2   // Number of Max7219 units in chain.
1701
   #define MAX7219_ROTATE     -90   // Rotate the display clockwise (in multiples of +/- 90°)
1701
   #define MAX7219_ROTATE     -90   // Rotate the display clockwise (in multiples of +/- 90°)
1702
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1702
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1703
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1703
 
1704
 
1704
   /**
1705
   /**
1705
    * Sample debug features
1706
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/Formbot/T-Rex_2+/Configuration_adv.h View File

1694
   #define MAX7219_NUMBER_UNITS 2   // Number of Max7219 units in chain.
1694
   #define MAX7219_NUMBER_UNITS 2   // Number of Max7219 units in chain.
1695
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1695
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1696
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1696
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1697
+  #define MAX7219_REVERSE_ORDER   // The individual LED matrix units may be in reversed order
1697
 
1698
 
1698
   /**
1699
   /**
1699
    * Sample debug features
1700
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/Formbot/T_Rex_3/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 2   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 2   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/Geeetech/Prusa i3 Pro C/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/Geeetech/Prusa i3 Pro W/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/JGAurora/A5/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/MakerParts/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/Malyan/M150/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/Malyan/M200/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/Micromake/C1/enhanced/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/Mks/Sbase/Configuration_adv.h View File

1700
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1700
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1701
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1701
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1702
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1702
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1703
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1703
 
1704
 
1704
   /**
1705
   /**
1705
    * Sample debug features
1706
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/RigidBot/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/SCARA/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/Sanguinololu/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/TheBorg/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/TinyBoy2/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/Tronxy/X3A/Configuration_adv.h View File

1681
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1681
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1682
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1682
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1683
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1683
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1684
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1684
 
1685
 
1685
   /**
1686
   /**
1686
    * Sample debug features
1687
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/UltiMachine/Archim2/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h View File

1705
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1705
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1706
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1706
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1707
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1707
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1708
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1708
 
1709
 
1709
   /**
1710
   /**
1710
    * Sample debug features
1711
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration_adv.h View File

1694
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1694
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1695
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1695
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1696
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1696
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1697
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1697
 
1698
 
1698
   /**
1699
   /**
1699
    * Sample debug features
1700
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/delta/Anycubic/Kossel/Configuration_adv.h View File

1669
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1669
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1670
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1670
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1671
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1671
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1672
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1672
 
1673
 
1673
   /**
1674
   /**
1674
    * Sample debug features
1675
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h View File

1694
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1694
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1695
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1695
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1696
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1696
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1697
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1697
 
1698
 
1698
   /**
1699
   /**
1699
    * Sample debug features
1700
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/delta/FLSUN/kossel/Configuration_adv.h View File

1694
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1694
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1695
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1695
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1696
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1696
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1697
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1697
 
1698
 
1698
   /**
1699
   /**
1699
    * Sample debug features
1700
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h View File

1694
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1694
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1695
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1695
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1696
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1696
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1697
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1697
 
1698
 
1698
   /**
1699
   /**
1699
    * Sample debug features
1700
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/delta/generic/Configuration_adv.h View File

1694
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1694
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1695
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1695
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1696
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1696
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1697
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1697
 
1698
 
1698
   /**
1699
   /**
1699
    * Sample debug features
1700
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h View File

1694
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1694
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1695
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1695
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1696
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1696
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1697
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1697
 
1698
 
1698
   /**
1699
   /**
1699
    * Sample debug features
1700
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/delta/kossel_pro/Configuration_adv.h View File

1699
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1699
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1700
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1700
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1701
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1701
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1702
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1702
 
1703
 
1703
   /**
1704
   /**
1704
    * Sample debug features
1705
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h View File

1694
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1694
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1695
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1695
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1696
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1696
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1697
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1697
 
1698
 
1698
   /**
1699
   /**
1699
    * Sample debug features
1700
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/makibox/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h View File

1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1692
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1693
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1694
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1695
 
1696
 
1696
   /**
1697
   /**
1697
    * Sample debug features
1698
    * Sample debug features

+ 1
- 0
Marlin/src/config/examples/wt150/Configuration_adv.h View File

1693
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1693
   #define MAX7219_NUMBER_UNITS 1   // Number of Max7219 units in chain.
1694
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1694
   #define MAX7219_ROTATE       0   // Rotate the display clockwise (in multiples of +/- 90°)
1695
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1695
                                    // connector at:  right=0   bottom=-90  top=90  left=180
1696
+  //#define MAX7219_REVERSE_ORDER  // The individual LED matrix units may be in reversed order
1696
 
1697
 
1697
   /**
1698
   /**
1698
    * Sample debug features
1699
    * Sample debug features

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

53
 uint8_t Max7219::led_line[MAX7219_LINES]; // = { 0 };
53
 uint8_t Max7219::led_line[MAX7219_LINES]; // = { 0 };
54
 
54
 
55
 #define LINE_REG(Q)     (max7219_reg_digit0 + ((Q) & 0x7))
55
 #define LINE_REG(Q)     (max7219_reg_digit0 + ((Q) & 0x7))
56
+
56
 #if _ROT == 0 || _ROT == 270
57
 #if _ROT == 0 || _ROT == 270
57
   #define _LED_BIT(Q)   (7 - ((Q) & 0x7))
58
   #define _LED_BIT(Q)   (7 - ((Q) & 0x7))
58
-  #define _LED_UNIT(Q)  ((Q) & ~0x7)
59
-  //#define _LED_UNIT(Q)  ((MAX7219_NUMBER_UNITS - 1 - ((Q) >> 3)) << 3)  // some Max7219 boards have rotated the matrix
60
-                                                                          // this line can be substituted to correct orientation
61
 #else
59
 #else
62
   #define _LED_BIT(Q)   ((Q) & 0x7)
60
   #define _LED_BIT(Q)   ((Q) & 0x7)
61
+#endif
62
+
63
+#if (_ROT == 0 || _ROT == 270) == ENABLED(MAX7219_REVERSE_ORDER)
63
   #define _LED_UNIT(Q)  ((MAX7219_NUMBER_UNITS - 1 - ((Q) >> 3)) << 3)
64
   #define _LED_UNIT(Q)  ((MAX7219_NUMBER_UNITS - 1 - ((Q) >> 3)) << 3)
65
+#else
66
+  #define _LED_UNIT(Q)  ((Q) & ~0x7)
64
 #endif
67
 #endif
68
+
65
 #if _ROT < 180
69
 #if _ROT < 180
66
   #define _LED_IND(P,Q) (_LED_UNIT(P) + (Q))
70
   #define _LED_IND(P,Q) (_LED_UNIT(P) + (Q))
67
 #else
71
 #else

Loading…
Cancel
Save