Minor spacing fixes
This commit is contained in:
parent
e741241721
commit
4f59ee8978
@ -10899,7 +10899,7 @@ inline void gcode_M502() {
|
||||
#if ENABLED(MAX7219_GCODE)
|
||||
/**
|
||||
* M7219: Control the Max7219 LED matrix
|
||||
*
|
||||
*
|
||||
* I - Initialize (clear) the matrix
|
||||
* F - Fill the matrix (set all bits)
|
||||
* P - Dump the LEDs[] array values
|
||||
@ -10908,7 +10908,7 @@ inline void gcode_M502() {
|
||||
* X<pos> - X position of an LED to set or toggle
|
||||
* Y<pos> - Y position of an LED to set or toggle
|
||||
* V<value> - The potentially 32-bit value or on/off state to set
|
||||
* (for example: a chain of 4 Max7219 devices can have 32 bit
|
||||
* (for example: a chain of 4 Max7219 devices can have 32 bit
|
||||
* rows or columns depending upon rotation)
|
||||
*/
|
||||
inline void gcode_M7219() {
|
||||
|
@ -35,7 +35,7 @@
|
||||
* support functions available to control the LEDs in the 8x8 grid.
|
||||
*
|
||||
* If you are using the Max7219 matrix for firmware debug purposes in time sensitive
|
||||
* areas of the code, please be aware that the orientation (rotation) of the display can
|
||||
* areas of the code, please be aware that the orientation (rotation) of the display can
|
||||
* affect the speed. The Max7219 can update a single column fairly fast. It is much
|
||||
* faster to do a Max7219_Set_Column() with a rotation of 90 or 270 degrees than to do
|
||||
* a Max7219_Set_Row(). The opposite is true for rotations of 0 or 180 degrees.
|
||||
@ -107,8 +107,8 @@ void Max7219_idle_tasks();
|
||||
#define MAX7219_X_LEDS (8 * MAX7219_NUMBER_UNITS)
|
||||
#define MAX7219_Y_LEDS 8
|
||||
#define XOR_7219(x, y) LEDs[y + (x >> 3) * 8] ^= _BV(7 - (x & 0x07))
|
||||
#define SET_PIXEL_7219(x, y) LEDs[y + (x >> 3) * 8] |= _BV(7 - (x & 0x07))
|
||||
#define CLEAR_PIXEL_7219(x, y) LEDs[y + (x >> 3) * 8] &= (_BV(7 - (x & 0x07)) ^ 0xff)
|
||||
#define SET_PIXEL_7219(x, y) LEDs[y + (x >> 3) * 8] |= _BV(7 - (x & 0x07))
|
||||
#define CLEAR_PIXEL_7219(x, y) LEDs[y + (x >> 3) * 8] &= (_BV(7 - (x & 0x07)) ^ 0xFF)
|
||||
#define BIT_7219(x, y) TEST(LEDs[y + (x >> 3) * 8], 7 - (x & 0x07))
|
||||
#define SEND_7219(R) do{ for (int8_t jj = 0; jj < MAX7219_NUMBER_UNITS; jj++) Max7219(max7219_reg_digit0 + (R & 0x7), LEDs[(R & 0x7) + jj * 8]); Max7219_pulse_load(); }while(0)
|
||||
#elif _ROT == 90
|
||||
@ -117,7 +117,7 @@ void Max7219_idle_tasks();
|
||||
#define MAX7219_Y_LEDS (8 * MAX7219_NUMBER_UNITS)
|
||||
#define XOR_7219(x, y) LEDs[x + (((MAX7219_Y_LEDS - 1 - y) >> 3) * 8)] ^= _BV((y & 0x7))
|
||||
#define SET_PIXEL_7219(x, y) LEDs[x + (((MAX7219_Y_LEDS - 1 - y) >> 3) * 8)] |= _BV((y & 0x7))
|
||||
#define CLEAR_PIXEL_7219(x, y) LEDs[x + (((MAX7219_Y_LEDS - 1 - y) >> 3) * 8)] &= (_BV((y & 0x7)) ^ 0xff)
|
||||
#define CLEAR_PIXEL_7219(x, y) LEDs[x + (((MAX7219_Y_LEDS - 1 - y) >> 3) * 8)] &= (_BV((y & 0x7)) ^ 0xFF)
|
||||
#define BIT_7219(x, y) TEST(LEDs[x + (((MAX7219_Y_LEDS - 1 - y) >> 3) * 8)], (y & 0x7))
|
||||
#define SEND_7219(R) do{ for (int8_t jj = 0; jj < MAX7219_NUMBER_UNITS; jj++) Max7219(max7219_reg_digit0 + (R & 0x7), LEDs[(R & 0x7) + jj * 8]); Max7219_pulse_load(); }while(0)
|
||||
#elif _ROT == 180
|
||||
@ -125,8 +125,8 @@ void Max7219_idle_tasks();
|
||||
#define MAX7219_X_LEDS (8 * MAX7219_NUMBER_UNITS)
|
||||
#define MAX7219_Y_LEDS 8
|
||||
#define XOR_7219(x, y) LEDs[y + ((MAX7219_X_LEDS - 1 - x) >> 3) * 8] ^= _BV((x & 0x07))
|
||||
#define SET_PIXEL_7219(x, y) LEDs[y + ((MAX7219_X_LEDS - 1 - x) >> 3) * 8] |= _BV((x & 0x07))
|
||||
#define CLEAR_PIXEL_7219(x, y) LEDs[y + ((MAX7219_X_LEDS - 1 - x) >> 3) * 8] &= (_BV((x & 0x07)) ^ 0xff)
|
||||
#define SET_PIXEL_7219(x, y) LEDs[y + ((MAX7219_X_LEDS - 1 - x) >> 3) * 8] |= _BV((x & 0x07))
|
||||
#define CLEAR_PIXEL_7219(x, y) LEDs[y + ((MAX7219_X_LEDS - 1 - x) >> 3) * 8] &= (_BV((x & 0x07)) ^ 0xFF)
|
||||
#define BIT_7219(x, y) TEST(LEDs[y + ((MAX7219_X_LEDS - 1 - x) >> 3) * 8], ((x & 0x07)))
|
||||
#define SEND_7219(R) do{ for (int8_t jj = 0; jj < MAX7219_NUMBER_UNITS; jj++) Max7219(max7219_reg_digit7 - (R & 0x7), LEDs[(R & 0x7) + jj * 8]); Max7219_pulse_load(); }while(0)
|
||||
#elif _ROT == 270
|
||||
@ -135,7 +135,7 @@ void Max7219_idle_tasks();
|
||||
#define MAX7219_Y_LEDS (8 * MAX7219_NUMBER_UNITS)
|
||||
#define XOR_7219(x, y) LEDs[x + (y >> 3) * 8] ^= _BV(7 - (y & 0x7))
|
||||
#define SET_PIXEL_7219(x, y) LEDs[x + (y >> 3) * 8] |= _BV(7 - (y & 0x7))
|
||||
#define CLEAR_PIXEL_7219(x, y) LEDs[x + (y >> 3) * 8] &= (_BV(7 - (y & 0x7)) ^ 0xff)
|
||||
#define CLEAR_PIXEL_7219(x, y) LEDs[x + (y >> 3) * 8] &= (_BV(7 - (y & 0x7)) ^ 0xFF)
|
||||
#define BIT_7219(x, y) TEST(LEDs[x + ( y >> 3) * 8], 7 - (y & 0x7))
|
||||
#define SEND_7219(R) do{ for (int8_t jj = 0; jj < MAX7219_NUMBER_UNITS; jj++) Max7219(max7219_reg_digit7 - (R & 0x7), LEDs[(R & 0x7) + jj * 8]); Max7219_pulse_load(); }while(0)
|
||||
#else
|
||||
|
@ -1523,7 +1523,7 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE && Y_MAX_LENGTH >= Y_BED_SIZE,
|
||||
#endif
|
||||
#if ENABLED(STEALTHCHOP) && !HAS_STEALTHCHOP
|
||||
#error "STEALTHCHOP requires TMC2130 or TMC2208 stepper drivers."
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Digipot requirement
|
||||
|
@ -2219,8 +2219,8 @@ void MarlinSettings::reset() {
|
||||
SERIAL_ECHOPAIR("EEPROM can hold ", calc_num_meshes());
|
||||
SERIAL_ECHOLNPGM(" meshes.\n");
|
||||
}
|
||||
|
||||
// ubl.report_current_mesh(PORTVAR_SOLO); // This is too verbose for large mesh's. A better (more terse)
|
||||
|
||||
//ubl.report_current_mesh(PORTVAR_SOLO); // This is too verbose for large mesh's. A better (more terse)
|
||||
// solution needs to be found.
|
||||
#elif ENABLED(AUTO_BED_LEVELING_BILINEAR)
|
||||
|
||||
|
@ -1559,12 +1559,12 @@
|
||||
incremental_LSF(&lsf_results, PROBE_PT_3_X, PROBE_PT_3_Y, measured_z);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
STOW_PROBE();
|
||||
#ifdef Z_AFTER_PROBING
|
||||
move_z_after_probing();
|
||||
#endif
|
||||
|
||||
|
||||
if (abort_flag) {
|
||||
SERIAL_ECHOPGM("?Error probing point. Aborting operation.\n");
|
||||
return;
|
||||
@ -1625,7 +1625,7 @@
|
||||
#ifdef Z_AFTER_PROBING
|
||||
move_z_after_probing();
|
||||
#endif
|
||||
|
||||
|
||||
if (abort_flag || finish_incremental_LSF(&lsf_results)) {
|
||||
SERIAL_ECHOPGM("Could not complete LSF!");
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user