Update indentation, file-wrapping for Marlin 2.0.x
This commit is contained in:
parent
60af705e6d
commit
4e2baeb3e1
@ -28,9 +28,9 @@
|
|||||||
#ifndef CONDITIONALS_LCD_H // Get the LCD defines which are needed first
|
#ifndef CONDITIONALS_LCD_H // Get the LCD defines which are needed first
|
||||||
#define CONDITIONALS_LCD_H
|
#define CONDITIONALS_LCD_H
|
||||||
|
|
||||||
#define LCD_HAS_DIRECTIONAL_BUTTONS (BUTTON_EXISTS(UP) || BUTTON_EXISTS(DWN) || BUTTON_EXISTS(LFT) || BUTTON_EXISTS(RT))
|
#define LCD_HAS_DIRECTIONAL_BUTTONS (BUTTON_EXISTS(UP) || BUTTON_EXISTS(DWN) || BUTTON_EXISTS(LFT) || BUTTON_EXISTS(RT))
|
||||||
|
|
||||||
#if ENABLED(CARTESIO_UI)
|
#if ENABLED(CARTESIO_UI)
|
||||||
|
|
||||||
#define DOGLCD
|
#define DOGLCD
|
||||||
#define ULTIPANEL
|
#define ULTIPANEL
|
||||||
@ -38,11 +38,11 @@
|
|||||||
#define LCD_CONTRAST_MIN 60
|
#define LCD_CONTRAST_MIN 60
|
||||||
#define LCD_CONTRAST_MAX 140
|
#define LCD_CONTRAST_MAX 140
|
||||||
|
|
||||||
#elif ENABLED(MAKRPANEL)
|
#elif ENABLED(MAKRPANEL)
|
||||||
|
|
||||||
#define U8GLIB_ST7565_64128N
|
#define U8GLIB_ST7565_64128N
|
||||||
|
|
||||||
#elif ENABLED(ANET_KEYPAD_LCD)
|
#elif ENABLED(ANET_KEYPAD_LCD)
|
||||||
|
|
||||||
#define REPRAPWORLD_KEYPAD
|
#define REPRAPWORLD_KEYPAD
|
||||||
#define REPRAPWORLD_KEYPAD_MOVE_STEP 10.0
|
#define REPRAPWORLD_KEYPAD_MOVE_STEP 10.0
|
||||||
@ -55,15 +55,15 @@
|
|||||||
#define ENCODER_STEPS_PER_MENU_ITEM 1
|
#define ENCODER_STEPS_PER_MENU_ITEM 1
|
||||||
#define REVERSE_MENU_DIRECTION
|
#define REVERSE_MENU_DIRECTION
|
||||||
|
|
||||||
#elif ENABLED(ANET_FULL_GRAPHICS_LCD)
|
#elif ENABLED(ANET_FULL_GRAPHICS_LCD)
|
||||||
|
|
||||||
#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||||
|
|
||||||
#elif ENABLED(BQ_LCD_SMART_CONTROLLER)
|
#elif ENABLED(BQ_LCD_SMART_CONTROLLER)
|
||||||
|
|
||||||
#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||||
|
|
||||||
#elif ENABLED(miniVIKI) || ENABLED(VIKI2) || ENABLED(ELB_FULL_GRAPHIC_CONTROLLER) || ENABLED(AZSMZ_12864)
|
#elif ENABLED(miniVIKI) || ENABLED(VIKI2) || ENABLED(ELB_FULL_GRAPHIC_CONTROLLER) || ENABLED(AZSMZ_12864)
|
||||||
|
|
||||||
#define ULTRA_LCD //general LCD support, also 16x2
|
#define ULTRA_LCD //general LCD support, also 16x2
|
||||||
#define DOGLCD // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
|
#define DOGLCD // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
|
||||||
@ -92,26 +92,26 @@
|
|||||||
#define U8GLIB_ST7565_64128N
|
#define U8GLIB_ST7565_64128N
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#elif ENABLED(OLED_PANEL_TINYBOY2)
|
#elif ENABLED(OLED_PANEL_TINYBOY2)
|
||||||
|
|
||||||
#define U8GLIB_SSD1306
|
#define U8GLIB_SSD1306
|
||||||
#define ULTIPANEL
|
#define ULTIPANEL
|
||||||
#define REVERSE_ENCODER_DIRECTION
|
#define REVERSE_ENCODER_DIRECTION
|
||||||
#define REVERSE_MENU_DIRECTION
|
#define REVERSE_MENU_DIRECTION
|
||||||
|
|
||||||
#elif ENABLED(RA_CONTROL_PANEL)
|
#elif ENABLED(RA_CONTROL_PANEL)
|
||||||
|
|
||||||
#define LCD_I2C_TYPE_PCA8574
|
#define LCD_I2C_TYPE_PCA8574
|
||||||
#define LCD_I2C_ADDRESS 0x27 // I2C Address of the port expander
|
#define LCD_I2C_ADDRESS 0x27 // I2C Address of the port expander
|
||||||
#define ULTIPANEL
|
#define ULTIPANEL
|
||||||
|
|
||||||
#elif ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
|
#elif ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
|
||||||
|
|
||||||
#define DOGLCD
|
#define DOGLCD
|
||||||
#define U8GLIB_ST7920
|
#define U8GLIB_ST7920
|
||||||
#define ULTIPANEL
|
#define ULTIPANEL
|
||||||
|
|
||||||
#elif ENABLED(CR10_STOCKDISPLAY)
|
#elif ENABLED(CR10_STOCKDISPLAY)
|
||||||
|
|
||||||
#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||||
#ifndef ST7920_DELAY_1
|
#ifndef ST7920_DELAY_1
|
||||||
@ -124,66 +124,66 @@
|
|||||||
#define ST7920_DELAY_3 DELAY_2_NOP
|
#define ST7920_DELAY_3 DELAY_2_NOP
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#elif ENABLED(MKS_12864OLED)
|
#elif ENABLED(MKS_12864OLED)
|
||||||
|
|
||||||
#define REPRAP_DISCOUNT_SMART_CONTROLLER
|
#define REPRAP_DISCOUNT_SMART_CONTROLLER
|
||||||
#define U8GLIB_SH1106
|
#define U8GLIB_SH1106
|
||||||
|
|
||||||
#elif ENABLED(MKS_MINI_12864)
|
#elif ENABLED(MKS_MINI_12864)
|
||||||
|
|
||||||
#define MINIPANEL
|
#define MINIPANEL
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENABLED(MAKRPANEL) || ENABLED(MINIPANEL)
|
#if ENABLED(MAKRPANEL) || ENABLED(MINIPANEL)
|
||||||
#define DOGLCD
|
#define DOGLCD
|
||||||
#define ULTIPANEL
|
#define ULTIPANEL
|
||||||
#define DEFAULT_LCD_CONTRAST 17
|
#define DEFAULT_LCD_CONTRAST 17
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Generic support for SSD1306 / SH1106 OLED based LCDs.
|
// Generic support for SSD1306 / SH1106 OLED based LCDs.
|
||||||
#if ENABLED(U8GLIB_SSD1306) || ENABLED(U8GLIB_SH1106)
|
#if ENABLED(U8GLIB_SSD1306) || ENABLED(U8GLIB_SH1106)
|
||||||
#define ULTRA_LCD //general LCD support, also 16x2
|
#define ULTRA_LCD //general LCD support, also 16x2
|
||||||
#define DOGLCD // Support for I2C LCD 128x64 (Controller SSD1306 / SH1106 graphic Display Family)
|
#define DOGLCD // Support for I2C LCD 128x64 (Controller SSD1306 / SH1106 graphic Display Family)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENABLED(PANEL_ONE) || ENABLED(U8GLIB_SH1106)
|
#if ENABLED(PANEL_ONE) || ENABLED(U8GLIB_SH1106)
|
||||||
|
|
||||||
#define ULTIMAKERCONTROLLER
|
#define ULTIMAKERCONTROLLER
|
||||||
|
|
||||||
#elif ENABLED(MAKEBOARD_MINI_2_LINE_DISPLAY_1602)
|
#elif ENABLED(MAKEBOARD_MINI_2_LINE_DISPLAY_1602)
|
||||||
|
|
||||||
#define REPRAP_DISCOUNT_SMART_CONTROLLER
|
#define REPRAP_DISCOUNT_SMART_CONTROLLER
|
||||||
#define LCD_WIDTH 16
|
#define LCD_WIDTH 16
|
||||||
#define LCD_HEIGHT 2
|
#define LCD_HEIGHT 2
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) || ENABLED(LCD_FOR_MELZI)
|
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) || ENABLED(LCD_FOR_MELZI)
|
||||||
#define DOGLCD
|
#define DOGLCD
|
||||||
#define U8GLIB_ST7920
|
#define U8GLIB_ST7920
|
||||||
#define REPRAP_DISCOUNT_SMART_CONTROLLER
|
#define REPRAP_DISCOUNT_SMART_CONTROLLER
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENABLED(ULTIMAKERCONTROLLER) \
|
#if ENABLED(ULTIMAKERCONTROLLER) \
|
||||||
|| ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) \
|
|| ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) \
|
||||||
|| ENABLED(G3D_PANEL) \
|
|| ENABLED(G3D_PANEL) \
|
||||||
|| ENABLED(RIGIDBOT_PANEL)
|
|| ENABLED(RIGIDBOT_PANEL)
|
||||||
#define ULTIPANEL
|
#define ULTIPANEL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENABLED(REPRAPWORLD_KEYPAD)
|
#if ENABLED(REPRAPWORLD_KEYPAD)
|
||||||
#define NEWPANEL
|
#define NEWPANEL
|
||||||
#if ENABLED(ULTIPANEL) && !defined(REPRAPWORLD_KEYPAD_MOVE_STEP)
|
#if ENABLED(ULTIPANEL) && !defined(REPRAPWORLD_KEYPAD_MOVE_STEP)
|
||||||
#define REPRAPWORLD_KEYPAD_MOVE_STEP 1.0
|
#define REPRAPWORLD_KEYPAD_MOVE_STEP 1.0
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* I2C PANELS
|
* I2C PANELS
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if ENABLED(LCD_I2C_SAINSMART_YWROBOT)
|
#if ENABLED(LCD_I2C_SAINSMART_YWROBOT)
|
||||||
|
|
||||||
// Note: This controller requires F.Malpartida's LiquidCrystal_I2C library
|
// Note: This controller requires F.Malpartida's LiquidCrystal_I2C library
|
||||||
// https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home
|
// https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home
|
||||||
@ -192,7 +192,7 @@
|
|||||||
#define LCD_I2C_ADDRESS 0x27 // I2C Address of the port expander
|
#define LCD_I2C_ADDRESS 0x27 // I2C Address of the port expander
|
||||||
#define ULTIPANEL
|
#define ULTIPANEL
|
||||||
|
|
||||||
#elif ENABLED(LCD_I2C_PANELOLU2)
|
#elif ENABLED(LCD_I2C_PANELOLU2)
|
||||||
|
|
||||||
// PANELOLU2 LCD with status LEDs, separate encoder and click inputs
|
// PANELOLU2 LCD with status LEDs, separate encoder and click inputs
|
||||||
|
|
||||||
@ -201,7 +201,7 @@
|
|||||||
#define LCD_USE_I2C_BUZZER //comment out to disable buzzer on LCD
|
#define LCD_USE_I2C_BUZZER //comment out to disable buzzer on LCD
|
||||||
#define ULTIPANEL
|
#define ULTIPANEL
|
||||||
|
|
||||||
#elif ENABLED(LCD_I2C_VIKI)
|
#elif ENABLED(LCD_I2C_VIKI)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
|
* Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
|
||||||
@ -221,12 +221,12 @@
|
|||||||
#define STD_ENCODER_PULSES_PER_STEP 1
|
#define STD_ENCODER_PULSES_PER_STEP 1
|
||||||
#define STD_ENCODER_STEPS_PER_MENU_ITEM 2
|
#define STD_ENCODER_STEPS_PER_MENU_ITEM 2
|
||||||
|
|
||||||
#elif ENABLED(G3D_PANEL)
|
#elif ENABLED(G3D_PANEL)
|
||||||
|
|
||||||
#define STD_ENCODER_PULSES_PER_STEP 2
|
#define STD_ENCODER_PULSES_PER_STEP 2
|
||||||
#define STD_ENCODER_STEPS_PER_MENU_ITEM 1
|
#define STD_ENCODER_STEPS_PER_MENU_ITEM 1
|
||||||
|
|
||||||
#elif ENABLED(miniVIKI) || ENABLED(VIKI2) \
|
#elif ENABLED(miniVIKI) || ENABLED(VIKI2) \
|
||||||
|| ENABLED(ELB_FULL_GRAPHIC_CONTROLLER) \
|
|| ENABLED(ELB_FULL_GRAPHIC_CONTROLLER) \
|
||||||
|| ENABLED(AZSMZ_12864) \
|
|| ENABLED(AZSMZ_12864) \
|
||||||
|| ENABLED(OLED_PANEL_TINYBOY2) \
|
|| ENABLED(OLED_PANEL_TINYBOY2) \
|
||||||
@ -235,44 +235,44 @@
|
|||||||
|| ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
|
|| ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
|
||||||
#define STD_ENCODER_PULSES_PER_STEP 4
|
#define STD_ENCODER_PULSES_PER_STEP 4
|
||||||
#define STD_ENCODER_STEPS_PER_MENU_ITEM 1
|
#define STD_ENCODER_STEPS_PER_MENU_ITEM 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef STD_ENCODER_PULSES_PER_STEP
|
#ifndef STD_ENCODER_PULSES_PER_STEP
|
||||||
#define STD_ENCODER_PULSES_PER_STEP 5
|
#define STD_ENCODER_PULSES_PER_STEP 5
|
||||||
#endif
|
#endif
|
||||||
#ifndef STD_ENCODER_STEPS_PER_MENU_ITEM
|
#ifndef STD_ENCODER_STEPS_PER_MENU_ITEM
|
||||||
#define STD_ENCODER_STEPS_PER_MENU_ITEM 1
|
#define STD_ENCODER_STEPS_PER_MENU_ITEM 1
|
||||||
#endif
|
#endif
|
||||||
#ifndef ENCODER_PULSES_PER_STEP
|
#ifndef ENCODER_PULSES_PER_STEP
|
||||||
#define ENCODER_PULSES_PER_STEP STD_ENCODER_PULSES_PER_STEP
|
#define ENCODER_PULSES_PER_STEP STD_ENCODER_PULSES_PER_STEP
|
||||||
#endif
|
#endif
|
||||||
#ifndef ENCODER_STEPS_PER_MENU_ITEM
|
#ifndef ENCODER_STEPS_PER_MENU_ITEM
|
||||||
#define ENCODER_STEPS_PER_MENU_ITEM STD_ENCODER_STEPS_PER_MENU_ITEM
|
#define ENCODER_STEPS_PER_MENU_ITEM STD_ENCODER_STEPS_PER_MENU_ITEM
|
||||||
#endif
|
#endif
|
||||||
#ifndef ENCODER_FEEDRATE_DEADZONE
|
#ifndef ENCODER_FEEDRATE_DEADZONE
|
||||||
#define ENCODER_FEEDRATE_DEADZONE 6
|
#define ENCODER_FEEDRATE_DEADZONE 6
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Shift register panels
|
// Shift register panels
|
||||||
// ---------------------
|
// ---------------------
|
||||||
// 2 wire Non-latching LCD SR from:
|
// 2 wire Non-latching LCD SR from:
|
||||||
// https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection
|
// https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection
|
||||||
|
|
||||||
#if ENABLED(SAV_3DLCD)
|
#if ENABLED(SAV_3DLCD)
|
||||||
#define SR_LCD_2W_NL // Non latching 2 wire shift register
|
#define SR_LCD_2W_NL // Non latching 2 wire shift register
|
||||||
#define ULTIPANEL
|
#define ULTIPANEL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENABLED(DOGLCD) // Change number of lines to match the DOG graphic display
|
#if ENABLED(DOGLCD) // Change number of lines to match the DOG graphic display
|
||||||
#ifndef LCD_WIDTH
|
#ifndef LCD_WIDTH
|
||||||
#define LCD_WIDTH 22
|
#define LCD_WIDTH 22
|
||||||
#endif
|
#endif
|
||||||
#ifndef LCD_HEIGHT
|
#ifndef LCD_HEIGHT
|
||||||
#define LCD_HEIGHT 5
|
#define LCD_HEIGHT 5
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENABLED(ULTIPANEL)
|
#if ENABLED(ULTIPANEL)
|
||||||
#define NEWPANEL // Disable this if you actually have no click-encoder panel
|
#define NEWPANEL // Disable this if you actually have no click-encoder panel
|
||||||
#define ULTRA_LCD
|
#define ULTRA_LCD
|
||||||
#ifndef LCD_WIDTH
|
#ifndef LCD_WIDTH
|
||||||
@ -281,16 +281,16 @@
|
|||||||
#ifndef LCD_HEIGHT
|
#ifndef LCD_HEIGHT
|
||||||
#define LCD_HEIGHT 4
|
#define LCD_HEIGHT 4
|
||||||
#endif
|
#endif
|
||||||
#elif ENABLED(ULTRA_LCD) // no panel but just LCD
|
#elif ENABLED(ULTRA_LCD) // no panel but just LCD
|
||||||
#ifndef LCD_WIDTH
|
#ifndef LCD_WIDTH
|
||||||
#define LCD_WIDTH 16
|
#define LCD_WIDTH 16
|
||||||
#endif
|
#endif
|
||||||
#ifndef LCD_HEIGHT
|
#ifndef LCD_HEIGHT
|
||||||
#define LCD_HEIGHT 2
|
#define LCD_HEIGHT 2
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENABLED(DOGLCD)
|
#if ENABLED(DOGLCD)
|
||||||
/* Custom characters defined in font dogm_font_data_Marlin_symbols.h / Marlin_symbols.fon */
|
/* Custom characters defined in font dogm_font_data_Marlin_symbols.h / Marlin_symbols.fon */
|
||||||
// \x00 intentionally skipped to avoid problems in strings
|
// \x00 intentionally skipped to avoid problems in strings
|
||||||
#define LCD_STR_REFRESH "\x01"
|
#define LCD_STR_REFRESH "\x01"
|
||||||
@ -310,7 +310,7 @@
|
|||||||
// Symbol characters
|
// Symbol characters
|
||||||
#define LCD_STR_FILAM_DIA "\xf8"
|
#define LCD_STR_FILAM_DIA "\xf8"
|
||||||
#define LCD_STR_FILAM_MUL "\xa4"
|
#define LCD_STR_FILAM_MUL "\xa4"
|
||||||
#else
|
#else
|
||||||
/* Custom characters defined in the first 8 characters of the LCD */
|
/* Custom characters defined in the first 8 characters of the LCD */
|
||||||
#define LCD_BEDTEMP_CHAR 0x00 // Print only as a char. This will have 'unexpected' results when used in a string!
|
#define LCD_BEDTEMP_CHAR 0x00 // Print only as a char. This will have 'unexpected' results when used in a string!
|
||||||
#define LCD_DEGREE_CHAR 0x01
|
#define LCD_DEGREE_CHAR 0x01
|
||||||
@ -321,12 +321,12 @@
|
|||||||
#define LCD_FEEDRATE_CHAR 0x06
|
#define LCD_FEEDRATE_CHAR 0x06
|
||||||
#define LCD_CLOCK_CHAR 0x07
|
#define LCD_CLOCK_CHAR 0x07
|
||||||
#define LCD_STR_ARROW_RIGHT ">" /* from the default character set */
|
#define LCD_STR_ARROW_RIGHT ">" /* from the default character set */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default LCD contrast for dogm-like LCD displays
|
* Default LCD contrast for dogm-like LCD displays
|
||||||
*/
|
*/
|
||||||
#if ENABLED(DOGLCD)
|
#if ENABLED(DOGLCD)
|
||||||
|
|
||||||
#define HAS_LCD_CONTRAST ( \
|
#define HAS_LCD_CONTRAST ( \
|
||||||
ENABLED(MAKRPANEL) \
|
ENABLED(MAKRPANEL) \
|
||||||
@ -348,23 +348,23 @@
|
|||||||
#define DEFAULT_LCD_CONTRAST 32
|
#define DEFAULT_LCD_CONTRAST 32
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Boot screens
|
// Boot screens
|
||||||
#if DISABLED(ULTRA_LCD)
|
#if DISABLED(ULTRA_LCD)
|
||||||
#undef SHOW_BOOTSCREEN
|
#undef SHOW_BOOTSCREEN
|
||||||
#elif !defined(BOOTSCREEN_TIMEOUT)
|
#elif !defined(BOOTSCREEN_TIMEOUT)
|
||||||
#define BOOTSCREEN_TIMEOUT 2500
|
#define BOOTSCREEN_TIMEOUT 2500
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define HAS_DEBUG_MENU ENABLED(LCD_PROGRESS_BAR_TEST)
|
#define HAS_DEBUG_MENU ENABLED(LCD_PROGRESS_BAR_TEST)
|
||||||
|
|
||||||
// MK2 Multiplexer forces SINGLENOZZLE to be enabled
|
// MK2 Multiplexer forces SINGLENOZZLE to be enabled
|
||||||
#if ENABLED(MK2_MULTIPLEXER)
|
#if ENABLED(MK2_MULTIPLEXER)
|
||||||
#define SINGLENOZZLE
|
#define SINGLENOZZLE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Extruders have some combination of stepper motors and hotends
|
* Extruders have some combination of stepper motors and hotends
|
||||||
* so we separate these concepts into the defines:
|
* so we separate these concepts into the defines:
|
||||||
*
|
*
|
||||||
@ -375,27 +375,27 @@
|
|||||||
* TOOL_E_INDEX - Index to use when getting/setting the tool state
|
* TOOL_E_INDEX - Index to use when getting/setting the tool state
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#if ENABLED(SINGLENOZZLE) || ENABLED(MIXING_EXTRUDER) // One hotend, one thermistor, no XY offset
|
#if ENABLED(SINGLENOZZLE) || ENABLED(MIXING_EXTRUDER) // One hotend, one thermistor, no XY offset
|
||||||
#define HOTENDS 1
|
#define HOTENDS 1
|
||||||
#undef TEMP_SENSOR_1_AS_REDUNDANT
|
#undef TEMP_SENSOR_1_AS_REDUNDANT
|
||||||
#undef HOTEND_OFFSET_X
|
#undef HOTEND_OFFSET_X
|
||||||
#undef HOTEND_OFFSET_Y
|
#undef HOTEND_OFFSET_Y
|
||||||
#else // Two hotends
|
#else // Two hotends
|
||||||
#define HOTENDS EXTRUDERS
|
#define HOTENDS EXTRUDERS
|
||||||
#if ENABLED(SWITCHING_NOZZLE) && !defined(HOTEND_OFFSET_Z)
|
#if ENABLED(SWITCHING_NOZZLE) && !defined(HOTEND_OFFSET_Z)
|
||||||
#define HOTEND_OFFSET_Z { 0 }
|
#define HOTEND_OFFSET_Z { 0 }
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define HOTEND_LOOP() for (int8_t e = 0; e < HOTENDS; e++)
|
#define HOTEND_LOOP() for (int8_t e = 0; e < HOTENDS; e++)
|
||||||
|
|
||||||
#if HOTENDS == 1
|
#if HOTENDS == 1
|
||||||
#define HOTEND_INDEX 0
|
#define HOTEND_INDEX 0
|
||||||
#else
|
#else
|
||||||
#define HOTEND_INDEX e
|
#define HOTEND_INDEX e
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENABLED(SWITCHING_EXTRUDER) || ENABLED(MIXING_EXTRUDER) // Unified E axis
|
#if ENABLED(SWITCHING_EXTRUDER) || ENABLED(MIXING_EXTRUDER) // Unified E axis
|
||||||
#if ENABLED(MIXING_EXTRUDER)
|
#if ENABLED(MIXING_EXTRUDER)
|
||||||
#define E_STEPPERS MIXING_STEPPERS
|
#define E_STEPPERS MIXING_STEPPERS
|
||||||
#else
|
#else
|
||||||
@ -403,29 +403,29 @@
|
|||||||
#endif
|
#endif
|
||||||
#define E_MANUAL 1
|
#define E_MANUAL 1
|
||||||
#define TOOL_E_INDEX 0
|
#define TOOL_E_INDEX 0
|
||||||
#else
|
#else
|
||||||
#define E_STEPPERS EXTRUDERS
|
#define E_STEPPERS EXTRUDERS
|
||||||
#define E_MANUAL EXTRUDERS
|
#define E_MANUAL EXTRUDERS
|
||||||
#define TOOL_E_INDEX current_block->active_extruder
|
#define TOOL_E_INDEX current_block->active_extruder
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* DISTINCT_E_FACTORS affects how some E factors are accessed
|
* DISTINCT_E_FACTORS affects how some E factors are accessed
|
||||||
*/
|
*/
|
||||||
#if ENABLED(DISTINCT_E_FACTORS) && E_STEPPERS > 1
|
#if ENABLED(DISTINCT_E_FACTORS) && E_STEPPERS > 1
|
||||||
#define XYZE_N (XYZ + E_STEPPERS)
|
#define XYZE_N (XYZ + E_STEPPERS)
|
||||||
#define E_AXIS_N (E_AXIS + extruder)
|
#define E_AXIS_N (E_AXIS + extruder)
|
||||||
#else
|
#else
|
||||||
#undef DISTINCT_E_FACTORS
|
#undef DISTINCT_E_FACTORS
|
||||||
#define XYZE_N XYZE
|
#define XYZE_N XYZE
|
||||||
#define E_AXIS_N E_AXIS
|
#define E_AXIS_N E_AXIS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The BLTouch Probe emulates a servo probe
|
* The BLTouch Probe emulates a servo probe
|
||||||
* and uses "special" angles for its state.
|
* and uses "special" angles for its state.
|
||||||
*/
|
*/
|
||||||
#if ENABLED(BLTOUCH)
|
#if ENABLED(BLTOUCH)
|
||||||
#ifndef Z_ENDSTOP_SERVO_NR
|
#ifndef Z_ENDSTOP_SERVO_NR
|
||||||
#define Z_ENDSTOP_SERVO_NR 0
|
#define Z_ENDSTOP_SERVO_NR 0
|
||||||
#endif
|
#endif
|
||||||
@ -460,35 +460,35 @@
|
|||||||
#else
|
#else
|
||||||
#define TEST_BLTOUCH() _TEST_BLTOUCH(Z_MIN_PROBE)
|
#define TEST_BLTOUCH() _TEST_BLTOUCH(Z_MIN_PROBE)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set a flag for a servo probe
|
* Set a flag for a servo probe
|
||||||
*/
|
*/
|
||||||
#define HAS_Z_SERVO_ENDSTOP (defined(Z_ENDSTOP_SERVO_NR) && Z_ENDSTOP_SERVO_NR >= 0)
|
#define HAS_Z_SERVO_ENDSTOP (defined(Z_ENDSTOP_SERVO_NR) && Z_ENDSTOP_SERVO_NR >= 0)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* UBL has its own manual probing, so this just causes trouble.
|
* UBL has its own manual probing, so this just causes trouble.
|
||||||
*/
|
*/
|
||||||
#if ENABLED(AUTO_BED_LEVELING_UBL)
|
#if ENABLED(AUTO_BED_LEVELING_UBL)
|
||||||
#undef PROBE_MANUALLY
|
#undef PROBE_MANUALLY
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set a flag for any enabled probe
|
* Set a flag for any enabled probe
|
||||||
*/
|
*/
|
||||||
#define PROBE_SELECTED (ENABLED(PROBE_MANUALLY) || ENABLED(FIX_MOUNTED_PROBE) || ENABLED(Z_PROBE_ALLEN_KEY) || HAS_Z_SERVO_ENDSTOP || ENABLED(Z_PROBE_SLED) || ENABLED(SOLENOID_PROBE))
|
#define PROBE_SELECTED (ENABLED(PROBE_MANUALLY) || ENABLED(FIX_MOUNTED_PROBE) || ENABLED(Z_PROBE_ALLEN_KEY) || HAS_Z_SERVO_ENDSTOP || ENABLED(Z_PROBE_SLED) || ENABLED(SOLENOID_PROBE))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clear probe pin settings when no probe is selected
|
* Clear probe pin settings when no probe is selected
|
||||||
*/
|
*/
|
||||||
#if !PROBE_SELECTED || ENABLED(PROBE_MANUALLY)
|
#if !PROBE_SELECTED || ENABLED(PROBE_MANUALLY)
|
||||||
#undef Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
|
#undef Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
|
||||||
#undef Z_MIN_PROBE_ENDSTOP
|
#undef Z_MIN_PROBE_ENDSTOP
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define HAS_SOFTWARE_ENDSTOPS (ENABLED(MIN_SOFTWARE_ENDSTOPS) || ENABLED(MAX_SOFTWARE_ENDSTOPS))
|
#define HAS_SOFTWARE_ENDSTOPS (ENABLED(MIN_SOFTWARE_ENDSTOPS) || ENABLED(MAX_SOFTWARE_ENDSTOPS))
|
||||||
#define HAS_RESUME_CONTINUE (ENABLED(NEWPANEL) || ENABLED(EMERGENCY_PARSER))
|
#define HAS_RESUME_CONTINUE (ENABLED(NEWPANEL) || ENABLED(EMERGENCY_PARSER))
|
||||||
#define HAS_COLOR_LEDS (ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED))
|
#define HAS_COLOR_LEDS (ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED))
|
||||||
|
|
||||||
#endif // CONDITIONALS_LCD_H
|
#endif // CONDITIONALS_LCD_H
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -26,6 +26,9 @@
|
|||||||
* Test configuration values for errors at compile-time.
|
* Test configuration values for errors at compile-time.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef _SANITYCHECK_H_
|
||||||
|
#define _SANITYCHECK_H_
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Require gcc 4.7 or newer (first included with Arduino 1.6.8) for C++11 features.
|
* Require gcc 4.7 or newer (first included with Arduino 1.6.8) for C++11 features.
|
||||||
*/
|
*/
|
||||||
@ -1361,5 +1364,6 @@ static_assert(COUNT(sanity_arr_1) <= XYZE_N, "DEFAULT_AXIS_STEPS_PER_UNIT has to
|
|||||||
static_assert(COUNT(sanity_arr_2) <= XYZE_N, "DEFAULT_MAX_FEEDRATE has too many elements.");
|
static_assert(COUNT(sanity_arr_2) <= XYZE_N, "DEFAULT_MAX_FEEDRATE has too many elements.");
|
||||||
static_assert(COUNT(sanity_arr_3) <= XYZE_N, "DEFAULT_MAX_ACCELERATION has too many elements.");
|
static_assert(COUNT(sanity_arr_3) <= XYZE_N, "DEFAULT_MAX_ACCELERATION has too many elements.");
|
||||||
|
|
||||||
|
|
||||||
#include "../HAL/HAL_SanityCheck.h" // get CPU specific checks
|
#include "../HAL/HAL_SanityCheck.h" // get CPU specific checks
|
||||||
|
|
||||||
|
#endif // _SANITYCHECK_H_
|
||||||
|
@ -20,6 +20,11 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef _VERSION_H_
|
||||||
|
#define _VERSION_H_
|
||||||
|
|
||||||
|
#include "MarlinConfig.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This file is the standard Marlin version identifier file, all fields can be
|
* This file is the standard Marlin version identifier file, all fields can be
|
||||||
* overriden by the ones defined on _Version.h by using the Configuration.h
|
* overriden by the ones defined on _Version.h by using the Configuration.h
|
||||||
@ -48,7 +53,7 @@
|
|||||||
* here we define this default string as the date where the latest release
|
* here we define this default string as the date where the latest release
|
||||||
* version was tagged.
|
* version was tagged.
|
||||||
*/
|
*/
|
||||||
#define STRING_DISTRIBUTION_DATE "2017-07-27 12:00"
|
#define STRING_DISTRIBUTION_DATE "2017-10-19 12:00"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Required minimum Configuration.h and Configuration_adv.h file versions.
|
* Required minimum Configuration.h and Configuration_adv.h file versions.
|
||||||
@ -92,3 +97,5 @@
|
|||||||
#define WEBSITE_URL "http://marlinfw.org"
|
#define WEBSITE_URL "http://marlinfw.org"
|
||||||
|
|
||||||
#endif // USE_AUTOMATIC_VERSIONING
|
#endif // USE_AUTOMATIC_VERSIONING
|
||||||
|
|
||||||
|
#endif // _VERSION_H_
|
||||||
|
Loading…
Reference in New Issue
Block a user