|
|
@ -25,10 +25,6 @@ int absPreheatFanSpeed; |
|
|
|
unsigned long message_millis = 0; |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifdef ULTIPANEL |
|
|
|
static float manual_feedrate[] = MANUAL_FEEDRATE; |
|
|
|
#endif // ULTIPANEL
|
|
|
|
|
|
|
|
/* !Configuration settings */ |
|
|
|
|
|
|
|
//Function pointer to menu functions.
|
|
|
@ -38,97 +34,100 @@ uint8_t lcd_status_message_level; |
|
|
|
char lcd_status_message[LCD_WIDTH+1] = WELCOME_MSG; |
|
|
|
|
|
|
|
#ifdef DOGLCD |
|
|
|
#include "dogm_lcd_implementation.h" |
|
|
|
#include "dogm_lcd_implementation.h" |
|
|
|
#else |
|
|
|
#include "ultralcd_implementation_hitachi_HD44780.h" |
|
|
|
#include "ultralcd_implementation_hitachi_HD44780.h" |
|
|
|
#endif |
|
|
|
|
|
|
|
/* Different menus */ |
|
|
|
// The main status screen
|
|
|
|
static void lcd_status_screen(); |
|
|
|
|
|
|
|
#ifdef ULTIPANEL |
|
|
|
extern bool powersupply; |
|
|
|
static void lcd_main_menu(); |
|
|
|
static void lcd_tune_menu(); |
|
|
|
static void lcd_prepare_menu(); |
|
|
|
static void lcd_move_menu(); |
|
|
|
static void lcd_control_menu(); |
|
|
|
static void lcd_control_temperature_menu(); |
|
|
|
static void lcd_control_temperature_preheat_pla_settings_menu(); |
|
|
|
static void lcd_control_temperature_preheat_abs_settings_menu(); |
|
|
|
static void lcd_control_motion_menu(); |
|
|
|
static void lcd_control_volumetric_menu(); |
|
|
|
#ifdef DOGLCD |
|
|
|
static void lcd_set_contrast(); |
|
|
|
#endif |
|
|
|
#ifdef FWRETRACT |
|
|
|
static void lcd_control_retract_menu(); |
|
|
|
#endif |
|
|
|
static void lcd_sdcard_menu(); |
|
|
|
|
|
|
|
#ifdef DELTA_CALIBRATION_MENU |
|
|
|
static void lcd_delta_calibrate_menu(); |
|
|
|
#endif // DELTA_CALIBRATION_MENU
|
|
|
|
extern bool powersupply; |
|
|
|
static float manual_feedrate[] = MANUAL_FEEDRATE; |
|
|
|
static void lcd_main_menu(); |
|
|
|
static void lcd_tune_menu(); |
|
|
|
static void lcd_prepare_menu(); |
|
|
|
static void lcd_move_menu(); |
|
|
|
static void lcd_control_menu(); |
|
|
|
static void lcd_control_temperature_menu(); |
|
|
|
static void lcd_control_temperature_preheat_pla_settings_menu(); |
|
|
|
static void lcd_control_temperature_preheat_abs_settings_menu(); |
|
|
|
static void lcd_control_motion_menu(); |
|
|
|
static void lcd_control_volumetric_menu(); |
|
|
|
#ifdef DOGLCD |
|
|
|
static void lcd_set_contrast(); |
|
|
|
#endif |
|
|
|
#ifdef FWRETRACT |
|
|
|
static void lcd_control_retract_menu(); |
|
|
|
#endif |
|
|
|
static void lcd_sdcard_menu(); |
|
|
|
|
|
|
|
#if defined(MANUAL_BED_LEVELING) |
|
|
|
#include "mesh_bed_leveling.h" |
|
|
|
static void _lcd_level_bed(); |
|
|
|
static void _lcd_level_bed_homing(); |
|
|
|
static void lcd_level_bed(); |
|
|
|
#endif // MANUAL_BED_LEVELING
|
|
|
|
#ifdef DELTA_CALIBRATION_MENU |
|
|
|
static void lcd_delta_calibrate_menu(); |
|
|
|
#endif |
|
|
|
|
|
|
|
static void lcd_quick_feedback();//Cause an LCD refresh, and give the user visual or audible feedback that something has happened
|
|
|
|
|
|
|
|
/* Different types of actions that can be used in menu items. */ |
|
|
|
static void menu_action_back(menuFunc_t data); |
|
|
|
static void menu_action_submenu(menuFunc_t data); |
|
|
|
static void menu_action_gcode(const char* pgcode); |
|
|
|
static void menu_action_function(menuFunc_t data); |
|
|
|
static void menu_action_sdfile(const char* filename, char* longFilename); |
|
|
|
static void menu_action_sddirectory(const char* filename, char* longFilename); |
|
|
|
static void menu_action_setting_edit_bool(const char* pstr, bool* ptr); |
|
|
|
static void menu_action_setting_edit_int3(const char* pstr, int* ptr, int minValue, int maxValue); |
|
|
|
static void menu_action_setting_edit_float3(const char* pstr, float* ptr, float minValue, float maxValue); |
|
|
|
static void menu_action_setting_edit_float32(const char* pstr, float* ptr, float minValue, float maxValue); |
|
|
|
static void menu_action_setting_edit_float43(const char* pstr, float* ptr, float minValue, float maxValue); |
|
|
|
static void menu_action_setting_edit_float5(const char* pstr, float* ptr, float minValue, float maxValue); |
|
|
|
static void menu_action_setting_edit_float51(const char* pstr, float* ptr, float minValue, float maxValue); |
|
|
|
static void menu_action_setting_edit_float52(const char* pstr, float* ptr, float minValue, float maxValue); |
|
|
|
static void menu_action_setting_edit_long5(const char* pstr, unsigned long* ptr, unsigned long minValue, unsigned long maxValue); |
|
|
|
static void menu_action_setting_edit_callback_bool(const char* pstr, bool* ptr, menuFunc_t callbackFunc); |
|
|
|
static void menu_action_setting_edit_callback_int3(const char* pstr, int* ptr, int minValue, int maxValue, menuFunc_t callbackFunc); |
|
|
|
static void menu_action_setting_edit_callback_float3(const char* pstr, float* ptr, float minValue, float maxValue, menuFunc_t callbackFunc); |
|
|
|
static void menu_action_setting_edit_callback_float32(const char* pstr, float* ptr, float minValue, float maxValue, menuFunc_t callbackFunc); |
|
|
|
static void menu_action_setting_edit_callback_float43(const char* pstr, float* ptr, float minValue, float maxValue, menuFunc_t callbackFunc); |
|
|
|
static void menu_action_setting_edit_callback_float5(const char* pstr, float* ptr, float minValue, float maxValue, menuFunc_t callbackFunc); |
|
|
|
static void menu_action_setting_edit_callback_float51(const char* pstr, float* ptr, float minValue, float maxValue, menuFunc_t callbackFunc); |
|
|
|
static void menu_action_setting_edit_callback_float52(const char* pstr, float* ptr, float minValue, float maxValue, menuFunc_t callbackFunc); |
|
|
|
static void menu_action_setting_edit_callback_long5(const char* pstr, unsigned long* ptr, unsigned long minValue, unsigned long maxValue, menuFunc_t callbackFunc); |
|
|
|
|
|
|
|
#define ENCODER_FEEDRATE_DEADZONE 10 |
|
|
|
|
|
|
|
#if !defined(LCD_I2C_VIKI) |
|
|
|
#if defined(MANUAL_BED_LEVELING) |
|
|
|
#include "mesh_bed_leveling.h" |
|
|
|
static void _lcd_level_bed(); |
|
|
|
static void _lcd_level_bed_homing(); |
|
|
|
static void lcd_level_bed(); |
|
|
|
#endif |
|
|
|
|
|
|
|
static void lcd_quick_feedback();//Cause an LCD refresh, and give the user visual or audible feedback that something has happened
|
|
|
|
|
|
|
|
/* Different types of actions that can be used in menu items. */ |
|
|
|
static void menu_action_back(menuFunc_t data); |
|
|
|
static void menu_action_submenu(menuFunc_t data); |
|
|
|
static void menu_action_gcode(const char* pgcode); |
|
|
|
static void menu_action_function(menuFunc_t data); |
|
|
|
static void menu_action_sdfile(const char* filename, char* longFilename); |
|
|
|
static void menu_action_sddirectory(const char* filename, char* longFilename); |
|
|
|
static void menu_action_setting_edit_bool(const char* pstr, bool* ptr); |
|
|
|
static void menu_action_setting_edit_int3(const char* pstr, int* ptr, int minValue, int maxValue); |
|
|
|
static void menu_action_setting_edit_float3(const char* pstr, float* ptr, float minValue, float maxValue); |
|
|
|
static void menu_action_setting_edit_float32(const char* pstr, float* ptr, float minValue, float maxValue); |
|
|
|
static void menu_action_setting_edit_float43(const char* pstr, float* ptr, float minValue, float maxValue); |
|
|
|
static void menu_action_setting_edit_float5(const char* pstr, float* ptr, float minValue, float maxValue); |
|
|
|
static void menu_action_setting_edit_float51(const char* pstr, float* ptr, float minValue, float maxValue); |
|
|
|
static void menu_action_setting_edit_float52(const char* pstr, float* ptr, float minValue, float maxValue); |
|
|
|
static void menu_action_setting_edit_long5(const char* pstr, unsigned long* ptr, unsigned long minValue, unsigned long maxValue); |
|
|
|
static void menu_action_setting_edit_callback_bool(const char* pstr, bool* ptr, menuFunc_t callbackFunc); |
|
|
|
static void menu_action_setting_edit_callback_int3(const char* pstr, int* ptr, int minValue, int maxValue, menuFunc_t callbackFunc); |
|
|
|
static void menu_action_setting_edit_callback_float3(const char* pstr, float* ptr, float minValue, float maxValue, menuFunc_t callbackFunc); |
|
|
|
static void menu_action_setting_edit_callback_float32(const char* pstr, float* ptr, float minValue, float maxValue, menuFunc_t callbackFunc); |
|
|
|
static void menu_action_setting_edit_callback_float43(const char* pstr, float* ptr, float minValue, float maxValue, menuFunc_t callbackFunc); |
|
|
|
static void menu_action_setting_edit_callback_float5(const char* pstr, float* ptr, float minValue, float maxValue, menuFunc_t callbackFunc); |
|
|
|
static void menu_action_setting_edit_callback_float51(const char* pstr, float* ptr, float minValue, float maxValue, menuFunc_t callbackFunc); |
|
|
|
static void menu_action_setting_edit_callback_float52(const char* pstr, float* ptr, float minValue, float maxValue, menuFunc_t callbackFunc); |
|
|
|
static void menu_action_setting_edit_callback_long5(const char* pstr, unsigned long* ptr, unsigned long minValue, unsigned long maxValue, menuFunc_t callbackFunc); |
|
|
|
|
|
|
|
#define ENCODER_FEEDRATE_DEADZONE 10 |
|
|
|
|
|
|
|
#if !defined(LCD_I2C_VIKI) |
|
|
|
#ifndef ENCODER_STEPS_PER_MENU_ITEM |
|
|
|
#define ENCODER_STEPS_PER_MENU_ITEM 5 |
|
|
|
#endif |
|
|
|
#ifndef ENCODER_PULSES_PER_STEP |
|
|
|
#define ENCODER_PULSES_PER_STEP 1 |
|
|
|
#endif |
|
|
|
#else |
|
|
|
#else |
|
|
|
#ifndef ENCODER_STEPS_PER_MENU_ITEM |
|
|
|
#define ENCODER_STEPS_PER_MENU_ITEM 2 // VIKI LCD rotary encoder uses a different number of steps per rotation
|
|
|
|
#endif |
|
|
|
#ifndef ENCODER_PULSES_PER_STEP |
|
|
|
#define ENCODER_PULSES_PER_STEP 1 |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
/* Helper macros for menus */ |
|
|
|
/* Helper macros for menus */ |
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* START_MENU generates the init code for a menu function |
|
|
|
*/ |
|
|
|
#define START_MENU() do { \ |
|
|
|
#define START_MENU() do { \ |
|
|
|
encoderRateMultiplierEnabled = false; \ |
|
|
|
if (encoderPosition > 0x8000) encoderPosition = 0; \ |
|
|
|
uint8_t encoderLine = encoderPosition / ENCODER_STEPS_PER_MENU_ITEM; \ |
|
|
@ -139,7 +138,7 @@ static void menu_action_setting_edit_callback_long5(const char* pstr, unsigned l |
|
|
|
for (uint8_t _drawLineNr = 0; _drawLineNr < LCD_HEIGHT; _drawLineNr++, _lineNr++) { \ |
|
|
|
_menuItemNr = 0; |
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* MENU_ITEM generates draw & handler code for a menu item, potentially calling: |
|
|
|
* |
|
|
|
* lcd_implementation_drawmenu_[type](sel, row, label, arg3...) |
|
|
@ -160,7 +159,7 @@ static void menu_action_setting_edit_callback_long5(const char* pstr, unsigned l |
|
|
|
* menu_action_setting_edit_int3(PSTR(MSG_SPEED), &feedmultiply, 10, 999) |
|
|
|
* |
|
|
|
*/ |
|
|
|
#define MENU_ITEM(type, label, args...) do { \ |
|
|
|
#define MENU_ITEM(type, label, args...) do { \ |
|
|
|
if (_menuItemNr == _lineNr) { \ |
|
|
|
itemSelected = encoderLine == _menuItemNr; \ |
|
|
|
if (lcdDrawUpdate) \ |
|
|
@ -171,9 +170,9 @@ static void menu_action_setting_edit_callback_long5(const char* pstr, unsigned l |
|
|
|
} \ |
|
|
|
} \ |
|
|
|
_menuItemNr++; \ |
|
|
|
} while(0) |
|
|
|
} while(0) |
|
|
|
|
|
|
|
#ifdef ENCODER_RATE_MULTIPLIER |
|
|
|
#ifdef ENCODER_RATE_MULTIPLIER |
|
|
|
/**
|
|
|
|
* MENU_MULTIPLIER_ITEM generates drawing and handling code for a multiplier menu item |
|
|
|
*/ |
|
|
@ -191,40 +190,41 @@ static void menu_action_setting_edit_callback_long5(const char* pstr, unsigned l |
|
|
|
} \ |
|
|
|
_menuItemNr++; \ |
|
|
|
} while(0) |
|
|
|
#endif //ENCODER_RATE_MULTIPLIER
|
|
|
|
#endif //ENCODER_RATE_MULTIPLIER
|
|
|
|
|
|
|
|
#define MENU_ITEM_DUMMY() do { _menuItemNr++; } while(0) |
|
|
|
#define MENU_ITEM_EDIT(type, label, args...) MENU_ITEM(setting_edit_ ## type, label, PSTR(label), ## args) |
|
|
|
#define MENU_ITEM_EDIT_CALLBACK(type, label, args...) MENU_ITEM(setting_edit_callback_ ## type, label, PSTR(label), ## args) |
|
|
|
#ifdef ENCODER_RATE_MULTIPLIER |
|
|
|
#define MENU_ITEM_DUMMY() do { _menuItemNr++; } while(0) |
|
|
|
#define MENU_ITEM_EDIT(type, label, args...) MENU_ITEM(setting_edit_ ## type, label, PSTR(label), ## args) |
|
|
|
#define MENU_ITEM_EDIT_CALLBACK(type, label, args...) MENU_ITEM(setting_edit_callback_ ## type, label, PSTR(label), ## args) |
|
|
|
#ifdef ENCODER_RATE_MULTIPLIER |
|
|
|
#define MENU_MULTIPLIER_ITEM_EDIT(type, label, args...) MENU_MULTIPLIER_ITEM(setting_edit_ ## type, label, PSTR(label), ## args) |
|
|
|
#define MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(type, label, args...) MENU_MULTIPLIER_ITEM(setting_edit_callback_ ## type, label, PSTR(label), ## args) |
|
|
|
#else //!ENCODER_RATE_MULTIPLIER
|
|
|
|
#else //!ENCODER_RATE_MULTIPLIER
|
|
|
|
#define MENU_MULTIPLIER_ITEM_EDIT(type, label, args...) MENU_ITEM(setting_edit_ ## type, label, PSTR(label), ## args) |
|
|
|
#define MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(type, label, args...) MENU_ITEM(setting_edit_callback_ ## type, label, PSTR(label), ## args) |
|
|
|
#endif //!ENCODER_RATE_MULTIPLIER
|
|
|
|
#define END_MENU() \ |
|
|
|
#endif //!ENCODER_RATE_MULTIPLIER
|
|
|
|
#define END_MENU() \ |
|
|
|
if (encoderLine >= _menuItemNr) { encoderPosition = _menuItemNr * ENCODER_STEPS_PER_MENU_ITEM - 1; encoderLine = encoderPosition / ENCODER_STEPS_PER_MENU_ITEM; }\ |
|
|
|
if (encoderLine >= currentMenuViewOffset + LCD_HEIGHT) { currentMenuViewOffset = encoderLine - LCD_HEIGHT + 1; lcdDrawUpdate = 1; _lineNr = currentMenuViewOffset - 1; _drawLineNr = -1; } \ |
|
|
|
} } while(0) |
|
|
|
|
|
|
|
/** Used variables to keep track of the menu */ |
|
|
|
#ifndef REPRAPWORLD_KEYPAD |
|
|
|
volatile uint8_t buttons;//Contains the bits of the currently pressed buttons.
|
|
|
|
#else |
|
|
|
volatile uint8_t buttons_reprapworld_keypad; // to store the reprapworld_keypad shift register values
|
|
|
|
#endif |
|
|
|
#ifdef LCD_HAS_SLOW_BUTTONS |
|
|
|
volatile uint8_t slow_buttons;//Contains the bits of the currently pressed buttons.
|
|
|
|
#endif |
|
|
|
uint8_t currentMenuViewOffset; /* scroll offset in the current menu */ |
|
|
|
uint32_t blocking_enc; |
|
|
|
uint8_t lastEncoderBits; |
|
|
|
uint32_t encoderPosition; |
|
|
|
#if (SDCARDDETECT > 0) |
|
|
|
bool lcd_oldcardstatus; |
|
|
|
#endif |
|
|
|
#endif //ULTIPANEL
|
|
|
|
/** Used variables to keep track of the menu */ |
|
|
|
#ifndef REPRAPWORLD_KEYPAD |
|
|
|
volatile uint8_t buttons; // Bits of the pressed buttons.
|
|
|
|
#else |
|
|
|
volatile uint8_t buttons_reprapworld_keypad; // The reprapworld_keypad shift register values
|
|
|
|
#endif |
|
|
|
#ifdef LCD_HAS_SLOW_BUTTONS |
|
|
|
volatile uint8_t slow_buttons; // Bits of the pressed buttons.
|
|
|
|
#endif |
|
|
|
uint8_t currentMenuViewOffset; /* scroll offset in the current menu */ |
|
|
|
uint32_t blocking_enc; |
|
|
|
uint8_t lastEncoderBits; |
|
|
|
uint32_t encoderPosition; |
|
|
|
#if (SDCARDDETECT > 0) |
|
|
|
bool lcd_oldcardstatus; |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // ULTIPANEL
|
|
|
|
|
|
|
|
menuFunc_t currentMenu = lcd_status_screen; /* function pointer to the currently active menu */ |
|
|
|
uint32_t lcd_next_update_millis; |
|
|
@ -520,22 +520,21 @@ void _lcd_preheat(int endnum, const float temph, const float tempb, const int fa |
|
|
|
void lcd_preheat_pla0() { _lcd_preheat(0, plaPreheatHotendTemp, plaPreheatHPBTemp, plaPreheatFanSpeed); } |
|
|
|
void lcd_preheat_abs0() { _lcd_preheat(0, absPreheatHotendTemp, absPreheatHPBTemp, absPreheatFanSpeed); } |
|
|
|
|
|
|
|
#if TEMP_SENSOR_1 != 0 //2nd extruder preheat
|
|
|
|
#if TEMP_SENSOR_1 != 0 || TEMP_SENSOR_2 != 0 || TEMP_SENSOR_3 != 0 || TEMP_SENSOR_BED != 0 //more than one extruder present
|
|
|
|
|
|
|
|
#if TEMP_SENSOR_1 != 0 |
|
|
|
void lcd_preheat_pla1() { _lcd_preheat(1, plaPreheatHotendTemp, plaPreheatHPBTemp, plaPreheatFanSpeed); } |
|
|
|
void lcd_preheat_abs1() { _lcd_preheat(1, absPreheatHotendTemp, absPreheatHPBTemp, absPreheatFanSpeed); } |
|
|
|
#endif //2nd extruder preheat
|
|
|
|
|
|
|
|
#if TEMP_SENSOR_2 != 0 //3 extruder preheat
|
|
|
|
#endif |
|
|
|
#if TEMP_SENSOR_2 != 0 |
|
|
|
void lcd_preheat_pla2() { _lcd_preheat(2, plaPreheatHotendTemp, plaPreheatHPBTemp, plaPreheatFanSpeed); } |
|
|
|
void lcd_preheat_abs2() { _lcd_preheat(2, absPreheatHotendTemp, absPreheatHPBTemp, absPreheatFanSpeed); } |
|
|
|
#endif //3 extruder preheat
|
|
|
|
|
|
|
|
#if TEMP_SENSOR_3 != 0 //4 extruder preheat
|
|
|
|
#endif |
|
|
|
#if TEMP_SENSOR_3 != 0 |
|
|
|
void lcd_preheat_pla3() { _lcd_preheat(3, plaPreheatHotendTemp, plaPreheatHPBTemp, plaPreheatFanSpeed); } |
|
|
|
void lcd_preheat_abs3() { _lcd_preheat(3, absPreheatHotendTemp, absPreheatHPBTemp, absPreheatFanSpeed); } |
|
|
|
#endif //4 extruder preheat
|
|
|
|
#endif |
|
|
|
|
|
|
|
#if TEMP_SENSOR_1 != 0 || TEMP_SENSOR_2 != 0 || TEMP_SENSOR_3 != 0 //more than one extruder present
|
|
|
|
void lcd_preheat_pla0123() { |
|
|
|
setTargetHotend0(plaPreheatHotendTemp); |
|
|
|
setTargetHotend1(plaPreheatHotendTemp); |
|
|
@ -548,54 +547,54 @@ void lcd_preheat_abs0() { _lcd_preheat(0, absPreheatHotendTemp, absPreheatHPBTem |
|
|
|
setTargetHotend2(absPreheatHotendTemp); |
|
|
|
_lcd_preheat(3, absPreheatHotendTemp, absPreheatHPBTemp, absPreheatFanSpeed); |
|
|
|
} |
|
|
|
#endif //more than one extruder present
|
|
|
|
|
|
|
|
void lcd_preheat_pla_bedonly() { _lcd_preheat(0, 0, plaPreheatHPBTemp, plaPreheatFanSpeed); } |
|
|
|
void lcd_preheat_abs_bedonly() { _lcd_preheat(0, 0, absPreheatHPBTemp, absPreheatFanSpeed); } |
|
|
|
#if TEMP_SENSOR_0 != 0 |
|
|
|
|
|
|
|
void lcd_preheat_pla_bedonly() { _lcd_preheat(0, 0, plaPreheatHPBTemp, plaPreheatFanSpeed); } |
|
|
|
void lcd_preheat_abs_bedonly() { _lcd_preheat(0, 0, absPreheatHPBTemp, absPreheatFanSpeed); } |
|
|
|
|
|
|
|
static void lcd_preheat_pla_menu() { |
|
|
|
static void lcd_preheat_pla_menu() { |
|
|
|
START_MENU(); |
|
|
|
MENU_ITEM(back, MSG_PREPARE, lcd_prepare_menu); |
|
|
|
MENU_ITEM(function, MSG_PREHEAT_PLA_N MSG_H1, lcd_preheat_pla0); |
|
|
|
#if TEMP_SENSOR_1 != 0 //2 extruder preheat
|
|
|
|
#if TEMP_SENSOR_1 != 0 |
|
|
|
MENU_ITEM(function, MSG_PREHEAT_PLA_N MSG_H2, lcd_preheat_pla1); |
|
|
|
#endif //2 extruder preheat
|
|
|
|
#if TEMP_SENSOR_2 != 0 //3 extruder preheat
|
|
|
|
#endif |
|
|
|
#if TEMP_SENSOR_2 != 0 |
|
|
|
MENU_ITEM(function, MSG_PREHEAT_PLA_N MSG_H3, lcd_preheat_pla2); |
|
|
|
#endif //3 extruder preheat
|
|
|
|
#if TEMP_SENSOR_3 != 0 //4 extruder preheat
|
|
|
|
#endif |
|
|
|
#if TEMP_SENSOR_3 != 0 |
|
|
|
MENU_ITEM(function, MSG_PREHEAT_PLA_N MSG_H4, lcd_preheat_pla3); |
|
|
|
#endif //4 extruder preheat
|
|
|
|
#if TEMP_SENSOR_1 != 0 || TEMP_SENSOR_2 != 0 || TEMP_SENSOR_3 != 0 //all extruder preheat
|
|
|
|
#endif |
|
|
|
MENU_ITEM(function, MSG_PREHEAT_PLA_ALL, lcd_preheat_pla0123); |
|
|
|
#endif //all extruder preheat
|
|
|
|
#if TEMP_SENSOR_BED != 0 |
|
|
|
MENU_ITEM(function, MSG_PREHEAT_PLA_BEDONLY, lcd_preheat_pla_bedonly); |
|
|
|
#endif |
|
|
|
END_MENU(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
static void lcd_preheat_abs_menu() { |
|
|
|
static void lcd_preheat_abs_menu() { |
|
|
|
START_MENU(); |
|
|
|
MENU_ITEM(back, MSG_PREPARE, lcd_prepare_menu); |
|
|
|
MENU_ITEM(function, MSG_PREHEAT_ABS_N MSG_H1, lcd_preheat_abs0); |
|
|
|
#if TEMP_SENSOR_1 != 0 //2 extruder preheat
|
|
|
|
#if TEMP_SENSOR_1 != 0 |
|
|
|
MENU_ITEM(function, MSG_PREHEAT_ABS_N MSG_H2, lcd_preheat_abs1); |
|
|
|
#endif //2 extruder preheat
|
|
|
|
#if TEMP_SENSOR_2 != 0 //3 extruder preheat
|
|
|
|
#endif |
|
|
|
#if TEMP_SENSOR_2 != 0 |
|
|
|
MENU_ITEM(function, MSG_PREHEAT_ABS_N MSG_H3, lcd_preheat_abs2); |
|
|
|
#endif //3 extruder preheat
|
|
|
|
#if TEMP_SENSOR_3 != 0 //4 extruder preheat
|
|
|
|
#endif |
|
|
|
#if TEMP_SENSOR_3 != 0 |
|
|
|
MENU_ITEM(function, MSG_PREHEAT_ABS_N MSG_H4, lcd_preheat_abs3); |
|
|
|
#endif //4 extruder preheat
|
|
|
|
#if TEMP_SENSOR_1 != 0 || TEMP_SENSOR_2 != 0 || TEMP_SENSOR_3 != 0 //all extruder preheat
|
|
|
|
#endif |
|
|
|
MENU_ITEM(function, MSG_PREHEAT_ABS_ALL, lcd_preheat_abs0123); |
|
|
|
#endif //all extruder preheat
|
|
|
|
#if TEMP_SENSOR_BED != 0 |
|
|
|
MENU_ITEM(function, MSG_PREHEAT_ABS_BEDONLY, lcd_preheat_abs_bedonly); |
|
|
|
#endif |
|
|
|
END_MENU(); |
|
|
|
} |
|
|
|
} |
|
|
|
#endif |
|
|
|
|
|
|
|
#endif // more than one temperature sensor present
|
|
|
|
|
|
|
|
void lcd_cooldown() { |
|
|
|
setTargetHotend0(0); |
|
|
@ -618,7 +617,7 @@ static void lcd_prepare_menu() { |
|
|
|
MENU_ITEM(function, MSG_SET_HOME_OFFSETS, lcd_set_home_offsets); |
|
|
|
//MENU_ITEM(gcode, MSG_SET_ORIGIN, PSTR("G92 X0 Y0 Z0"));
|
|
|
|
#if TEMP_SENSOR_0 != 0 |
|
|
|
#if TEMP_SENSOR_1 != 0 || TEMP_SENSOR_2 != 0 || TEMP_SENSOR_BED != 0 |
|
|
|
#if TEMP_SENSOR_1 != 0 || TEMP_SENSOR_2 != 0 || TEMP_SENSOR_3 != 0 || TEMP_SENSOR_BED != 0 |
|
|
|
MENU_ITEM(submenu, MSG_PREHEAT_PLA, lcd_preheat_pla_menu); |
|
|
|
MENU_ITEM(submenu, MSG_PREHEAT_ABS, lcd_preheat_abs_menu); |
|
|
|
#else |
|
|
|