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).
2.0.x
Roxy-3D 6 years ago committed by GitHub
parent fd15b1495a
commit 60f1376798
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save