[2.0.x] Tweaks and additions for MAX7219 (#11034)
This commit is contained in:
		@@ -1670,27 +1670,28 @@
 | 
			
		||||
/**
 | 
			
		||||
 * MAX7219 Debug Matrix
 | 
			
		||||
 *
 | 
			
		||||
 * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip, which can be used as a status
 | 
			
		||||
 * display. Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
 | 
			
		||||
 *
 | 
			
		||||
 * Fully assembled MAX7219 boards can be found on the internet for under $2(US).
 | 
			
		||||
 * For example, see https://www.ebay.com/sch/i.html?_nkw=332349290049
 | 
			
		||||
 * Add support for a low-cost 8x8 LED Matrix based on the Max7219 chip as a realtime status display.
 | 
			
		||||
 * Requires 3 signal wires. Some useful debug options are included to demonstrate its usage.
 | 
			
		||||
 */
 | 
			
		||||
//#define MAX7219_DEBUG
 | 
			
		||||
#if ENABLED(MAX7219_DEBUG)
 | 
			
		||||
  #define MAX7219_CLK_PIN   64  // 77 on Re-ARM       // Configuration of the 3 pins to control the display
 | 
			
		||||
  #define MAX7219_DIN_PIN   57  // 78 on Re-ARM
 | 
			
		||||
  #define MAX7219_LOAD_PIN  44  // 79 on Re-ARM
 | 
			
		||||
  #define MAX7219_CLK_PIN   64
 | 
			
		||||
  #define MAX7219_DIN_PIN   57
 | 
			
		||||
  #define MAX7219_LOAD_PIN  44
 | 
			
		||||
 | 
			
		||||
  //#define MAX7219_GCODE       // Add the M7219 G-code to control the LED matrix
 | 
			
		||||
  #define MAX7219_INIT_TEST     // Do a test pattern at initialization (Set to 2 for spiral)
 | 
			
		||||
  #define MAX7219_ROTATE     0  // Rotate the display clockwise (in multiples of +/- 90°)
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
   * Sample debug features
 | 
			
		||||
   * If you add more debug displays, be careful to avoid conflicts!
 | 
			
		||||
   */
 | 
			
		||||
  #define MAX7219_DEBUG_PRINTER_ALIVE    // Blink corner LED of 8x8 matrix to show that the firmware is functioning
 | 
			
		||||
  #define MAX7219_DEBUG_STEPPER_HEAD  3  // Show the stepper queue head position on this and the next LED matrix row
 | 
			
		||||
  #define MAX7219_DEBUG_STEPPER_TAIL  5  // Show the stepper queue tail position on this and the next LED matrix row
 | 
			
		||||
  #define MAX7219_DEBUG_PLANNER_HEAD  3  // Show the planner queue head position on this and the next LED matrix row
 | 
			
		||||
  #define MAX7219_DEBUG_PLANNER_TAIL  5  // Show the planner queue tail position on this and the next LED matrix row
 | 
			
		||||
 | 
			
		||||
  #define MAX7219_DEBUG_STEPPER_QUEUE 0  // Show the current stepper queue depth on this and the next LED matrix row
 | 
			
		||||
  #define MAX7219_DEBUG_PLANNER_QUEUE 0  // Show the current planner queue depth on this and the next LED matrix row
 | 
			
		||||
                                         // If you experience stuttering, reboots, etc. this option can reveal how
 | 
			
		||||
                                         // tweaks made to the configuration are affecting the printer in real-time.
 | 
			
		||||
#endif
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user