Skip to content

Instantly share code, notes, and snippets.

@glennswest
Created August 28, 2014 07:40
Show Gist options
  • Save glennswest/efbfd5a6d8515e84fec2 to your computer and use it in GitHub Desktop.
Save glennswest/efbfd5a6d8515e84fec2 to your computer and use it in GitHub Desktop.
Marlin Menu Items for Filament Load and Unload
static void lcd_prepare_menu()
{
START_MENU();
MENU_ITEM(back, MSG_MAIN, lcd_main_menu);
#ifdef SDSUPPORT
//MENU_ITEM(function, MSG_AUTOSTART, lcd_autostart_sd);
#endif
MENU_ITEM(gcode, MSG_DISABLE_STEPPERS, PSTR("M84"));
MENU_ITEM(gcode, MSG_AUTO_HOME, PSTR("G28"));
MENU_ITEM(gcode, MSG_LOAD_FILAMENT, PSTR("G21 G F200 E10"));
MENU_ITEM(gcode, MSG_FEED_FILAMENT, PSTR("G F1000 E1000"));
MENU_ITEM(gcode, MSG_UNLOAD_FILAMENT, PSTR("G F1000 E-1000"));
//MENU_ITEM(gcode, MSG_SET_ORIGIN, PSTR("G92 X0 Y0 Z0"));
MENU_ITEM(function, MSG_PREHEAT_PLA, lcd_preheat_pla);
MENU_ITEM(function, MSG_PREHEAT_ABS, lcd_preheat_abs);
MENU_ITEM(function, MSG_COOLDOWN, lcd_cooldown);
#if PS_ON_PIN > -1
if (powersupply)
{
MENU_ITEM(gcode, MSG_SWITCH_PS_OFF, PSTR("M81"));
}else{
MENU_ITEM(gcode, MSG_SWITCH_PS_ON, PSTR("M80"));
}
#endif
MENU_ITEM(submenu, MSG_MOVE_AXIS, lcd_move_menu);
END_MENU();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment