Browse Source

Patch some Max7219 comments

Scott Lahteine 5 years ago
parent
commit
79f49040f1
1 changed files with 12 additions and 12 deletions
  1. 12
    12
      Marlin/src/feature/Max7219_Debug_LEDs.cpp

+ 12
- 12
Marlin/src/feature/Max7219_Debug_LEDs.cpp View File

@@ -416,24 +416,24 @@ void Max7219::set_columns_32bits(const uint8_t x, uint32_t val) {
416 416
 void Max7219::register_setup() {
417 417
   for (uint8_t i = 0; i < MAX7219_NUMBER_UNITS; i++)
418 418
     send(max7219_reg_scanLimit, 0x07);
419
-  pulse_load();                        // tell the chips to load the clocked out data
419
+  pulse_load();                               // Tell the chips to load the clocked out data
420 420
 
421 421
   for (uint8_t i = 0; i < MAX7219_NUMBER_UNITS; i++)
422
-    send(max7219_reg_decodeMode, 0x00);     // using an led matrix (not digits)
423
-  pulse_load();                        // tell the chips to load the clocked out data
422
+    send(max7219_reg_decodeMode, 0x00);       // Using an led matrix (not digits)
423
+  pulse_load();                               // Tell the chips to load the clocked out data
424 424
 
425 425
   for (uint8_t i = 0; i < MAX7219_NUMBER_UNITS; i++)
426
-    send(max7219_reg_shutdown, 0x01);       // not in shutdown mode
427
-  pulse_load();                        // tell the chips to load the clocked out data
426
+    send(max7219_reg_shutdown, 0x01);         // Not in shutdown mode
427
+  pulse_load();                               // Tell the chips to load the clocked out data
428 428
 
429 429
   for (uint8_t i = 0; i < MAX7219_NUMBER_UNITS; i++)
430
-    send(max7219_reg_displayTest, 0x00);    // no display test
431
-  pulse_load();                        // tell the chips to load the clocked out data
430
+    send(max7219_reg_displayTest, 0x00);      // No display test
431
+  pulse_load();                               // Tell the chips to load the clocked out data
432 432
 
433 433
   for (uint8_t i = 0; i < MAX7219_NUMBER_UNITS; i++)
434
-    send(max7219_reg_intensity, 0x01 & 0x0F); // the first 0x0F is the value you can set
435
-                                                 // range: 0x00 to 0x0F
436
-  pulse_load();                          // tell the chips to load the clocked out data
434
+    send(max7219_reg_intensity, 0x01 & 0x0F); // The first 0x0F is the value you can set
435
+                                              // Range: 0x00 to 0x0F
436
+  pulse_load();                               // Tell the chips to load the clocked out data
437 437
 }
438 438
 
439 439
 #ifdef MAX7219_INIT_TEST
@@ -472,10 +472,10 @@ void Max7219::init() {
472 472
 
473 473
   register_setup();
474 474
 
475
-  for (uint8_t i = 0; i <= 7; i++) {      // Empty registers to turn all LEDs off
475
+  for (uint8_t i = 0; i <= 7; i++) {  // Empty registers to turn all LEDs off
476 476
     led_line[i] = 0x00;
477 477
     send(max7219_reg_digit0 + i, 0);
478
-    pulse_load();                 // tell the chips to load the clocked out data
478
+    pulse_load();                     // Tell the chips to load the clocked out data
479 479
   }
480 480
 
481 481
   #ifdef MAX7219_INIT_TEST

Loading…
Cancel
Save