Browse Source

MAX7219 followup (#7564)

* Add MAX7219_DEBUG to Travis CI testing

* Tweak config and use standard pin naming for MAX7219_DEBUG

* MAX7219: Apply coding standards, use macros, etc.

* Make code work...
Scott Lahteine 7 years ago
parent
commit
5851c2d36f
31 changed files with 717 additions and 681 deletions
  1. 1
    1
      .travis.yml
  2. 28
    0
      Marlin/Configuration_adv.h
  3. 112
    162
      Marlin/Max7219_Debug_LEDs.cpp
  4. 36
    33
      Marlin/Max7219_Debug_LEDs.h
  5. 20
    18
      Marlin/example_configurations/AlephObjects/TAZ4/Configuration_adv.h
  6. 20
    18
      Marlin/example_configurations/Anet/A6/Configuration_adv.h
  7. 20
    18
      Marlin/example_configurations/Anet/A8/Configuration_adv.h
  8. 20
    18
      Marlin/example_configurations/BQ/Hephestos/Configuration_adv.h
  9. 20
    18
      Marlin/example_configurations/BQ/Hephestos_2/Configuration_adv.h
  10. 20
    18
      Marlin/example_configurations/BQ/WITBOX/Configuration_adv.h
  11. 20
    18
      Marlin/example_configurations/Cartesio/Configuration_adv.h
  12. 20
    18
      Marlin/example_configurations/Felix/Configuration_adv.h
  13. 20
    18
      Marlin/example_configurations/Folger Tech/i3-2020/Configuration_adv.h
  14. 20
    18
      Marlin/example_configurations/Infitary/i3-M508/Configuration_adv.h
  15. 20
    18
      Marlin/example_configurations/Malyan/M150/Configuration_adv.h
  16. 20
    18
      Marlin/example_configurations/RigidBot/Configuration_adv.h
  17. 20
    18
      Marlin/example_configurations/SCARA/Configuration_adv.h
  18. 20
    18
      Marlin/example_configurations/Sanguinololu/Configuration_adv.h
  19. 20
    18
      Marlin/example_configurations/TinyBoy2/Configuration_adv.h
  20. 20
    18
      Marlin/example_configurations/Velleman/K8200/Configuration_adv.h
  21. 20
    18
      Marlin/example_configurations/Velleman/K8400/Configuration_adv.h
  22. 20
    18
      Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration_adv.h
  23. 20
    18
      Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration_adv.h
  24. 20
    18
      Marlin/example_configurations/delta/generic/Configuration_adv.h
  25. 20
    18
      Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h
  26. 20
    18
      Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h
  27. 20
    18
      Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h
  28. 20
    17
      Marlin/example_configurations/gCreate/gMax1.5+/Configuration_adv.h
  29. 20
    18
      Marlin/example_configurations/makibox/Configuration_adv.h
  30. 20
    18
      Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h
  31. 20
    18
      Marlin/example_configurations/wt150/Configuration_adv.h

+ 1
- 1
.travis.yml View File

@@ -90,7 +90,7 @@ script:
90 90
   - opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT EEPROM_SETTINGS
91 91
   - opt_enable BLINKM PCA9632 RGB_LED NEOPIXEL_RGBW_LED
92 92
   - opt_enable AUTO_BED_LEVELING_LINEAR Z_MIN_PROBE_REPEATABILITY_TEST DEBUG_LEVELING_FEATURE
93
-  - opt_enable_adv FWRETRACT
93
+  - opt_enable_adv FWRETRACT MAX7219_DEBUG
94 94
   - opt_set ABL_GRID_POINTS_X 16
95 95
   - opt_set ABL_GRID_POINTS_Y 16
96 96
   - opt_set_adv FANMUX0_PIN 53

+ 28
- 0
Marlin/Configuration_adv.h View File

@@ -1382,4 +1382,32 @@
1382 1382
 
1383 1383
 #endif // I2C_POSITION_ENCODERS
1384 1384
 
1385
+/**
1386
+ * MAX7219 Debug Matrix
1387
+ *
1388
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1389
+ * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1390
+ *
1391
+ * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1392
+ * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1393
+ */
1394
+//#define MAX7219_DEBUG
1395
+#if ENABLED(MAX7219_DEBUG)
1396
+  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1397
+  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1398
+  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1399
+
1400
+  /**
1401
+   * Sample debug features
1402
+   * If you add more debug displays, be careful to avoid conflicts!
1403
+   */
1404
+  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1405
+  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1406
+  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1407
+
1408
+  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1409
+                                         // If you experience stuttering, reboots, etc. this option can reveal how
1410
+                                         // tweaks made to the configuration are affecting the printer in real-time.
1411
+#endif
1412
+
1385 1413
 #endif // CONFIGURATION_ADV_H

+ 112
- 162
Marlin/Max7219_Debug_LEDs.cpp View File

@@ -21,199 +21,160 @@
21 21
  */
22 22
 
23 23
 /**
24
- * This module is normally not enabled.  It can be enabled to facilitate
25
- * the display of extra debug information during code development.
26
- * It assumes the existance of a Max7219 LED Matrix.   A suitable
27
- * device can be obtained on eBay similar to this: http://www.ebay.com/itm/191781645249
28
- * for under $2.00 including shipping.
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.
29 28
  *
30
- * Just connect up +5v and Gnd to give it power.  And then 3 wires declared in the 
31
- * #define's below.  Actual pin assignments can be changed in MAX7219_DEBUG section 
32
- * of configuration_adv.h
29
+ * Just connect up +5v and GND to give it power, then connect up the pins assigned
30
+ * in Configuration_adv.h. For example, on the Re-ARM you could use:
33 31
  *
34
- *   #define Max7219_clock   77
35
- *   #define Max7219_data_in 78
36
- *   #define Max7219_load    79
32
+ *   #define MAX7219_CLK_PIN   77
33
+ *   #define MAX7219_DIN_PIN   78
34
+ *   #define MAX7219_LOAD_PIN  79
37 35
  *
38
- * First call Max7219_init() and then there are a number of support functions available
39
- * to control the LED's in the 8x8 grid.
36
+ * Max7219_init() is called automatically at startup, and then there are a number of
37
+ * support functions available to control the LEDs in the 8x8 grid.
40 38
  *
41 39
  * void Max7219_init();
42 40
  * void Max7219_PutByte(uint8_t data);
43 41
  * void Max7219(uint8_t reg, uint8_t data);
44
- * void Max7219_LED_On( int8_t row, int8_t col);
45
- * void Max7219_LED_Off( int8_t row, int8_t col);
46
- * void Max7219_LED_Toggle( int8_t row, int8_t col);
47
- * void Max7219_Clear_Row( int8_t row);
48
- * void Max7219_Clear_Column( int8_t col);
42
+ * void Max7219_LED_On(uint8_t row, uint8_t col);
43
+ * void Max7219_LED_Off(uint8_t row, uint8_t col);
44
+ * void Max7219_LED_Toggle(uint8_t row, uint8_t col);
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_Column(uint8_t col, uint8_t val);
49
+ * void Max7219_idle_tasks();
49 50
  */
50 51
 
51
-
52
-#include "Marlin.h"
52
+#include "MarlinConfig.h"
53 53
 
54 54
 #if ENABLED(MAX7219_DEBUG)
55
+
56
+  #include "Marlin.h"
55 57
   #include "planner.h"
56 58
   #include "stepper.h"
57 59
   #include "Max7219_Debug_LEDs.h"
58 60
 
59
-  static uint8_t LEDs[8] = {0};
61
+  static uint8_t LEDs[8] = { 0 };
60 62
 
61 63
   void Max7219_PutByte(uint8_t data) {
62
-    uint8_t i = 8;
63
-      while(i > 0) {
64
-        digitalWrite( Max7219_clock, LOW);    // tick
65
-        if (data & 0x80)                      // check bit
66
-          digitalWrite(Max7219_data_in,HIGH); // send 1
67
-        else
68
-          digitalWrite(Max7219_data_in,LOW);  // send 0
69
-        digitalWrite(Max7219_clock, HIGH);    // tock
70
-        data = data << 0x01;
71
-        --i;                                  // move to lesser bit
72
-      }
64
+    for (uint8_t i = 8; i--;) {
65
+      WRITE(MAX7219_CLK_PIN, LOW);       // tick
66
+      WRITE(MAX7219_DIN_PIN, (data & 0x80) ? HIGH : LOW);  // send 1 or 0 based on data bit
67
+      WRITE(MAX7219_CLK_PIN, HIGH);      // tock
68
+      data <<= 1;
73 69
     }
74
-
75
-  void Max7219( uint8_t reg, uint8_t data) {
76
-    digitalWrite(Max7219_load, LOW);  // begin
77
-    Max7219_PutByte(reg);             // specify register
78
-    Max7219_PutByte(data);            // put data
79
-    digitalWrite(Max7219_load, LOW);  // and tell the chip to load the data
80
-    digitalWrite(Max7219_load,HIGH);
81 70
   }
82 71
 
83
-  void Max7219_LED_On( int8_t row, int8_t col) {
84
-    int x_index;
85
-    if ( row>=8 || row<0 || col>=8 || col<0)
86
-      return;
87
-    if ( LEDs[row] & (0x01<<col) ) // if LED is already on, just leave
88
-      return;
72
+  void Max7219(const uint8_t reg, const uint8_t data) {
73
+    WRITE(MAX7219_LOAD_PIN, LOW);  // begin
74
+    Max7219_PutByte(reg);          // specify register
75
+    Max7219_PutByte(data);         // put data
76
+    WRITE(MAX7219_LOAD_PIN, LOW);  // and tell the chip to load the data
77
+    WRITE(MAX7219_LOAD_PIN, HIGH);
78
+  }
89 79
 
90
-    LEDs[row] |= (0x01<<col);
91
-    x_index = 7-row;
92
-    Max7219( x_index+1, LEDs[row] );
80
+  void Max7219_LED_Set(const uint8_t row, const uint8_t col, const bool on) {
81
+    if (row > 7 || col > 7) return;
82
+    if (TEST(LEDs[row], col) == on) return; // if LED is already on/off, leave alone
83
+    if (on) SBI(LEDs[row], col); else CBI(LEDs[row], col);
84
+    Max7219(8 - row, LEDs[row]);
93 85
   }
94 86
 
95
-  void Max7219_LED_Off( int8_t row, int8_t col) {
96
-    int x_index;
97
-    if ( row>=8 || row<0 || col>=8 || col<0)
98
-      return;
99
-    if ( !(LEDs[row] & (0x01<<col)) ) // if LED is already off, just leave
100
-      return;
87
+  void Max7219_LED_On(const uint8_t row, const uint8_t col) {
88
+    Max7219_LED_Set(row, col, true);
89
+  }
101 90
 
102
-    LEDs[row] ^= (0x01<<col);
103
-    x_index = 7-row;
104
-    Max7219( x_index+1, LEDs[row] );
91
+  void Max7219_LED_Off(const uint8_t row, const uint8_t col) {
92
+    Max7219_LED_Set(row, col, false);
105 93
   }
106 94
 
107
-  void Max7219_LED_Toggle( int8_t row, int8_t col) {
108
-    if ( row>=8 || row<0 || col>=8 || col<0)
109
-      return;
110
-    if ( (LEDs[row] & (0x01<<col)) )
111
-      Max7219_LED_Off( row, col);
95
+  void Max7219_LED_Toggle(const uint8_t row, const uint8_t col) {
96
+    if (row > 7 || col > 7) return;
97
+    if (TEST(LEDs[row], col))
98
+      Max7219_LED_Off(row, col);
112 99
     else
113
-      Max7219_LED_On( row, col);
100
+      Max7219_LED_On(row, col);
114 101
   }
115 102
 
116
-  void Max7219_Clear_Column( int8_t col) {
117
-    int x_index;
118
-    if ( col>=8 || col<0 )
119
-      return;
103
+  void Max7219_Clear_Column(const uint8_t col) {
104
+    if (col > 7) return;
120 105
     LEDs[col] = 0;
121
-    x_index = 7-col;
122
-    Max7219( x_index+1, LEDs[col] );
106
+    Max7219(8 - col, LEDs[col]);
123 107
   }
124 108
 
125
-  void Max7219_Clear_Row( int8_t row) {
126
-    int c;
127
-    if ( row>=8 || row<0 )
128
-      return;
129
-
130
-    for(c=0; c<8; c++)
131
-      Max7219_LED_Off( c, row);
109
+  void Max7219_Clear_Row(const uint8_t row) {
110
+    if (row > 7) return;
111
+    for (uint8_t c = 0; c <= 7; c++)
112
+      Max7219_LED_Off(c, row);
132 113
   }
133 114
 
134
-  void Max7219_Set_Row( int8_t row, uint8_t val) {
135
-    int b;
136
-
137
-    if ( row<0 || row>7 )
138
-      return;
139
-
140
-    if ( val<0 || val>255 )
141
-      return;
142
-
143
-    for(b=0; b<8; b++)
144
-      if ( val & (0x01 << b) )
145
-        Max7219_LED_On( 7-b, row);
115
+  void Max7219_Set_Row(const uint8_t row, const uint8_t val) {
116
+    if (row > 7) return;
117
+    for (uint8_t b = 0; b <= 7; b++)
118
+      if (TEST(val, b))
119
+        Max7219_LED_On(7 - b, row);
146 120
       else
147
-        Max7219_LED_Off( 7-b, row);
121
+        Max7219_LED_Off(7 - b, row);
148 122
   }
149 123
 
150
-  void Max7219_Set_Column( int8_t col, uint8_t val) {
151
-    int x_index;
152
-
153
-    if ( col>=8 || col<0 )
154
-      return;
155
-
156
-    if ( val<0 || val>255 )
157
-      return;
158
-
124
+  void Max7219_Set_Column(const uint8_t col, const uint8_t val) {
125
+    if (col > 7) return;
159 126
     LEDs[col] = val;
160
-    x_index = 7-col;
161
-    Max7219( x_index+1, LEDs[col] );
127
+    Max7219(8 - col, LEDs[col]);
162 128
   }
163 129
 
164
-
165 130
   void Max7219_init() {
166
-    int i, x, y;
131
+    uint8_t i, x, y;
167 132
 
168
-    pinMode(Max7219_data_in, OUTPUT);
169
-    pinMode(Max7219_clock,   OUTPUT);
170
-    pinMode(Max7219_load,    OUTPUT);
133
+    SET_OUTPUT(MAX7219_DIN_PIN);
134
+    SET_OUTPUT(MAX7219_CLK_PIN);
171 135
 
172
-    digitalWrite(Max7219_load, HIGH);
136
+    OUT_WRITE(MAX7219_LOAD_PIN, HIGH);
173 137
 
174 138
     //initiation of the max 7219
175 139
     Max7219(max7219_reg_scanLimit, 0x07);
176 140
     Max7219(max7219_reg_decodeMode, 0x00);  // using an led matrix (not digits)
177 141
     Max7219(max7219_reg_shutdown, 0x01);    // not in shutdown mode
178 142
     Max7219(max7219_reg_displayTest, 0x00); // no display test
179
-    Max7219(max7219_reg_intensity, 0x01 & 0x0f); // the first 0x0f is the value you can set
180
-                                                 // range: 0x00 to 0x0f
181
-    for (i=0; i<8; i++) {       // empty registers, turn all LEDs off
143
+    Max7219(max7219_reg_intensity, 0x01 & 0x0F); // the first 0x0F is the value you can set
144
+                                                 // range: 0x00 to 0x0F
145
+    for (i = 0; i <= 7; i++) {      // empty registers, turn all LEDs off
182 146
       LEDs[i] = 0x00;
183
-      Max7219(i+1,0);
147
+      Max7219(i + 1, 0);
184 148
     }
185 149
 
186
-    for(x=0; x<8; x++)  {       // Do an austetically pleasing pattern to fully test
187
-      for(y=0; y<8; y++) {      // the Max7219 module and LED's.   First, turn them
188
-        Max7219_LED_On( x, y);  // all on.
150
+    for (x = 0; x <= 7; x++)        // Do an aesthetically pleasing pattern to fully test
151
+      for (y = 0; y <= 7; y++) {    // the Max7219 module and LEDs. First, turn them
152
+        Max7219_LED_On(x, y);       // all on.
189 153
         delay(3);
190 154
       }
191
-    }
192
-    for(x=0; x<8; x++)  {       // Now, turn them all off.
193
-      for(y=0; y<8; y++) {
194
-        Max7219_LED_Off( x, y);
195
-        delay(3);               // delay() is OK here.  Max7219_init() is only called from
196
-      }                         // setup() and nothing is running yet.
197
-    }
155
+
156
+    for (x = 0; x <= 7; x++)        // Now, turn them all off.
157
+      for (y = 0; y <= 7; y++) {
158
+        Max7219_LED_Off(x, y);
159
+        delay(3);                   // delay() is OK here. Max7219_init() is only called from
160
+      }                             // setup() and nothing is running yet.
198 161
 
199 162
     delay(150);
200 163
 
201
-    for(x=7; x>=0; x--)  {     // Now, do the same thing from the opposite direction
202
-      for(y=0; y<8; y++) {
203
-        Max7219_LED_On( x, y);
164
+    for (x = 8; x--;)               // Now, do the same thing from the opposite direction
165
+      for (y = 0; y <= 7; y++) {
166
+        Max7219_LED_On(x, y);
204 167
         delay(2);
205 168
       }
206
-    }
207 169
 
208
-    for(x=7; x>=0; x--)  {
209
-      for(y=0; y<8; y++) {
210
-        Max7219_LED_Off( x, y);
170
+    for (x = 8; x--;)
171
+      for (y = 0; y <= 7; y++) {
172
+        Max7219_LED_Off(x, y);
211 173
         delay(2);
212 174
       }
213
-      }
214
-    }
175
+  }
215 176
 
216
-/*
177
+/**
217 178
  * These are sample debug features to demonstrate the usage of the 8x8 LED Matrix for debug purposes.
218 179
  * There is very little CPU burden added to the system by displaying information within the idle()
219 180
  * task.
@@ -223,17 +184,17 @@
223 184
  * or clear a row is not very significant.
224 185
  */
225 186
   void Max7219_idle_tasks() {
226
-    #ifdef MAX7219_DEBUG_PRINTER_ALIVE
227
-      static int debug_cnt=0;
187
+    #if ENABLED(MAX7219_DEBUG_PRINTER_ALIVE)
188
+      static int debug_cnt = 0;
228 189
       if (debug_cnt++ > 100) {
229
-        Max7219_LED_Toggle(7,7);
190
+        Max7219_LED_Toggle(7, 7);
230 191
         debug_cnt = 0;
231 192
       }
232 193
     #endif
233 194
 
234 195
     #ifdef MAX7219_DEBUG_STEPPER_HEAD
235 196
       Max7219_Clear_Row(MAX7219_DEBUG_STEPPER_HEAD);
236
-      Max7219_Clear_Row(MAX7219_DEBUG_STEPPER_HEAD+1);
197
+      Max7219_Clear_Row(MAX7219_DEBUG_STEPPER_HEAD + 1);
237 198
       if ( planner.block_buffer_head < 8)
238 199
         Max7219_LED_On( planner.block_buffer_head, MAX7219_DEBUG_STEPPER_HEAD);
239 200
       else
@@ -242,7 +203,7 @@
242 203
 
243 204
     #ifdef MAX7219_DEBUG_STEPPER_TAIL
244 205
       Max7219_Clear_Row(MAX7219_DEBUG_STEPPER_TAIL);
245
-      Max7219_Clear_Row(MAX7219_DEBUG_STEPPER_TAIL+1);
206
+      Max7219_Clear_Row(MAX7219_DEBUG_STEPPER_TAIL + 1);
246 207
       if ( planner.block_buffer_tail < 8)
247 208
         Max7219_LED_On( planner.block_buffer_tail, MAX7219_DEBUG_STEPPER_TAIL );
248 209
       else
@@ -250,37 +211,26 @@
250 211
     #endif
251 212
 
252 213
     #ifdef MAX7219_DEBUG_STEPPER_QUEUE
253
-      static int16_t last_depth=0, current_depth;
254
-      uint8_t i;
255
-      current_depth = planner.block_buffer_head - planner.block_buffer_tail;
214
+      static int16_t last_depth = 0;
215
+      int16_t current_depth = planner.block_buffer_head - planner.block_buffer_tail;
256 216
       if (current_depth != last_depth) {  // usually, no update will be needed.
257
-
258
-        if ( current_depth < 0 )
259
-          current_depth += BLOCK_BUFFER_SIZE;
260
-
261
-        if ( current_depth >= BLOCK_BUFFER_SIZE )
262
-          current_depth = BLOCK_BUFFER_SIZE;
263
-
264
-        if ( current_depth > 16 )         // if the BLOCK_BUFFER_SIZE is greater than 16 two lines
265
-          current_depth = 16;             // of LED's is enough to see if the buffer is draining
266
-
267
-        if ( current_depth < last_depth )
268
-          for(i=current_depth; i<=last_depth; i++) {   // clear the highest order LED's
269
-            if ( i & 1)
270
-              Max7219_LED_Off(i>>1, MAX7219_DEBUG_STEPPER_QUEUE+1);
271
-            else
272
-              Max7219_LED_Off(i>>1, MAX7219_DEBUG_STEPPER_QUEUE+0);
273
-          }
217
+        if (current_depth < 0) current_depth += BLOCK_BUFFER_SIZE;
218
+        NOMORE(current_depth, BLOCK_BUFFER_SIZE);
219
+        NOMORE(current_depth, 16);        // if the BLOCK_BUFFER_SIZE is greater than 16, two lines
220
+                                          // of LEDs is enough to see if the buffer is draining
221
+
222
+        const uint8_t st = min(current_depth, last_depth),
223
+                      en = max(current_depth, last_depth);
224
+        if (current_depth < last_depth)
225
+          for (uint8_t i = st; i <= en; i++)   // clear the highest order LEDs
226
+            Max7219_LED_Off(i >> 1, MAX7219_DEBUG_STEPPER_QUEUE + (i & 1));
274 227
         else
275
-          for(i=last_depth; i<=current_depth; i++) {   // light up the highest order LED's
276
-            if ( i & 1)
277
-              Max7219_LED_On(i>>1, MAX7219_DEBUG_STEPPER_QUEUE+1);
278
-            else
279
-              Max7219_LED_On(i>>1, MAX7219_DEBUG_STEPPER_QUEUE+0);
280
-          }
228
+          for (uint8_t i = st; i <= en; i++)   // set the highest order LEDs
229
+            Max7219_LED_On(i >> 1, MAX7219_DEBUG_STEPPER_QUEUE + (i & 1));
230
+
281 231
         last_depth = current_depth;
282 232
       }
283 233
     #endif
284 234
   }
285
-#endif //MAX7219_DEBUG
286 235
 
236
+#endif // MAX7219_DEBUG

+ 36
- 33
Marlin/Max7219_Debug_LEDs.h View File

@@ -21,34 +21,38 @@
21 21
  */
22 22
 
23 23
 /**
24
- * This module is normally not enabled and does not generate any code.   But it
25
- * can be enabled to facilitate the display of extra debug information during
26
- * code development.   It assumes the existance of a Max7219 LED Matrix.   You
27
- * can get one on eBay similar to this: http://www.ebay.com/itm/191781645249
28
- * for under $2.00 including shipping.
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.
29 28
  *
30
- * Just connect up +5v and Gnd to give it power.  And then 3 wires declared in the 
31
- * #define's below.  Actual pin assignments can be changed in MAX7219_DEBUG section 
32
- * of configuration_adv.h
29
+ * Just connect up +5v and GND to give it power, then connect up the pins assigned
30
+ * in Configuration_adv.h. For example, on the Re-ARM you could use:
33 31
  *
34
- * You first call Max7219_init() and then you have 3 support functions available
35
- * to control the LED's in the 8x8 grid.
32
+ *   #define MAX7219_CLK_PIN   77
33
+ *   #define MAX7219_DIN_PIN   78
34
+ *   #define MAX7219_LOAD_PIN  79
35
+ *
36
+ * Max7219_init() is called automatically at startup, and then there are a number of
37
+ * support functions available to control the LEDs in the 8x8 grid.
36 38
  *
37 39
  * void Max7219_init();
38 40
  * void Max7219_PutByte(uint8_t data);
39 41
  * void Max7219(uint8_t reg, uint8_t data);
40
- * void Max7219_LED_On( int8_t row, int8_t col);
41
- * void Max7219_LED_Off( int8_t row, int8_t col);
42
- * void Max7219_LED_Toggle( int8_t row, int8_t col);
43
- * void Max7219_Clear_Row( int8_t row);
44
- * void Max7219_Clear_Column( int8_t col);
45
- * void Max7219_Set_Row( int8_t row, int8_t val);
46
- * void Max7219_Set_Column( int8_t column, int8_t val);
42
+ * void Max7219_LED_Set(uint8_t row, uint8_t col, bool on);
43
+ * void Max7219_LED_On(uint8_t row, uint8_t col);
44
+ * void Max7219_LED_Off(uint8_t row, uint8_t col);
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_Column(uint8_t col, uint8_t val);
47 50
  * void Max7219_idle_tasks();
48 51
  */
49 52
 
53
+#ifndef __MAX7219_DEBUG_LEDS_H__
54
+#define __MAX7219_DEBUG_LEDS_H__
50 55
 
51
-#if ENABLED(MAX7219_DEBUG)
52 56
   //
53 57
   // define max7219 registers
54 58
   //
@@ -62,24 +66,23 @@
62 66
   #define max7219_reg_digit6      0x07
63 67
   #define max7219_reg_digit7      0x08
64 68
 
65
-  #define max7219_reg_intensity   0x0a
66
-  #define max7219_reg_displayTest 0x0f
69
+  #define max7219_reg_intensity   0x0A
70
+  #define max7219_reg_displayTest 0x0F
67 71
   #define max7219_reg_decodeMode  0x09
68
-  #define max7219_reg_scanLimit   0x0b
69
-  #define max7219_reg_shutdown    0x0c
70
-
72
+  #define max7219_reg_scanLimit   0x0B
73
+  #define max7219_reg_shutdown    0x0C
71 74
 
72 75
   void Max7219_init();
73 76
   void Max7219_PutByte(uint8_t data);
74
-  void Max7219(uint8_t reg, uint8_t data);
75
-  void Max7219_LED_On( int8_t row, int8_t col);
76
-  void Max7219_LED_Off( int8_t row, int8_t col);
77
-  void Max7219_LED_Toggle( int8_t row, int8_t col);
78
-  void Max7219_Clear_Row( int8_t row);
79
-  void Max7219_Clear_Column( int8_t col);
80
-  void Max7219_Set_Row( int8_t row, uint8_t val);
81
-  void Max7219_Set_Column( int8_t col, uint8_t val);
77
+  void Max7219(const uint8_t reg, const uint8_t data);
78
+  void Max7219_LED_Set(const uint8_t row, const uint8_t col, const bool on);
79
+  void Max7219_LED_On(const uint8_t row, const uint8_t col);
80
+  void Max7219_LED_Off(const uint8_t row, const uint8_t col);
81
+  void Max7219_LED_Toggle(const uint8_t row, const uint8_t col);
82
+  void Max7219_Clear_Row(const uint8_t row);
83
+  void Max7219_Clear_Column(const uint8_t col);
84
+  void Max7219_Set_Row(const uint8_t row, const uint8_t val);
85
+  void Max7219_Set_Column(const uint8_t col, const uint8_t val);
82 86
   void Max7219_idle_tasks();
83
-#endif
84
-
85 87
 
88
+#endif // __MAX7219_DEBUG_LEDS_H__

+ 20
- 18
Marlin/example_configurations/AlephObjects/TAZ4/Configuration_adv.h View File

@@ -1383,29 +1383,31 @@
1383 1383
 #endif // I2C_POSITION_ENCODERS
1384 1384
 
1385 1385
 /**
1386
-  * Debug LED's using an 8x8 LED Matrix driven by a Max7219 chip.   Fully assembled versions are available on
1387
-  * eBay for under $2.00 (including shipping) and only require 3 signal wires.
1388
-  *
1389
-  * Check out auctions similar to this: https://www.ebay.com/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=332349290049&_sacat=0
1390
-  */
1391
-
1386
+ * MAX7219 Debug Matrix
1387
+ *
1388
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1389
+ * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1390
+ *
1391
+ * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1392
+ * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1393
+ */
1392 1394
 //#define MAX7219_DEBUG
1393 1395
 #if ENABLED(MAX7219_DEBUG)
1394
-  #define Max7219_clock   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1395
-  #define Max7219_data_in 57  // 78 on Re-ARM
1396
-  #define Max7219_load    44  // 79 on Re-ARM
1396
+  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1397
+  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1398
+  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1397 1399
 
1398
-  /*
1399
-   * These are sample debug features that can be turned on and configured for your use.
1400
-   * The developer will need to manage the use of the various LED's in the 8x8 matrix to avoid conflicts.
1400
+  /**
1401
+   * Sample debug features
1402
+   * If you add more debug displays, be careful to avoid conflicts!
1401 1403
    */
1402
-  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix from idle() routine if firmware is functioning
1403
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Display row position of stepper queue head on this line and the next line of LED matrix
1404
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Display row position of stepper queue tail on this line and the next line of LED matrix
1404
+  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1405
+  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1406
+  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1405 1407
 
1406
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Display row position of stepper queue depth on this line and the next line of LED matrix
1407
-                                         // If you have stuttering on your Delta printer, this option may help you understand how
1408
-                                         // various tweaks you make to your configuration are affecting the printer.
1408
+  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1409
+                                         // If you experience stuttering, reboots, etc. this option can reveal how
1410
+                                         // tweaks made to the configuration are affecting the printer in real-time.
1409 1411
 #endif
1410 1412
 
1411 1413
 #endif // CONFIGURATION_ADV_H

+ 20
- 18
Marlin/example_configurations/Anet/A6/Configuration_adv.h View File

@@ -1383,29 +1383,31 @@
1383 1383
 #endif // I2C_POSITION_ENCODERS
1384 1384
 
1385 1385
 /**
1386
-  * Debug LED's using an 8x8 LED Matrix driven by a Max7219 chip.   Fully assembled versions are available on
1387
-  * eBay for under $2.00 (including shipping) and only require 3 signal wires.
1388
-  *
1389
-  * Check out auctions similar to this: https://www.ebay.com/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=332349290049&_sacat=0
1390
-  */
1391
-
1386
+ * MAX7219 Debug Matrix
1387
+ *
1388
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1389
+ * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1390
+ *
1391
+ * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1392
+ * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1393
+ */
1392 1394
 //#define MAX7219_DEBUG
1393 1395
 #if ENABLED(MAX7219_DEBUG)
1394
-  #define Max7219_clock   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1395
-  #define Max7219_data_in 57  // 78 on Re-ARM
1396
-  #define Max7219_load    44  // 79 on Re-ARM
1396
+  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1397
+  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1398
+  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1397 1399
 
1398
-  /*
1399
-   * These are sample debug features that can be turned on and configured for your use.
1400
-   * The developer will need to manage the use of the various LED's in the 8x8 matrix to avoid conflicts.
1400
+  /**
1401
+   * Sample debug features
1402
+   * If you add more debug displays, be careful to avoid conflicts!
1401 1403
    */
1402
-  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix from idle() routine if firmware is functioning
1403
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Display row position of stepper queue head on this line and the next line of LED matrix
1404
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Display row position of stepper queue tail on this line and the next line of LED matrix
1404
+  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1405
+  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1406
+  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1405 1407
 
1406
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Display row position of stepper queue depth on this line and the next line of LED matrix
1407
-                                         // If you have stuttering on your Delta printer, this option may help you understand how
1408
-                                         // various tweaks you make to your configuration are affecting the printer.
1408
+  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1409
+                                         // If you experience stuttering, reboots, etc. this option can reveal how
1410
+                                         // tweaks made to the configuration are affecting the printer in real-time.
1409 1411
 #endif
1410 1412
 
1411 1413
 #endif // CONFIGURATION_ADV_H

+ 20
- 18
Marlin/example_configurations/Anet/A8/Configuration_adv.h View File

@@ -1383,29 +1383,31 @@
1383 1383
 #endif // I2C_POSITION_ENCODERS
1384 1384
 
1385 1385
 /**
1386
-  * Debug LED's using an 8x8 LED Matrix driven by a Max7219 chip.   Fully assembled versions are available on
1387
-  * eBay for under $2.00 (including shipping) and only require 3 signal wires.
1388
-  *
1389
-  * Check out auctions similar to this: https://www.ebay.com/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=332349290049&_sacat=0
1390
-  */
1391
-
1386
+ * MAX7219 Debug Matrix
1387
+ *
1388
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1389
+ * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1390
+ *
1391
+ * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1392
+ * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1393
+ */
1392 1394
 //#define MAX7219_DEBUG
1393 1395
 #if ENABLED(MAX7219_DEBUG)
1394
-  #define Max7219_clock   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1395
-  #define Max7219_data_in 57  // 78 on Re-ARM
1396
-  #define Max7219_load    44  // 79 on Re-ARM
1396
+  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1397
+  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1398
+  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1397 1399
 
1398
-  /*
1399
-   * These are sample debug features that can be turned on and configured for your use.
1400
-   * The developer will need to manage the use of the various LED's in the 8x8 matrix to avoid conflicts.
1400
+  /**
1401
+   * Sample debug features
1402
+   * If you add more debug displays, be careful to avoid conflicts!
1401 1403
    */
1402
-  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix from idle() routine if firmware is functioning
1403
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Display row position of stepper queue head on this line and the next line of LED matrix
1404
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Display row position of stepper queue tail on this line and the next line of LED matrix
1404
+  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1405
+  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1406
+  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1405 1407
 
1406
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Display row position of stepper queue depth on this line and the next line of LED matrix
1407
-                                         // If you have stuttering on your Delta printer, this option may help you understand how
1408
-                                         // various tweaks you make to your configuration are affecting the printer.
1408
+  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1409
+                                         // If you experience stuttering, reboots, etc. this option can reveal how
1410
+                                         // tweaks made to the configuration are affecting the printer in real-time.
1409 1411
 #endif
1410 1412
 
1411 1413
 #endif // CONFIGURATION_ADV_H

+ 20
- 18
Marlin/example_configurations/BQ/Hephestos/Configuration_adv.h View File

@@ -1383,29 +1383,31 @@
1383 1383
 #endif // I2C_POSITION_ENCODERS
1384 1384
 
1385 1385
 /**
1386
-  * Debug LED's using an 8x8 LED Matrix driven by a Max7219 chip.   Fully assembled versions are available on
1387
-  * eBay for under $2.00 (including shipping) and only require 3 signal wires.
1388
-  *
1389
-  * Check out auctions similar to this: https://www.ebay.com/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=332349290049&_sacat=0
1390
-  */
1391
-
1386
+ * MAX7219 Debug Matrix
1387
+ *
1388
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1389
+ * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1390
+ *
1391
+ * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1392
+ * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1393
+ */
1392 1394
 //#define MAX7219_DEBUG
1393 1395
 #if ENABLED(MAX7219_DEBUG)
1394
-  #define Max7219_clock   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1395
-  #define Max7219_data_in 57  // 78 on Re-ARM
1396
-  #define Max7219_load    44  // 79 on Re-ARM
1396
+  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1397
+  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1398
+  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1397 1399
 
1398
-  /*
1399
-   * These are sample debug features that can be turned on and configured for your use.
1400
-   * The developer will need to manage the use of the various LED's in the 8x8 matrix to avoid conflicts.
1400
+  /**
1401
+   * Sample debug features
1402
+   * If you add more debug displays, be careful to avoid conflicts!
1401 1403
    */
1402
-  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix from idle() routine if firmware is functioning
1403
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Display row position of stepper queue head on this line and the next line of LED matrix
1404
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Display row position of stepper queue tail on this line and the next line of LED matrix
1404
+  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1405
+  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1406
+  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1405 1407
 
1406
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Display row position of stepper queue depth on this line and the next line of LED matrix
1407
-                                         // If you have stuttering on your Delta printer, this option may help you understand how
1408
-                                         // various tweaks you make to your configuration are affecting the printer.
1408
+  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1409
+                                         // If you experience stuttering, reboots, etc. this option can reveal how
1410
+                                         // tweaks made to the configuration are affecting the printer in real-time.
1409 1411
 #endif
1410 1412
 
1411 1413
 #endif // CONFIGURATION_ADV_H

+ 20
- 18
Marlin/example_configurations/BQ/Hephestos_2/Configuration_adv.h View File

@@ -1383,29 +1383,31 @@
1383 1383
 #endif // I2C_POSITION_ENCODERS
1384 1384
 
1385 1385
 /**
1386
-  * Debug LED's using an 8x8 LED Matrix driven by a Max7219 chip.   Fully assembled versions are available on
1387
-  * eBay for under $2.00 (including shipping) and only require 3 signal wires.
1388
-  *
1389
-  * Check out auctions similar to this: https://www.ebay.com/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=332349290049&_sacat=0
1390
-  */
1391
-
1386
+ * MAX7219 Debug Matrix
1387
+ *
1388
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1389
+ * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1390
+ *
1391
+ * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1392
+ * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1393
+ */
1392 1394
 //#define MAX7219_DEBUG
1393 1395
 #if ENABLED(MAX7219_DEBUG)
1394
-  #define Max7219_clock   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1395
-  #define Max7219_data_in 57  // 78 on Re-ARM
1396
-  #define Max7219_load    44  // 79 on Re-ARM
1396
+  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1397
+  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1398
+  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1397 1399
 
1398
-  /*
1399
-   * These are sample debug features that can be turned on and configured for your use.
1400
-   * The developer will need to manage the use of the various LED's in the 8x8 matrix to avoid conflicts.
1400
+  /**
1401
+   * Sample debug features
1402
+   * If you add more debug displays, be careful to avoid conflicts!
1401 1403
    */
1402
-  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix from idle() routine if firmware is functioning
1403
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Display row position of stepper queue head on this line and the next line of LED matrix
1404
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Display row position of stepper queue tail on this line and the next line of LED matrix
1404
+  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1405
+  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1406
+  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1405 1407
 
1406
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Display row position of stepper queue depth on this line and the next line of LED matrix
1407
-                                         // If you have stuttering on your Delta printer, this option may help you understand how
1408
-                                         // various tweaks you make to your configuration are affecting the printer.
1408
+  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1409
+                                         // If you experience stuttering, reboots, etc. this option can reveal how
1410
+                                         // tweaks made to the configuration are affecting the printer in real-time.
1409 1411
 #endif
1410 1412
 
1411 1413
 #endif // CONFIGURATION_ADV_H

+ 20
- 18
Marlin/example_configurations/BQ/WITBOX/Configuration_adv.h View File

@@ -1383,29 +1383,31 @@
1383 1383
 #endif // I2C_POSITION_ENCODERS
1384 1384
 
1385 1385
 /**
1386
-  * Debug LED's using an 8x8 LED Matrix driven by a Max7219 chip.   Fully assembled versions are available on
1387
-  * eBay for under $2.00 (including shipping) and only require 3 signal wires.
1388
-  *
1389
-  * Check out auctions similar to this: https://www.ebay.com/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=332349290049&_sacat=0
1390
-  */
1391
-
1386
+ * MAX7219 Debug Matrix
1387
+ *
1388
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1389
+ * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1390
+ *
1391
+ * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1392
+ * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1393
+ */
1392 1394
 //#define MAX7219_DEBUG
1393 1395
 #if ENABLED(MAX7219_DEBUG)
1394
-  #define Max7219_clock   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1395
-  #define Max7219_data_in 57  // 78 on Re-ARM
1396
-  #define Max7219_load    44  // 79 on Re-ARM
1396
+  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1397
+  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1398
+  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1397 1399
 
1398
-  /*
1399
-   * These are sample debug features that can be turned on and configured for your use.
1400
-   * The developer will need to manage the use of the various LED's in the 8x8 matrix to avoid conflicts.
1400
+  /**
1401
+   * Sample debug features
1402
+   * If you add more debug displays, be careful to avoid conflicts!
1401 1403
    */
1402
-  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix from idle() routine if firmware is functioning
1403
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Display row position of stepper queue head on this line and the next line of LED matrix
1404
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Display row position of stepper queue tail on this line and the next line of LED matrix
1404
+  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1405
+  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1406
+  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1405 1407
 
1406
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Display row position of stepper queue depth on this line and the next line of LED matrix
1407
-                                         // If you have stuttering on your Delta printer, this option may help you understand how
1408
-                                         // various tweaks you make to your configuration are affecting the printer.
1408
+  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1409
+                                         // If you experience stuttering, reboots, etc. this option can reveal how
1410
+                                         // tweaks made to the configuration are affecting the printer in real-time.
1409 1411
 #endif
1410 1412
 
1411 1413
 #endif // CONFIGURATION_ADV_H

+ 20
- 18
Marlin/example_configurations/Cartesio/Configuration_adv.h View File

@@ -1383,29 +1383,31 @@
1383 1383
 #endif // I2C_POSITION_ENCODERS
1384 1384
 
1385 1385
 /**
1386
-  * Debug LED's using an 8x8 LED Matrix driven by a Max7219 chip.   Fully assembled versions are available on
1387
-  * eBay for under $2.00 (including shipping) and only require 3 signal wires.
1388
-  *
1389
-  * Check out auctions similar to this: https://www.ebay.com/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=332349290049&_sacat=0
1390
-  */
1391
-
1386
+ * MAX7219 Debug Matrix
1387
+ *
1388
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1389
+ * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1390
+ *
1391
+ * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1392
+ * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1393
+ */
1392 1394
 //#define MAX7219_DEBUG
1393 1395
 #if ENABLED(MAX7219_DEBUG)
1394
-  #define Max7219_clock   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1395
-  #define Max7219_data_in 57  // 78 on Re-ARM
1396
-  #define Max7219_load    44  // 79 on Re-ARM
1396
+  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1397
+  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1398
+  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1397 1399
 
1398
-  /*
1399
-   * These are sample debug features that can be turned on and configured for your use.
1400
-   * The developer will need to manage the use of the various LED's in the 8x8 matrix to avoid conflicts.
1400
+  /**
1401
+   * Sample debug features
1402
+   * If you add more debug displays, be careful to avoid conflicts!
1401 1403
    */
1402
-  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix from idle() routine if firmware is functioning
1403
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Display row position of stepper queue head on this line and the next line of LED matrix
1404
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Display row position of stepper queue tail on this line and the next line of LED matrix
1404
+  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1405
+  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1406
+  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1405 1407
 
1406
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Display row position of stepper queue depth on this line and the next line of LED matrix
1407
-                                         // If you have stuttering on your Delta printer, this option may help you understand how
1408
-                                         // various tweaks you make to your configuration are affecting the printer.
1408
+  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1409
+                                         // If you experience stuttering, reboots, etc. this option can reveal how
1410
+                                         // tweaks made to the configuration are affecting the printer in real-time.
1409 1411
 #endif
1410 1412
 
1411 1413
 #endif // CONFIGURATION_ADV_H

+ 20
- 18
Marlin/example_configurations/Felix/Configuration_adv.h View File

@@ -1383,29 +1383,31 @@
1383 1383
 #endif // I2C_POSITION_ENCODERS
1384 1384
 
1385 1385
 /**
1386
-  * Debug LED's using an 8x8 LED Matrix driven by a Max7219 chip.   Fully assembled versions are available on
1387
-  * eBay for under $2.00 (including shipping) and only require 3 signal wires.
1388
-  *
1389
-  * Check out auctions similar to this: https://www.ebay.com/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=332349290049&_sacat=0
1390
-  */
1391
-
1386
+ * MAX7219 Debug Matrix
1387
+ *
1388
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1389
+ * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1390
+ *
1391
+ * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1392
+ * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1393
+ */
1392 1394
 //#define MAX7219_DEBUG
1393 1395
 #if ENABLED(MAX7219_DEBUG)
1394
-  #define Max7219_clock   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1395
-  #define Max7219_data_in 57  // 78 on Re-ARM
1396
-  #define Max7219_load    44  // 79 on Re-ARM
1396
+  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1397
+  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1398
+  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1397 1399
 
1398
-  /*
1399
-   * These are sample debug features that can be turned on and configured for your use.
1400
-   * The developer will need to manage the use of the various LED's in the 8x8 matrix to avoid conflicts.
1400
+  /**
1401
+   * Sample debug features
1402
+   * If you add more debug displays, be careful to avoid conflicts!
1401 1403
    */
1402
-  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix from idle() routine if firmware is functioning
1403
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Display row position of stepper queue head on this line and the next line of LED matrix
1404
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Display row position of stepper queue tail on this line and the next line of LED matrix
1404
+  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1405
+  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1406
+  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1405 1407
 
1406
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Display row position of stepper queue depth on this line and the next line of LED matrix
1407
-                                         // If you have stuttering on your Delta printer, this option may help you understand how
1408
-                                         // various tweaks you make to your configuration are affecting the printer.
1408
+  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1409
+                                         // If you experience stuttering, reboots, etc. this option can reveal how
1410
+                                         // tweaks made to the configuration are affecting the printer in real-time.
1409 1411
 #endif
1410 1412
 
1411 1413
 #endif // CONFIGURATION_ADV_H

+ 20
- 18
Marlin/example_configurations/Folger Tech/i3-2020/Configuration_adv.h View File

@@ -1383,29 +1383,31 @@
1383 1383
 #endif // I2C_POSITION_ENCODERS
1384 1384
 
1385 1385
 /**
1386
-  * Debug LED's using an 8x8 LED Matrix driven by a Max7219 chip.   Fully assembled versions are available on
1387
-  * eBay for under $2.00 (including shipping) and only require 3 signal wires.
1388
-  *
1389
-  * Check out auctions similar to this: https://www.ebay.com/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=332349290049&_sacat=0
1390
-  */
1391
-
1386
+ * MAX7219 Debug Matrix
1387
+ *
1388
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1389
+ * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1390
+ *
1391
+ * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1392
+ * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1393
+ */
1392 1394
 //#define MAX7219_DEBUG
1393 1395
 #if ENABLED(MAX7219_DEBUG)
1394
-  #define Max7219_clock   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1395
-  #define Max7219_data_in 57  // 78 on Re-ARM
1396
-  #define Max7219_load    44  // 79 on Re-ARM
1396
+  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1397
+  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1398
+  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1397 1399
 
1398
-  /*
1399
-   * These are sample debug features that can be turned on and configured for your use.
1400
-   * The developer will need to manage the use of the various LED's in the 8x8 matrix to avoid conflicts.
1400
+  /**
1401
+   * Sample debug features
1402
+   * If you add more debug displays, be careful to avoid conflicts!
1401 1403
    */
1402
-  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix from idle() routine if firmware is functioning
1403
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Display row position of stepper queue head on this line and the next line of LED matrix
1404
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Display row position of stepper queue tail on this line and the next line of LED matrix
1404
+  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1405
+  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1406
+  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1405 1407
 
1406
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Display row position of stepper queue depth on this line and the next line of LED matrix
1407
-                                         // If you have stuttering on your Delta printer, this option may help you understand how
1408
-                                         // various tweaks you make to your configuration are affecting the printer.
1408
+  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1409
+                                         // If you experience stuttering, reboots, etc. this option can reveal how
1410
+                                         // tweaks made to the configuration are affecting the printer in real-time.
1409 1411
 #endif
1410 1412
 
1411 1413
 #endif // CONFIGURATION_ADV_H

+ 20
- 18
Marlin/example_configurations/Infitary/i3-M508/Configuration_adv.h View File

@@ -1383,29 +1383,31 @@
1383 1383
 #endif // I2C_POSITION_ENCODERS
1384 1384
 
1385 1385
 /**
1386
-  * Debug LED's using an 8x8 LED Matrix driven by a Max7219 chip.   Fully assembled versions are available on
1387
-  * eBay for under $2.00 (including shipping) and only require 3 signal wires.
1388
-  *
1389
-  * Check out auctions similar to this: https://www.ebay.com/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=332349290049&_sacat=0
1390
-  */
1391
-
1386
+ * MAX7219 Debug Matrix
1387
+ *
1388
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1389
+ * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1390
+ *
1391
+ * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1392
+ * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1393
+ */
1392 1394
 //#define MAX7219_DEBUG
1393 1395
 #if ENABLED(MAX7219_DEBUG)
1394
-  #define Max7219_clock   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1395
-  #define Max7219_data_in 57  // 78 on Re-ARM
1396
-  #define Max7219_load    44  // 79 on Re-ARM
1396
+  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1397
+  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1398
+  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1397 1399
 
1398
-  /*
1399
-   * These are sample debug features that can be turned on and configured for your use.
1400
-   * The developer will need to manage the use of the various LED's in the 8x8 matrix to avoid conflicts.
1400
+  /**
1401
+   * Sample debug features
1402
+   * If you add more debug displays, be careful to avoid conflicts!
1401 1403
    */
1402
-  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix from idle() routine if firmware is functioning
1403
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Display row position of stepper queue head on this line and the next line of LED matrix
1404
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Display row position of stepper queue tail on this line and the next line of LED matrix
1404
+  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1405
+  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1406
+  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1405 1407
 
1406
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Display row position of stepper queue depth on this line and the next line of LED matrix
1407
-                                         // If you have stuttering on your Delta printer, this option may help you understand how
1408
-                                         // various tweaks you make to your configuration are affecting the printer.
1408
+  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1409
+                                         // If you experience stuttering, reboots, etc. this option can reveal how
1410
+                                         // tweaks made to the configuration are affecting the printer in real-time.
1409 1411
 #endif
1410 1412
 
1411 1413
 #endif // CONFIGURATION_ADV_H

+ 20
- 18
Marlin/example_configurations/Malyan/M150/Configuration_adv.h View File

@@ -1383,29 +1383,31 @@
1383 1383
 #endif // I2C_POSITION_ENCODERS
1384 1384
 
1385 1385
 /**
1386
-  * Debug LED's using an 8x8 LED Matrix driven by a Max7219 chip.   Fully assembled versions are available on
1387
-  * eBay for under $2.00 (including shipping) and only require 3 signal wires.
1388
-  *
1389
-  * Check out auctions similar to this: https://www.ebay.com/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=332349290049&_sacat=0
1390
-  */
1391
-
1386
+ * MAX7219 Debug Matrix
1387
+ *
1388
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1389
+ * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1390
+ *
1391
+ * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1392
+ * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1393
+ */
1392 1394
 //#define MAX7219_DEBUG
1393 1395
 #if ENABLED(MAX7219_DEBUG)
1394
-  #define Max7219_clock   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1395
-  #define Max7219_data_in 57  // 78 on Re-ARM
1396
-  #define Max7219_load    44  // 79 on Re-ARM
1396
+  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1397
+  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1398
+  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1397 1399
 
1398
-  /*
1399
-   * These are sample debug features that can be turned on and configured for your use.
1400
-   * The developer will need to manage the use of the various LED's in the 8x8 matrix to avoid conflicts.
1400
+  /**
1401
+   * Sample debug features
1402
+   * If you add more debug displays, be careful to avoid conflicts!
1401 1403
    */
1402
-  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix from idle() routine if firmware is functioning
1403
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Display row position of stepper queue head on this line and the next line of LED matrix
1404
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Display row position of stepper queue tail on this line and the next line of LED matrix
1404
+  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1405
+  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1406
+  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1405 1407
 
1406
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Display row position of stepper queue depth on this line and the next line of LED matrix
1407
-                                         // If you have stuttering on your Delta printer, this option may help you understand how
1408
-                                         // various tweaks you make to your configuration are affecting the printer.
1408
+  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1409
+                                         // If you experience stuttering, reboots, etc. this option can reveal how
1410
+                                         // tweaks made to the configuration are affecting the printer in real-time.
1409 1411
 #endif
1410 1412
 
1411 1413
 #endif // CONFIGURATION_ADV_H

+ 20
- 18
Marlin/example_configurations/RigidBot/Configuration_adv.h View File

@@ -1383,29 +1383,31 @@
1383 1383
 #endif // I2C_POSITION_ENCODERS
1384 1384
 
1385 1385
 /**
1386
-  * Debug LED's using an 8x8 LED Matrix driven by a Max7219 chip.   Fully assembled versions are available on
1387
-  * eBay for under $2.00 (including shipping) and only require 3 signal wires.
1388
-  *
1389
-  * Check out auctions similar to this: https://www.ebay.com/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=332349290049&_sacat=0
1390
-  */
1391
-
1386
+ * MAX7219 Debug Matrix
1387
+ *
1388
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1389
+ * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1390
+ *
1391
+ * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1392
+ * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1393
+ */
1392 1394
 //#define MAX7219_DEBUG
1393 1395
 #if ENABLED(MAX7219_DEBUG)
1394
-  #define Max7219_clock   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1395
-  #define Max7219_data_in 57  // 78 on Re-ARM
1396
-  #define Max7219_load    44  // 79 on Re-ARM
1396
+  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1397
+  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1398
+  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1397 1399
 
1398
-  /*
1399
-   * These are sample debug features that can be turned on and configured for your use.
1400
-   * The developer will need to manage the use of the various LED's in the 8x8 matrix to avoid conflicts.
1400
+  /**
1401
+   * Sample debug features
1402
+   * If you add more debug displays, be careful to avoid conflicts!
1401 1403
    */
1402
-  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix from idle() routine if firmware is functioning
1403
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Display row position of stepper queue head on this line and the next line of LED matrix
1404
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Display row position of stepper queue tail on this line and the next line of LED matrix
1404
+  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1405
+  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1406
+  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1405 1407
 
1406
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Display row position of stepper queue depth on this line and the next line of LED matrix
1407
-                                         // If you have stuttering on your Delta printer, this option may help you understand how
1408
-                                         // various tweaks you make to your configuration are affecting the printer.
1408
+  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1409
+                                         // If you experience stuttering, reboots, etc. this option can reveal how
1410
+                                         // tweaks made to the configuration are affecting the printer in real-time.
1409 1411
 #endif
1410 1412
 
1411 1413
 #endif // CONFIGURATION_ADV_H

+ 20
- 18
Marlin/example_configurations/SCARA/Configuration_adv.h View File

@@ -1383,29 +1383,31 @@
1383 1383
 #endif // I2C_POSITION_ENCODERS
1384 1384
 
1385 1385
 /**
1386
-  * Debug LED's using an 8x8 LED Matrix driven by a Max7219 chip.   Fully assembled versions are available on
1387
-  * eBay for under $2.00 (including shipping) and only require 3 signal wires.
1388
-  *
1389
-  * Check out auctions similar to this: https://www.ebay.com/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=332349290049&_sacat=0
1390
-  */
1391
-
1386
+ * MAX7219 Debug Matrix
1387
+ *
1388
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1389
+ * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1390
+ *
1391
+ * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1392
+ * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1393
+ */
1392 1394
 //#define MAX7219_DEBUG
1393 1395
 #if ENABLED(MAX7219_DEBUG)
1394
-  #define Max7219_clock   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1395
-  #define Max7219_data_in 57  // 78 on Re-ARM
1396
-  #define Max7219_load    44  // 79 on Re-ARM
1396
+  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1397
+  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1398
+  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1397 1399
 
1398
-  /*
1399
-   * These are sample debug features that can be turned on and configured for your use.
1400
-   * The developer will need to manage the use of the various LED's in the 8x8 matrix to avoid conflicts.
1400
+  /**
1401
+   * Sample debug features
1402
+   * If you add more debug displays, be careful to avoid conflicts!
1401 1403
    */
1402
-  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix from idle() routine if firmware is functioning
1403
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Display row position of stepper queue head on this line and the next line of LED matrix
1404
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Display row position of stepper queue tail on this line and the next line of LED matrix
1404
+  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1405
+  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1406
+  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1405 1407
 
1406
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Display row position of stepper queue depth on this line and the next line of LED matrix
1407
-                                         // If you have stuttering on your Delta printer, this option may help you understand how
1408
-                                         // various tweaks you make to your configuration are affecting the printer.
1408
+  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1409
+                                         // If you experience stuttering, reboots, etc. this option can reveal how
1410
+                                         // tweaks made to the configuration are affecting the printer in real-time.
1409 1411
 #endif
1410 1412
 
1411 1413
 #endif // CONFIGURATION_ADV_H

+ 20
- 18
Marlin/example_configurations/Sanguinololu/Configuration_adv.h View File

@@ -1372,29 +1372,31 @@
1372 1372
 #endif // I2C_POSITION_ENCODERS
1373 1373
 
1374 1374
 /**
1375
-  * Debug LED's using an 8x8 LED Matrix driven by a Max7219 chip.   Fully assembled versions are available on
1376
-  * eBay for under $2.00 (including shipping) and only require 3 signal wires.
1377
-  *
1378
-  * Check out auctions similar to this: https://www.ebay.com/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=332349290049&_sacat=0
1379
-  */
1380
-
1375
+ * MAX7219 Debug Matrix
1376
+ *
1377
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1378
+ * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1379
+ *
1380
+ * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1381
+ * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1382
+ */
1381 1383
 //#define MAX7219_DEBUG
1382 1384
 #if ENABLED(MAX7219_DEBUG)
1383
-  #define Max7219_clock   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1384
-  #define Max7219_data_in 57  // 78 on Re-ARM
1385
-  #define Max7219_load    44  // 79 on Re-ARM
1385
+  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1386
+  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1387
+  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1386 1388
 
1387
-  /*
1388
-   * These are sample debug features that can be turned on and configured for your use.
1389
-   * The developer will need to manage the use of the various LED's in the 8x8 matrix to avoid conflicts.
1389
+  /**
1390
+   * Sample debug features
1391
+   * If you add more debug displays, be careful to avoid conflicts!
1390 1392
    */
1391
-  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix from idle() routine if firmware is functioning
1392
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Display row position of stepper queue head on this line and the next line of LED matrix
1393
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Display row position of stepper queue tail on this line and the next line of LED matrix
1393
+  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1394
+  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1395
+  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1394 1396
 
1395
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Display row position of stepper queue depth on this line and the next line of LED matrix
1396
-                                         // If you have stuttering on your Delta printer, this option may help you understand how
1397
-                                         // various tweaks you make to your configuration are affecting the printer.
1397
+  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1398
+                                         // If you experience stuttering, reboots, etc. this option can reveal how
1399
+                                         // tweaks made to the configuration are affecting the printer in real-time.
1398 1400
 #endif
1399 1401
 
1400 1402
 #endif // CONFIGURATION_ADV_H

+ 20
- 18
Marlin/example_configurations/TinyBoy2/Configuration_adv.h View File

@@ -1383,29 +1383,31 @@
1383 1383
 #endif // I2C_POSITION_ENCODERS
1384 1384
 
1385 1385
 /**
1386
-  * Debug LED's using an 8x8 LED Matrix driven by a Max7219 chip.   Fully assembled versions are available on
1387
-  * eBay for under $2.00 (including shipping) and only require 3 signal wires.
1388
-  *
1389
-  * Check out auctions similar to this: https://www.ebay.com/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=332349290049&_sacat=0
1390
-  */
1391
-
1386
+ * MAX7219 Debug Matrix
1387
+ *
1388
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1389
+ * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1390
+ *
1391
+ * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1392
+ * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1393
+ */
1392 1394
 //#define MAX7219_DEBUG
1393 1395
 #if ENABLED(MAX7219_DEBUG)
1394
-  #define Max7219_clock   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1395
-  #define Max7219_data_in 57  // 78 on Re-ARM
1396
-  #define Max7219_load    44  // 79 on Re-ARM
1396
+  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1397
+  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1398
+  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1397 1399
 
1398
-  /*
1399
-   * These are sample debug features that can be turned on and configured for your use.
1400
-   * The developer will need to manage the use of the various LED's in the 8x8 matrix to avoid conflicts.
1400
+  /**
1401
+   * Sample debug features
1402
+   * If you add more debug displays, be careful to avoid conflicts!
1401 1403
    */
1402
-  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix from idle() routine if firmware is functioning
1403
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Display row position of stepper queue head on this line and the next line of LED matrix
1404
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Display row position of stepper queue tail on this line and the next line of LED matrix
1404
+  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1405
+  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1406
+  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1405 1407
 
1406
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Display row position of stepper queue depth on this line and the next line of LED matrix
1407
-                                         // If you have stuttering on your Delta printer, this option may help you understand how
1408
-                                         // various tweaks you make to your configuration are affecting the printer.
1408
+  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1409
+                                         // If you experience stuttering, reboots, etc. this option can reveal how
1410
+                                         // tweaks made to the configuration are affecting the printer in real-time.
1409 1411
 #endif
1410 1412
 
1411 1413
 #endif // CONFIGURATION_ADV_H

+ 20
- 18
Marlin/example_configurations/Velleman/K8200/Configuration_adv.h View File

@@ -1396,29 +1396,31 @@
1396 1396
 #endif // I2C_POSITION_ENCODERS
1397 1397
 
1398 1398
 /**
1399
-  * Debug LED's using an 8x8 LED Matrix driven by a Max7219 chip.   Fully assembled versions are available on
1400
-  * eBay for under $2.00 (including shipping) and only require 3 signal wires.
1401
-  *
1402
-  * Check out auctions similar to this: https://www.ebay.com/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=332349290049&_sacat=0
1403
-  */
1404
-
1399
+ * MAX7219 Debug Matrix
1400
+ *
1401
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1402
+ * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1403
+ *
1404
+ * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1405
+ * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1406
+ */
1405 1407
 //#define MAX7219_DEBUG
1406 1408
 #if ENABLED(MAX7219_DEBUG)
1407
-  #define Max7219_clock   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1408
-  #define Max7219_data_in 57  // 78 on Re-ARM
1409
-  #define Max7219_load    44  // 79 on Re-ARM
1409
+  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1410
+  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1411
+  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1410 1412
 
1411
-  /*
1412
-   * These are sample debug features that can be turned on and configured for your use.
1413
-   * The developer will need to manage the use of the various LED's in the 8x8 matrix to avoid conflicts.
1413
+  /**
1414
+   * Sample debug features
1415
+   * If you add more debug displays, be careful to avoid conflicts!
1414 1416
    */
1415
-  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix from idle() routine if firmware is functioning
1416
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Display row position of stepper queue head on this line and the next line of LED matrix
1417
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Display row position of stepper queue tail on this line and the next line of LED matrix
1417
+  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1418
+  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1419
+  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1418 1420
 
1419
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Display row position of stepper queue depth on this line and the next line of LED matrix
1420
-                                         // If you have stuttering on your Delta printer, this option may help you understand how
1421
-                                         // various tweaks you make to your configuration are affecting the printer.
1421
+  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1422
+                                         // If you experience stuttering, reboots, etc. this option can reveal how
1423
+                                         // tweaks made to the configuration are affecting the printer in real-time.
1422 1424
 #endif
1423 1425
 
1424 1426
 #endif // CONFIGURATION_ADV_H

+ 20
- 18
Marlin/example_configurations/Velleman/K8400/Configuration_adv.h View File

@@ -1383,29 +1383,31 @@
1383 1383
 #endif // I2C_POSITION_ENCODERS
1384 1384
 
1385 1385
 /**
1386
-  * Debug LED's using an 8x8 LED Matrix driven by a Max7219 chip.   Fully assembled versions are available on
1387
-  * eBay for under $2.00 (including shipping) and only require 3 signal wires.
1388
-  *
1389
-  * Check out auctions similar to this: https://www.ebay.com/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=332349290049&_sacat=0
1390
-  */
1391
-
1386
+ * MAX7219 Debug Matrix
1387
+ *
1388
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1389
+ * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1390
+ *
1391
+ * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1392
+ * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1393
+ */
1392 1394
 //#define MAX7219_DEBUG
1393 1395
 #if ENABLED(MAX7219_DEBUG)
1394
-  #define Max7219_clock   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1395
-  #define Max7219_data_in 57  // 78 on Re-ARM
1396
-  #define Max7219_load    44  // 79 on Re-ARM
1396
+  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1397
+  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1398
+  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1397 1399
 
1398
-  /*
1399
-   * These are sample debug features that can be turned on and configured for your use.
1400
-   * The developer will need to manage the use of the various LED's in the 8x8 matrix to avoid conflicts.
1400
+  /**
1401
+   * Sample debug features
1402
+   * If you add more debug displays, be careful to avoid conflicts!
1401 1403
    */
1402
-  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix from idle() routine if firmware is functioning
1403
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Display row position of stepper queue head on this line and the next line of LED matrix
1404
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Display row position of stepper queue tail on this line and the next line of LED matrix
1404
+  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1405
+  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1406
+  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1405 1407
 
1406
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Display row position of stepper queue depth on this line and the next line of LED matrix
1407
-                                         // If you have stuttering on your Delta printer, this option may help you understand how
1408
-                                         // various tweaks you make to your configuration are affecting the printer.
1408
+  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1409
+                                         // If you experience stuttering, reboots, etc. this option can reveal how
1410
+                                         // tweaks made to the configuration are affecting the printer in real-time.
1409 1411
 #endif
1410 1412
 
1411 1413
 #endif // CONFIGURATION_ADV_H

+ 20
- 18
Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration_adv.h View File

@@ -1385,29 +1385,31 @@
1385 1385
 #endif // I2C_POSITION_ENCODERS
1386 1386
 
1387 1387
 /**
1388
-  * Debug LED's using an 8x8 LED Matrix driven by a Max7219 chip.   Fully assembled versions are available on
1389
-  * eBay for under $2.00 (including shipping) and only require 3 signal wires.
1390
-  *
1391
-  * Check out auctions similar to this: https://www.ebay.com/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=332349290049&_sacat=0
1392
-  */
1393
-
1388
+ * MAX7219 Debug Matrix
1389
+ *
1390
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1391
+ * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1392
+ *
1393
+ * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1394
+ * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1395
+ */
1394 1396
 //#define MAX7219_DEBUG
1395 1397
 #if ENABLED(MAX7219_DEBUG)
1396
-  #define Max7219_clock   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1397
-  #define Max7219_data_in 57  // 78 on Re-ARM
1398
-  #define Max7219_load    44  // 79 on Re-ARM
1398
+  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1399
+  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1400
+  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1399 1401
 
1400
-  /*
1401
-   * These are sample debug features that can be turned on and configured for your use.
1402
-   * The developer will need to manage the use of the various LED's in the 8x8 matrix to avoid conflicts.
1402
+  /**
1403
+   * Sample debug features
1404
+   * If you add more debug displays, be careful to avoid conflicts!
1403 1405
    */
1404
-  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix from idle() routine if firmware is functioning
1405
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Display row position of stepper queue head on this line and the next line of LED matrix
1406
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Display row position of stepper queue tail on this line and the next line of LED matrix
1406
+  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1407
+  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1408
+  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1407 1409
 
1408
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Display row position of stepper queue depth on this line and the next line of LED matrix
1409
-                                         // If you have stuttering on your Delta printer, this option may help you understand how
1410
-                                         // various tweaks you make to your configuration are affecting the printer.
1410
+  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1411
+                                         // If you experience stuttering, reboots, etc. this option can reveal how
1412
+                                         // tweaks made to the configuration are affecting the printer in real-time.
1411 1413
 #endif
1412 1414
 
1413 1415
 #endif // CONFIGURATION_ADV_H

+ 20
- 18
Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration_adv.h View File

@@ -1385,29 +1385,31 @@
1385 1385
 #endif // I2C_POSITION_ENCODERS
1386 1386
 
1387 1387
 /**
1388
-  * Debug LED's using an 8x8 LED Matrix driven by a Max7219 chip.   Fully assembled versions are available on
1389
-  * eBay for under $2.00 (including shipping) and only require 3 signal wires.
1390
-  *
1391
-  * Check out auctions similar to this: https://www.ebay.com/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=332349290049&_sacat=0
1392
-  */
1393
-
1388
+ * MAX7219 Debug Matrix
1389
+ *
1390
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1391
+ * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1392
+ *
1393
+ * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1394
+ * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1395
+ */
1394 1396
 //#define MAX7219_DEBUG
1395 1397
 #if ENABLED(MAX7219_DEBUG)
1396
-  #define Max7219_clock   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1397
-  #define Max7219_data_in 57  // 78 on Re-ARM
1398
-  #define Max7219_load    44  // 79 on Re-ARM
1398
+  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1399
+  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1400
+  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1399 1401
 
1400
-  /*
1401
-   * These are sample debug features that can be turned on and configured for your use.
1402
-   * The developer will need to manage the use of the various LED's in the 8x8 matrix to avoid conflicts.
1402
+  /**
1403
+   * Sample debug features
1404
+   * If you add more debug displays, be careful to avoid conflicts!
1403 1405
    */
1404
-  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix from idle() routine if firmware is functioning
1405
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Display row position of stepper queue head on this line and the next line of LED matrix
1406
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Display row position of stepper queue tail on this line and the next line of LED matrix
1406
+  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1407
+  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1408
+  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1407 1409
 
1408
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Display row position of stepper queue depth on this line and the next line of LED matrix
1409
-                                         // If you have stuttering on your Delta printer, this option may help you understand how
1410
-                                         // various tweaks you make to your configuration are affecting the printer.
1410
+  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1411
+                                         // If you experience stuttering, reboots, etc. this option can reveal how
1412
+                                         // tweaks made to the configuration are affecting the printer in real-time.
1411 1413
 #endif
1412 1414
 
1413 1415
 #endif // CONFIGURATION_ADV_H

+ 20
- 18
Marlin/example_configurations/delta/generic/Configuration_adv.h View File

@@ -1385,29 +1385,31 @@
1385 1385
 #endif // I2C_POSITION_ENCODERS
1386 1386
 
1387 1387
 /**
1388
-  * Debug LED's using an 8x8 LED Matrix driven by a Max7219 chip.   Fully assembled versions are available on
1389
-  * eBay for under $2.00 (including shipping) and only require 3 signal wires.
1390
-  *
1391
-  * Check out auctions similar to this: https://www.ebay.com/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=332349290049&_sacat=0
1392
-  */
1393
-
1388
+ * MAX7219 Debug Matrix
1389
+ *
1390
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1391
+ * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1392
+ *
1393
+ * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1394
+ * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1395
+ */
1394 1396
 //#define MAX7219_DEBUG
1395 1397
 #if ENABLED(MAX7219_DEBUG)
1396
-  #define Max7219_clock   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1397
-  #define Max7219_data_in 57  // 78 on Re-ARM
1398
-  #define Max7219_load    44  // 79 on Re-ARM
1398
+  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1399
+  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1400
+  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1399 1401
 
1400
-  /*
1401
-   * These are sample debug features that can be turned on and configured for your use.
1402
-   * The developer will need to manage the use of the various LED's in the 8x8 matrix to avoid conflicts.
1402
+  /**
1403
+   * Sample debug features
1404
+   * If you add more debug displays, be careful to avoid conflicts!
1403 1405
    */
1404
-  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix from idle() routine if firmware is functioning
1405
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Display row position of stepper queue head on this line and the next line of LED matrix
1406
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Display row position of stepper queue tail on this line and the next line of LED matrix
1406
+  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1407
+  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1408
+  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1407 1409
 
1408
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Display row position of stepper queue depth on this line and the next line of LED matrix
1409
-                                         // If you have stuttering on your Delta printer, this option may help you understand how
1410
-                                         // various tweaks you make to your configuration are affecting the printer.
1410
+  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1411
+                                         // If you experience stuttering, reboots, etc. this option can reveal how
1412
+                                         // tweaks made to the configuration are affecting the printer in real-time.
1411 1413
 #endif
1412 1414
 
1413 1415
 #endif // CONFIGURATION_ADV_H

+ 20
- 18
Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h View File

@@ -1385,29 +1385,31 @@
1385 1385
 #endif // I2C_POSITION_ENCODERS
1386 1386
 
1387 1387
 /**
1388
-  * Debug LED's using an 8x8 LED Matrix driven by a Max7219 chip.   Fully assembled versions are available on
1389
-  * eBay for under $2.00 (including shipping) and only require 3 signal wires.
1390
-  *
1391
-  * Check out auctions similar to this: https://www.ebay.com/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=332349290049&_sacat=0
1392
-  */
1393
-
1388
+ * MAX7219 Debug Matrix
1389
+ *
1390
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1391
+ * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1392
+ *
1393
+ * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1394
+ * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1395
+ */
1394 1396
 //#define MAX7219_DEBUG
1395 1397
 #if ENABLED(MAX7219_DEBUG)
1396
-  #define Max7219_clock   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1397
-  #define Max7219_data_in 57  // 78 on Re-ARM
1398
-  #define Max7219_load    44  // 79 on Re-ARM
1398
+  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1399
+  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1400
+  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1399 1401
 
1400
-  /*
1401
-   * These are sample debug features that can be turned on and configured for your use.
1402
-   * The developer will need to manage the use of the various LED's in the 8x8 matrix to avoid conflicts.
1402
+  /**
1403
+   * Sample debug features
1404
+   * If you add more debug displays, be careful to avoid conflicts!
1403 1405
    */
1404
-  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix from idle() routine if firmware is functioning
1405
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Display row position of stepper queue head on this line and the next line of LED matrix
1406
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Display row position of stepper queue tail on this line and the next line of LED matrix
1406
+  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1407
+  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1408
+  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1407 1409
 
1408
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Display row position of stepper queue depth on this line and the next line of LED matrix
1409
-                                         // If you have stuttering on your Delta printer, this option may help you understand how
1410
-                                         // various tweaks you make to your configuration are affecting the printer.
1410
+  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1411
+                                         // If you experience stuttering, reboots, etc. this option can reveal how
1412
+                                         // tweaks made to the configuration are affecting the printer in real-time.
1411 1413
 #endif
1412 1414
 
1413 1415
 #endif // CONFIGURATION_ADV_H

+ 20
- 18
Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h View File

@@ -1390,29 +1390,31 @@
1390 1390
 #endif // I2C_POSITION_ENCODERS
1391 1391
 
1392 1392
 /**
1393
-  * Debug LED's using an 8x8 LED Matrix driven by a Max7219 chip.   Fully assembled versions are available on
1394
-  * eBay for under $2.00 (including shipping) and only require 3 signal wires.
1395
-  *
1396
-  * Check out auctions similar to this: https://www.ebay.com/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=332349290049&_sacat=0
1397
-  */
1398
-
1393
+ * MAX7219 Debug Matrix
1394
+ *
1395
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1396
+ * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1397
+ *
1398
+ * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1399
+ * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1400
+ */
1399 1401
 //#define MAX7219_DEBUG
1400 1402
 #if ENABLED(MAX7219_DEBUG)
1401
-  #define Max7219_clock   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1402
-  #define Max7219_data_in 57  // 78 on Re-ARM
1403
-  #define Max7219_load    44  // 79 on Re-ARM
1403
+  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1404
+  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1405
+  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1404 1406
 
1405
-  /*
1406
-   * These are sample debug features that can be turned on and configured for your use.
1407
-   * The developer will need to manage the use of the various LED's in the 8x8 matrix to avoid conflicts.
1407
+  /**
1408
+   * Sample debug features
1409
+   * If you add more debug displays, be careful to avoid conflicts!
1408 1410
    */
1409
-  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix from idle() routine if firmware is functioning
1410
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Display row position of stepper queue head on this line and the next line of LED matrix
1411
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Display row position of stepper queue tail on this line and the next line of LED matrix
1411
+  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1412
+  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1413
+  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1412 1414
 
1413
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Display row position of stepper queue depth on this line and the next line of LED matrix
1414
-                                         // If you have stuttering on your Delta printer, this option may help you understand how
1415
-                                         // various tweaks you make to your configuration are affecting the printer.
1415
+  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1416
+                                         // If you experience stuttering, reboots, etc. this option can reveal how
1417
+                                         // tweaks made to the configuration are affecting the printer in real-time.
1416 1418
 #endif
1417 1419
 
1418 1420
 #endif // CONFIGURATION_ADV_H

+ 20
- 18
Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h View File

@@ -1385,29 +1385,31 @@
1385 1385
 #endif // I2C_POSITION_ENCODERS
1386 1386
 
1387 1387
 /**
1388
-  * Debug LED's using an 8x8 LED Matrix driven by a Max7219 chip.   Fully assembled versions are available on
1389
-  * eBay for under $2.00 (including shipping) and only require 3 signal wires.
1390
-  *
1391
-  * Check out auctions similar to this: https://www.ebay.com/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=332349290049&_sacat=0
1392
-  */
1393
-
1388
+ * MAX7219 Debug Matrix
1389
+ *
1390
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1391
+ * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1392
+ *
1393
+ * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1394
+ * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1395
+ */
1394 1396
 //#define MAX7219_DEBUG
1395 1397
 #if ENABLED(MAX7219_DEBUG)
1396
-  #define Max7219_clock   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1397
-  #define Max7219_data_in 57  // 78 on Re-ARM
1398
-  #define Max7219_load    44  // 79 on Re-ARM
1398
+  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1399
+  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1400
+  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1399 1401
 
1400
-  /*
1401
-   * These are sample debug features that can be turned on and configured for your use.
1402
-   * The developer will need to manage the use of the various LED's in the 8x8 matrix to avoid conflicts.
1402
+  /**
1403
+   * Sample debug features
1404
+   * If you add more debug displays, be careful to avoid conflicts!
1403 1405
    */
1404
-  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix from idle() routine if firmware is functioning
1405
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Display row position of stepper queue head on this line and the next line of LED matrix
1406
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Display row position of stepper queue tail on this line and the next line of LED matrix
1406
+  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1407
+  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1408
+  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1407 1409
 
1408
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Display row position of stepper queue depth on this line and the next line of LED matrix
1409
-                                         // If you have stuttering on your Delta printer, this option may help you understand how
1410
-                                         // various tweaks you make to your configuration are affecting the printer.
1410
+  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1411
+                                         // If you experience stuttering, reboots, etc. this option can reveal how
1412
+                                         // tweaks made to the configuration are affecting the printer in real-time.
1411 1413
 #endif
1412 1414
 
1413 1415
 #endif // CONFIGURATION_ADV_H

+ 20
- 17
Marlin/example_configurations/gCreate/gMax1.5+/Configuration_adv.h View File

@@ -1383,29 +1383,32 @@
1383 1383
 #endif // I2C_POSITION_ENCODERS
1384 1384
 
1385 1385
 /**
1386
-  * Debug LED's using an 8x8 LED Matrix driven by a Max7219 chip.   Fully assembled versions are available on
1387
-  * eBay for under $2.00 (including shipping) and only require 3 signal wires.
1388
-  *
1389
-  * Check out auctions similar to this: https://www.ebay.com/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=332349290049&_sacat=0
1390
-  */
1386
+ * MAX7219 Debug Matrix
1387
+ *
1388
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1389
+ * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1390
+ *
1391
+ * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1392
+ * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1393
+ */
1391 1394
 
1392 1395
 #define MAX7219_DEBUG
1393 1396
 #if ENABLED(MAX7219_DEBUG)
1394
-  #define Max7219_clock   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display 
1395
-  #define Max7219_data_in 57  // 78 on Re-ARM
1396
-  #define Max7219_load    44  // 79 on Re-ARM
1397
+  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display 
1398
+  #define MAX7219_DIN_PIN 57  // 78 on Re-ARM
1399
+  #define MAX7219_LOAD_PIN    44  // 79 on Re-ARM
1397 1400
 
1398
-  /*
1399
-   * These are sample debug features that can be turned on and configured for your use.
1400
-   * The developer will need to manage the use of the various LED's in the 8x8 matrix to avoid conflicts.
1401
+  /**
1402
+   * Sample debug features
1403
+   * If you add more debug displays, be careful to avoid conflicts!
1401 1404
    */
1402
-  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix from idle() routine if firmware is functioning
1403
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Display row position of stepper queue head on this line and the next line of LED matrix
1404
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Display row position of stepper queue tail on this line and the next line of LED matrix
1405
+  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1406
+  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1407
+  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1405 1408
 
1406
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Display row position of stepper queue depth on this line and the next line of LED matrix
1407
-                                         // If you have stuttering on your Delta printer, this option may help you understand how
1408
-                                         // various tweaks you make to your configuration are affecting the printer.
1409
+  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1410
+                                         // If you experience stuttering, reboots, etc. this option can reveal how
1411
+                                         // tweaks made to the configuration are affecting the printer in real-time.
1409 1412
 #endif
1410 1413
 
1411 1414
 #endif // CONFIGURATION_ADV_H

+ 20
- 18
Marlin/example_configurations/makibox/Configuration_adv.h View File

@@ -1383,29 +1383,31 @@
1383 1383
 #endif // I2C_POSITION_ENCODERS
1384 1384
 
1385 1385
 /**
1386
-  * Debug LED's using an 8x8 LED Matrix driven by a Max7219 chip.   Fully assembled versions are available on
1387
-  * eBay for under $2.00 (including shipping) and only require 3 signal wires.
1388
-  *
1389
-  * Check out auctions similar to this: https://www.ebay.com/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=332349290049&_sacat=0
1390
-  */
1391
-
1386
+ * MAX7219 Debug Matrix
1387
+ *
1388
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1389
+ * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1390
+ *
1391
+ * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1392
+ * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1393
+ */
1392 1394
 //#define MAX7219_DEBUG
1393 1395
 #if ENABLED(MAX7219_DEBUG)
1394
-  #define Max7219_clock   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1395
-  #define Max7219_data_in 57  // 78 on Re-ARM
1396
-  #define Max7219_load    44  // 79 on Re-ARM
1396
+  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1397
+  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1398
+  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1397 1399
 
1398
-  /*
1399
-   * These are sample debug features that can be turned on and configured for your use.
1400
-   * The developer will need to manage the use of the various LED's in the 8x8 matrix to avoid conflicts.
1400
+  /**
1401
+   * Sample debug features
1402
+   * If you add more debug displays, be careful to avoid conflicts!
1401 1403
    */
1402
-  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix from idle() routine if firmware is functioning
1403
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Display row position of stepper queue head on this line and the next line of LED matrix
1404
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Display row position of stepper queue tail on this line and the next line of LED matrix
1404
+  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1405
+  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1406
+  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1405 1407
 
1406
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Display row position of stepper queue depth on this line and the next line of LED matrix
1407
-                                         // If you have stuttering on your Delta printer, this option may help you understand how
1408
-                                         // various tweaks you make to your configuration are affecting the printer.
1408
+  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1409
+                                         // If you experience stuttering, reboots, etc. this option can reveal how
1410
+                                         // tweaks made to the configuration are affecting the printer in real-time.
1409 1411
 #endif
1410 1412
 
1411 1413
 #endif // CONFIGURATION_ADV_H

+ 20
- 18
Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h View File

@@ -1383,29 +1383,31 @@
1383 1383
 #endif // I2C_POSITION_ENCODERS
1384 1384
 
1385 1385
 /**
1386
-  * Debug LED's using an 8x8 LED Matrix driven by a Max7219 chip.   Fully assembled versions are available on
1387
-  * eBay for under $2.00 (including shipping) and only require 3 signal wires.
1388
-  *
1389
-  * Check out auctions similar to this: https://www.ebay.com/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=332349290049&_sacat=0
1390
-  */
1391
-
1386
+ * MAX7219 Debug Matrix
1387
+ *
1388
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1389
+ * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1390
+ *
1391
+ * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1392
+ * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1393
+ */
1392 1394
 //#define MAX7219_DEBUG
1393 1395
 #if ENABLED(MAX7219_DEBUG)
1394
-  #define Max7219_clock   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1395
-  #define Max7219_data_in 57  // 78 on Re-ARM
1396
-  #define Max7219_load    44  // 79 on Re-ARM
1396
+  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1397
+  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1398
+  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1397 1399
 
1398
-  /*
1399
-   * These are sample debug features that can be turned on and configured for your use.
1400
-   * The developer will need to manage the use of the various LED's in the 8x8 matrix to avoid conflicts.
1400
+  /**
1401
+   * Sample debug features
1402
+   * If you add more debug displays, be careful to avoid conflicts!
1401 1403
    */
1402
-  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix from idle() routine if firmware is functioning
1403
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Display row position of stepper queue head on this line and the next line of LED matrix
1404
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Display row position of stepper queue tail on this line and the next line of LED matrix
1404
+  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1405
+  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1406
+  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1405 1407
 
1406
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Display row position of stepper queue depth on this line and the next line of LED matrix
1407
-                                         // If you have stuttering on your Delta printer, this option may help you understand how
1408
-                                         // various tweaks you make to your configuration are affecting the printer.
1408
+  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1409
+                                         // If you experience stuttering, reboots, etc. this option can reveal how
1410
+                                         // tweaks made to the configuration are affecting the printer in real-time.
1409 1411
 #endif
1410 1412
 
1411 1413
 #endif // CONFIGURATION_ADV_H

+ 20
- 18
Marlin/example_configurations/wt150/Configuration_adv.h View File

@@ -1383,29 +1383,31 @@
1383 1383
 #endif // I2C_POSITION_ENCODERS
1384 1384
 
1385 1385
 /**
1386
-  * Debug LED's using an 8x8 LED Matrix driven by a Max7219 chip.   Fully assembled versions are available on
1387
-  * eBay for under $2.00 (including shipping) and only require 3 signal wires.
1388
-  *
1389
-  * Check out auctions similar to this: https://www.ebay.com/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=332349290049&_sacat=0
1390
-  */
1391
-
1386
+ * MAX7219 Debug Matrix
1387
+ *
1388
+ * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
1389
+ * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
1390
+ *
1391
+ * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
1392
+ * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
1393
+ */
1392 1394
 //#define MAX7219_DEBUG
1393 1395
 #if ENABLED(MAX7219_DEBUG)
1394
-  #define Max7219_clock   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1395
-  #define Max7219_data_in 57  // 78 on Re-ARM
1396
-  #define Max7219_load    44  // 79 on Re-ARM
1396
+  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
1397
+  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
1398
+  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
1397 1399
 
1398
-  /*
1399
-   * These are sample debug features that can be turned on and configured for your use.
1400
-   * The developer will need to manage the use of the various LED's in the 8x8 matrix to avoid conflicts.
1400
+  /**
1401
+   * Sample debug features
1402
+   * If you add more debug displays, be careful to avoid conflicts!
1401 1403
    */
1402
-  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix from idle() routine if firmware is functioning
1403
-  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Display row position of stepper queue head on this line and the next line of LED matrix
1404
-  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Display row position of stepper queue tail on this line and the next line of LED matrix
1404
+  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
1405
+  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
1406
+  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
1405 1407
 
1406
-  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Display row position of stepper queue depth on this line and the next line of LED matrix
1407
-                                         // If you have stuttering on your Delta printer, this option may help you understand how
1408
-                                         // various tweaks you make to your configuration are affecting the printer.
1408
+  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
1409
+                                         // If you experience stuttering, reboots, etc. this option can reveal how
1410
+                                         // tweaks made to the configuration are affecting the printer in real-time.
1409 1411
 #endif
1410 1412
 
1411 1413
 #endif // CONFIGURATION_ADV_H

Loading…
Cancel
Save