static void lcd_menu_material_settings() { lcd_scroll_menu(PSTR("MATERIAL"), 7, lcd_material_settings_callback, lcd_material_settings_details_callback); if (lcd_lib_button_pressed) { if (IS_SELECTED_SCROLL(0)) { lcd_change_to_menu(lcd_menu_material_main); lcd_material_store_current_material(); } else if (IS_SELECTED_SCROLL(1)) LCD_EDIT_SETTING(material[active_extruder].temperature, "Temperature", "C", 0, HEATER_0_MAXTEMP - 15); else if (IS_SELECTED_SCROLL(2)) LCD_EDIT_SETTING(material[active_extruder].bed_temperature, "Buildplate Temp.", "C", 0, BED_MAXTEMP - 15); else if (IS_SELECTED_SCROLL(3)) LCD_EDIT_SETTING_FLOAT001(material[active_extruder].diameter, "Material Diameter", "mm", 0, 100); else if (IS_SELECTED_SCROLL(4)) LCD_EDIT_SETTING(material[active_extruder].fan_speed, "Fan speed", "%", 0, 100); else if (IS_SELECTED_SCROLL(5)) LCD_EDIT_SETTING(material[active_extruder].flow, "Material flow", "%", 1, 1000); else if (IS_SELECTED_SCROLL(6)) lcd_change_to_menu(lcd_menu_material_settings_store); } }
static void lcd_menu_print_tune_retraction() { lcd_scroll_menu(PSTR("RETRACTION"), 3 + (EXTRUDERS > 1 ? 1 : 0), lcd_retraction_item, lcd_retraction_details); if (lcd_lib_button_pressed) { if (IS_SELECTED_SCROLL(0)) lcd_change_to_menu(lcd_menu_print_tune, SCROLL_MENU_ITEM_POS(6)); else if (IS_SELECTED_SCROLL(1)) LCD_EDIT_SETTING_FLOAT001(retract_length, "Retract length", "mm", 0, 50); else if (IS_SELECTED_SCROLL(2)) LCD_EDIT_SETTING_SPEED(retract_feedrate, "Retract speed", "mm/sec", 0, max_feedrate[E_AXIS] * 60); #if EXTRUDERS > 1 else if (IS_SELECTED_SCROLL(3)) LCD_EDIT_SETTING_FLOAT001(extruder_swap_retract_length, "Extruder change", "mm", 0, 50); #endif } }
static void lcd_menu_material_settings() { #ifdef USE_CHANGE_TEMPERATURE lcd_scroll_menu(PSTR("MATERIAL"), 8 + BED_MENU_OFFSET, lcd_material_settings_callback, lcd_material_settings_details_callback); #else lcd_scroll_menu(PSTR("MATERIAL"), 6 + BED_MENU_OFFSET, lcd_material_settings_callback, lcd_material_settings_details_callback); #endif if (lcd_lib_button_pressed) { if (IS_SELECTED_SCROLL(0)) { lcd_change_to_menu(lcd_menu_material_main); lcd_material_store_current_material(); }else if (IS_SELECTED_SCROLL(1)) LCD_EDIT_SETTING(material[active_extruder].temperature, "Temperature", "C", 0, HEATER_0_MAXTEMP - 15); #if TEMP_SENSOR_BED != 0 else if (IS_SELECTED_SCROLL(2)) LCD_EDIT_SETTING(material[active_extruder].bed_temperature, "Buildplate Temp.", "C", 0, BED_MAXTEMP - 15); #endif else if (IS_SELECTED_SCROLL(2 + BED_MENU_OFFSET)) LCD_EDIT_SETTING_FLOAT001(material[active_extruder].diameter, "Material Diameter", "mm", 0, 100); else if (IS_SELECTED_SCROLL(3 + BED_MENU_OFFSET)) LCD_EDIT_SETTING(material[active_extruder].fan_speed, "Fan speed", "%", 0, 100); else if (IS_SELECTED_SCROLL(4 + BED_MENU_OFFSET)) LCD_EDIT_SETTING(material[active_extruder].flow, "Material flow", "%", 1, 1000); #ifdef USE_CHANGE_TEMPERATURE else if (IS_SELECTED_SCROLL(5 + BED_MENU_OFFSET)) LCD_EDIT_SETTING(material[active_extruder].change_temperature, "Change temperature", "C", 0, HEATER_0_MAXTEMP - 15); else if (IS_SELECTED_SCROLL(6 + BED_MENU_OFFSET)) LCD_EDIT_SETTING(material[active_extruder].change_preheat_wait_time, "Change wait time", "sec", 0, 180); else if (IS_SELECTED_SCROLL(7 + BED_MENU_OFFSET)) lcd_change_to_menu(lcd_menu_material_settings_store); #else else if (IS_SELECTED_SCROLL(5 + BED_MENU_OFFSET)) lcd_change_to_menu(lcd_menu_material_settings_store); #endif } }