Bläddra i källkod

Patch some Max7219 comments

Scott Lahteine 5 år sedan
förälder
incheckning
79f49040f1
1 ändrade filer med 12 tillägg och 12 borttagningar
  1. 12
    12
      Marlin/src/feature/Max7219_Debug_LEDs.cpp

+ 12
- 12
Marlin/src/feature/Max7219_Debug_LEDs.cpp Visa fil

416
 void Max7219::register_setup() {
416
 void Max7219::register_setup() {
417
   for (uint8_t i = 0; i < MAX7219_NUMBER_UNITS; i++)
417
   for (uint8_t i = 0; i < MAX7219_NUMBER_UNITS; i++)
418
     send(max7219_reg_scanLimit, 0x07);
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
   for (uint8_t i = 0; i < MAX7219_NUMBER_UNITS; i++)
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
   for (uint8_t i = 0; i < MAX7219_NUMBER_UNITS; i++)
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
   for (uint8_t i = 0; i < MAX7219_NUMBER_UNITS; i++)
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
   for (uint8_t i = 0; i < MAX7219_NUMBER_UNITS; i++)
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
 #ifdef MAX7219_INIT_TEST
439
 #ifdef MAX7219_INIT_TEST
472
 
472
 
473
   register_setup();
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
     led_line[i] = 0x00;
476
     led_line[i] = 0x00;
477
     send(max7219_reg_digit0 + i, 0);
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
   #ifdef MAX7219_INIT_TEST
481
   #ifdef MAX7219_INIT_TEST

Laddar…
Avbryt
Spara