2016-07-22 15:28:01 +02:00
|
|
|
#ifndef ULTRALCD_H
|
|
|
|
#define ULTRALCD_H
|
|
|
|
|
|
|
|
#include "Marlin.h"
|
2018-07-16 19:29:27 +02:00
|
|
|
#include "lcd.h"
|
2018-07-16 17:23:35 +02:00
|
|
|
#include "conv2str.h"
|
2016-07-22 15:28:01 +02:00
|
|
|
|
2018-06-10 22:06:00 +02:00
|
|
|
extern int lcd_puts_P(const char* str);
|
|
|
|
extern int lcd_printf_P(const char* format, ...);
|
|
|
|
|
2018-07-16 02:13:52 +02:00
|
|
|
extern void menu_lcd_longpress_func(void);
|
|
|
|
extern void menu_lcd_charsetup_func(void);
|
|
|
|
extern void menu_lcd_lcdupdate_func(void);
|
2016-07-22 15:28:01 +02:00
|
|
|
|
2018-06-10 16:04:32 +02:00
|
|
|
|
2016-07-22 15:28:01 +02:00
|
|
|
// Call with a false parameter to suppress the LCD update from various places like the planner or the temp control.
|
2018-07-16 23:23:15 +02:00
|
|
|
void ultralcd_init();
|
2016-07-22 15:28:01 +02:00
|
|
|
void lcd_setstatus(const char* message);
|
|
|
|
void lcd_setstatuspgm(const char* message);
|
|
|
|
void lcd_setalertstatuspgm(const char* message);
|
|
|
|
void lcd_reset_alert_level();
|
2017-09-22 20:43:30 +02:00
|
|
|
uint8_t get_message_level();
|
2016-07-22 15:28:01 +02:00
|
|
|
void lcd_adjust_z();
|
|
|
|
void lcd_pick_babystep();
|
|
|
|
void lcd_alright();
|
|
|
|
void EEPROM_save_B(int pos, int* value);
|
|
|
|
void EEPROM_read_B(int pos, int* value);
|
|
|
|
void lcd_wait_interact();
|
|
|
|
void lcd_change_filament();
|
|
|
|
void lcd_loading_filament();
|
|
|
|
void lcd_change_success();
|
|
|
|
void lcd_loading_color();
|
|
|
|
void lcd_sdcard_stop();
|
2017-09-22 18:22:21 +02:00
|
|
|
void lcd_sdcard_pause();
|
|
|
|
void lcd_print_stop();
|
2017-07-21 20:17:00 +02:00
|
|
|
void prusa_statistics(int _message, uint8_t _col_nr = 0);
|
2016-07-22 15:28:01 +02:00
|
|
|
void lcd_confirm_print();
|
2017-07-21 20:17:00 +02:00
|
|
|
unsigned char lcd_choose_color();
|
2018-06-08 00:20:28 +02:00
|
|
|
//void lcd_mylang();
|
2016-07-22 15:28:01 +02:00
|
|
|
|
2018-02-27 17:52:13 +01:00
|
|
|
extern bool lcd_selftest();
|
2018-07-23 13:35:38 +02:00
|
|
|
|
2018-02-06 17:01:09 +01:00
|
|
|
void lcd_menu_statistics();
|
2016-07-22 15:28:01 +02:00
|
|
|
|
2016-09-01 10:44:24 +02:00
|
|
|
extern const char* lcd_display_message_fullscreen_P(const char *msg, uint8_t &nlines);
|
|
|
|
inline const char* lcd_display_message_fullscreen_P(const char *msg)
|
|
|
|
{ uint8_t nlines; return lcd_display_message_fullscreen_P(msg, nlines); }
|
|
|
|
|
2016-07-22 15:28:01 +02:00
|
|
|
extern void lcd_wait_for_click();
|
|
|
|
extern void lcd_show_fullscreen_message_and_wait_P(const char *msg);
|
|
|
|
// 0: no, 1: yes, -1: timeouted
|
2017-03-24 19:47:50 +01:00
|
|
|
extern int8_t lcd_show_fullscreen_message_yes_no_and_wait_P(const char *msg, bool allow_timeouting = true, bool default_yes = false);
|
2017-11-07 16:49:04 +01:00
|
|
|
extern int8_t lcd_show_multiscreen_message_yes_no_and_wait_P(const char *msg, bool allow_timeouting = true, bool default_yes = false);
|
2016-07-22 15:28:01 +02:00
|
|
|
// Ask the user to move the Z axis up to the end stoppers and let
|
|
|
|
// the user confirm that it has been done.
|
2017-11-12 11:30:06 +01:00
|
|
|
#ifndef TMC2130
|
2016-08-11 10:42:53 +02:00
|
|
|
extern bool lcd_calibrate_z_end_stop_manual(bool only_z);
|
2017-11-12 11:30:06 +01:00
|
|
|
#endif
|
2018-07-16 17:23:35 +02:00
|
|
|
|
2016-07-22 15:28:01 +02:00
|
|
|
// Show the result of the calibration process on the LCD screen.
|
2018-07-16 17:23:35 +02:00
|
|
|
extern void lcd_bed_calibration_show_result(uint8_t result, uint8_t point_too_far_mask);
|
2016-07-22 15:28:01 +02:00
|
|
|
|
|
|
|
extern void lcd_diag_show_end_stops();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define LCD_MESSAGEPGM(x) lcd_setstatuspgm(PSTR(x))
|
|
|
|
#define LCD_ALERTMESSAGEPGM(x) lcd_setalertstatuspgm(PSTR(x))
|
|
|
|
#define LCD_MESSAGERPGM(x) lcd_setstatuspgm((x))
|
|
|
|
#define LCD_ALERTMESSAGERPGM(x) lcd_setalertstatuspgm((x))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-08-11 10:42:53 +02:00
|
|
|
// To be used in lcd_commands_type.
|
|
|
|
#define LCD_COMMAND_IDLE 0
|
|
|
|
#define LCD_COMMAND_LOAD_FILAMENT 1
|
|
|
|
#define LCD_COMMAND_STOP_PRINT 2
|
|
|
|
#define LCD_COMMAND_FARM_MODE_CONFIRM 4
|
2017-06-29 18:35:43 +02:00
|
|
|
#define LCD_COMMAND_LONG_PAUSE 5
|
|
|
|
#define LCD_COMMAND_LONG_PAUSE_RESUME 6
|
|
|
|
#define LCD_COMMAND_PID_EXTRUDER 7
|
2017-11-07 16:49:04 +01:00
|
|
|
#define LCD_COMMAND_V2_CAL 8
|
2016-08-11 10:42:53 +02:00
|
|
|
|
|
|
|
extern int lcd_commands_type;
|
2016-07-22 15:28:01 +02:00
|
|
|
|
2017-03-24 19:47:50 +01:00
|
|
|
extern uint8_t farm_mode;
|
2016-07-22 15:28:01 +02:00
|
|
|
extern int farm_no;
|
|
|
|
extern int farm_timer;
|
|
|
|
extern int farm_status;
|
2018-04-25 18:47:19 +00:00
|
|
|
#ifdef TMC2130
|
|
|
|
#define SILENT_MODE_NORMAL 0
|
|
|
|
#define SILENT_MODE_STEALTH 1
|
|
|
|
#define SILENT_MODE_OFF SILENT_MODE_NORMAL
|
|
|
|
#else
|
|
|
|
#define SILENT_MODE_POWER 0
|
|
|
|
#define SILENT_MODE_SILENT 1
|
|
|
|
#define SILENT_MODE_AUTO 2
|
|
|
|
#define SILENT_MODE_OFF SILENT_MODE_POWER
|
|
|
|
#endif
|
2018-03-06 15:11:50 +01:00
|
|
|
extern int8_t SilentModeMenu;
|
2016-07-22 15:28:01 +02:00
|
|
|
|
2018-07-10 10:45:45 +02:00
|
|
|
#if defined (SNMM) || defined (SNMM_V2)
|
2017-06-29 18:35:43 +02:00
|
|
|
extern uint8_t snmm_extruder;
|
2018-07-10 10:45:45 +02:00
|
|
|
#endif // defined (SNMM) || defined (SNMM_V2)
|
2017-06-29 18:35:43 +02:00
|
|
|
|
2016-07-22 15:28:01 +02:00
|
|
|
extern bool cancel_heatup;
|
2017-06-29 18:35:43 +02:00
|
|
|
extern bool isPrintPaused;
|
2018-07-15 18:37:59 +02:00
|
|
|
|
2016-07-22 15:28:01 +02:00
|
|
|
|
|
|
|
void lcd_ignore_click(bool b=true);
|
|
|
|
void lcd_commands();
|
|
|
|
|
|
|
|
|
2017-03-24 19:47:50 +01:00
|
|
|
|
|
|
|
void change_extr(int extr);
|
2018-04-25 18:47:19 +00:00
|
|
|
void extr_adj(int extruder);
|
2018-07-23 13:35:38 +02:00
|
|
|
|
2017-06-29 18:35:43 +02:00
|
|
|
void extr_unload_all();
|
|
|
|
void extr_unload_used();
|
|
|
|
void extr_unload();
|
2017-03-24 19:47:50 +01:00
|
|
|
|
|
|
|
void stack_error();
|
|
|
|
void lcd_printer_connected();
|
|
|
|
void lcd_ping();
|
|
|
|
|
|
|
|
void lcd_calibrate_extruder();
|
|
|
|
void lcd_farm_sdcard_menu();
|
|
|
|
|
|
|
|
//void getFileDescription(char *name, char *description);
|
|
|
|
|
|
|
|
void lcd_farm_sdcard_menu_w();
|
|
|
|
//void get_description();
|
|
|
|
|
2018-01-15 11:30:28 +01:00
|
|
|
void lcd_wait_for_heater();
|
2017-12-14 19:36:32 +01:00
|
|
|
void lcd_wait_for_cool_down();
|
2017-03-24 19:47:50 +01:00
|
|
|
void adjust_bed_reset();
|
|
|
|
void lcd_extr_cal_reset();
|
|
|
|
|
2018-04-24 13:43:51 +02:00
|
|
|
void lcd_temp_cal_show_result(bool result);
|
|
|
|
bool lcd_wait_for_pinda(float temp);
|
|
|
|
|
|
|
|
|
2017-03-24 19:47:50 +01:00
|
|
|
union MenuData;
|
|
|
|
|
2017-06-29 18:35:43 +02:00
|
|
|
void bowden_menu();
|
2017-03-24 19:47:50 +01:00
|
|
|
char reset_menu();
|
2017-06-29 18:35:43 +02:00
|
|
|
char choose_extruder_menu();
|
|
|
|
|
|
|
|
void lcd_pinda_calibration_menu();
|
|
|
|
void lcd_calibrate_pinda();
|
|
|
|
void lcd_temp_calibration_set();
|
|
|
|
|
|
|
|
void display_loading();
|
|
|
|
|
2017-12-10 11:08:50 +01:00
|
|
|
#if !SDSORT_USES_RAM
|
2017-12-11 11:30:49 +01:00
|
|
|
void lcd_set_degree();
|
2017-12-10 11:08:50 +01:00
|
|
|
void lcd_set_progress();
|
|
|
|
#endif
|
|
|
|
|
2018-06-10 16:04:32 +02:00
|
|
|
void lcd_language();
|
|
|
|
|
2017-11-07 16:49:04 +01:00
|
|
|
void lcd_wizard();
|
|
|
|
void lcd_wizard(int state);
|
|
|
|
|
2018-03-28 18:53:37 +02:00
|
|
|
#endif //ULTRALCD_H
|