Browse Source

Make M7219 I more robust and nice to look at

Make M2719 initialize the Max7219 registers and then run the initialization pattern (if one is specified).
pull/1/head
Roxy-3D 6 years ago
committed by GitHub
parent
commit
60f1376798
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      Marlin/src/gcode/feature/leds/M7219.cpp

4
Marlin/src/gcode/feature/leds/M7219.cpp

@ -42,8 +42,10 @@
* rows or columns depending upon rotation)
*/
void GcodeSuite::M7219() {
if (parser.seen('I'))
if (parser.seen('I')) {
Max7219_Clear();
Max7219_init();
}
if (parser.seen('F'))
for (uint8_t x = 0; x < MAX7219_X_LEDS; x++)

Loading…
Cancel
Save