Prusa MINI Firmware overview
|
◆ is_state_in_wizard_mask()
◆ init_state()
◆ screen_wizard_init()
◆ screen_wizard_done()
◆ screen_wizard_draw()
◆ screen_wizard_event()
102 static int inside_handler = 0;
104 int16_t footer_id =
pd->frame_footer.win.id;
105 int16_t frame_id =
pd->frame_body.win.id;
134 if (inside_handler == 0) {
144 "Original Prusa MINI\n"
146 "Would you like to \n"
169 "The status bar is at\n"
170 "the bottom of the \n"
171 "screen. It contains\n"
172 "information about: \n"
174 " - Heatbed temp. \n"
175 " - Printing speed \n"
176 " - Z-axis height \n"
177 " - Selected filament",
183 "Press NEXT to run \n"
184 "the Selftest, which\n"
186 "potential issues \n"
201 if (
wizard_selftest_fan0(frame_id, p_selftest_fans_axis_screen, p_selftest_fans_axis_data) == 100)
205 if (
wizard_selftest_fan1(frame_id, p_selftest_fans_axis_screen, p_selftest_fans_axis_data) == 100)
209 if (
wizard_selftest_x(frame_id, p_selftest_fans_axis_screen, p_selftest_fans_axis_data) == 100)
213 if (
wizard_selftest_y(frame_id, p_selftest_fans_axis_screen, p_selftest_fans_axis_data) == 100)
217 if (
wizard_selftest_z(frame_id, p_selftest_fans_axis_screen, p_selftest_fans_axis_data) == 100)
247 "Everything is alright. "
249 "calibration now. It will "
250 "take approximately "
260 "The selftest failed\n"
262 "Double-check the \n"
263 "printer's wiring \n"
276 if (
xyzcalib_home(frame_id, p_xyzcalib_screen, p_xyzcalib_data) == 100)
280 if (
xyzcalib_z(frame_id, p_xyzcalib_screen, p_xyzcalib_data) == 100)
284 window_set_text(
pd->screen_variant.xyzcalib_screen.text_state.win.id,
"Calibration XY");
286 "Please clean the nozzle "
287 "for calibration. Click "
304 "Please remove steel "
305 "sheet from heatbed.",
311 "Place a sheet of paper "
312 "under the nozzle during "
313 "the calibration of first "
316 "catches the paper, power "
317 "off printer immediately!",
327 "Please place steel sheet "
344 "XYZ calibration is ok. "
352 "The XYZ calibration failed to finish. "
353 "Double-check the printer's wiring and axes, then restart the XYZ calibration.",
374 "Now, let's calibrate\n"
377 "of the nozzle and \n"
386 snprintf(buff,
sizeof(buff) /
sizeof(
char),
387 "Do you want to use\n"
388 "the current value?\n"
391 "Click NO to use the default value (recommended)",
412 "In the next step, \n"
414 "adjust the nozzle \n"
416 "Check the pictures\n"
432 "step and readjust \n"
434 "between the nozzle \n"
449 float z_val_to_store = p_firstlay_screen->
Z_offset;
454 snprintf(buff,
sizeof(buff) /
sizeof(
char),
455 "Do you want to use last set value? "
458 "Click NO to use default value.",
471 "The first layer calibration failed to finish. "
472 "Double-check the printer's wiring, nozzle and axes, then restart the calibration.",
478 "Calibration successful!\n"
◆ wizard_get_caption()
526 return "XYZ CALIBRATION";
534 return "FIRST LAYER CALIB.";
536 return "WIZARD - OK";
◆ wizard_done_screen()
◆ wizard_mask
◆ screen_wizard
◆ pscreen_wizard
Definition: wizard_types.h:17
void window_set_alignment(int16_t id, uint8_t alignment)
Definition: window.c:561
void screen_wizard_init(screen_t *screen)
Definition: screen_wizard.c:31
int xyzcalib_xy_search(int16_t id_body, xyzcalib_screen_t *p_screen, xyzcalib_data_t *p_data)
Definition: xyzcalib.c:63
void fs_enable()
Definition: filament_sensor.c:90
Definition: wizard_types.h:48
Definition: wizard_types.h:32
Definition: xyzcalib.h:12
int xyzcalib_xy_measure(int16_t id_body, xyzcalib_screen_t *p_screen, xyzcalib_data_t *p_data)
Definition: xyzcalib.c:75
int wizard_msgbox1(const char *text, uint16_t flags, uint16_t id_icon)
Definition: wizard_ui.c:47
variant8_t variant8_ui8(uint8_t ui8)
Definition: variant8.c:18
Definition: wizard_types.h:10
Definition: wizard_types.h:30
void wizard_done_screen(screen_t *screen)
Definition: screen_wizard.c:543
int wizard_selftest_cool(int16_t id_body, selftest_cool_screen_t *p_screen, selftest_cool_data_t *p_data)
Definition: selftest_cool.c:77
int wizard_firstlay_print(int16_t id_body, firstlay_screen_t *p_screen, firstlay_data_t *p_data, float z_offset)
Definition: firstlay.c:118
Definition: selftest_home.h:25
Definition: filament.h:26
int xyzcalib_home(int16_t id_body, xyzcalib_screen_t *p_screen, xyzcalib_data_t *p_data)
Definition: xyzcalib.c:39
Definition: firstlay.h:30
Definition: filament_sensor.h:22
void wizard_init(float t_noz, float t_bed)
Definition: wizard_ui.c:111
Definition: wizard_types.h:43
float z_offset
Definition: marlin_vars.h:87
#define pd
Definition: screen_filebrowser.cpp:39
void window_destroy_children(int16_t id)
Definition: window.c:157
#define WINDOW_EVENT_ENC_UP
Definition: window.h:41
#define MSGBOX_RES_NO
Definition: window_msgbox.h:45
void window_invalidate(int16_t id)
Definition: window.c:304
static rect_ui16_t rect_ui16(uint16_t x, uint16_t y, uint16_t w, uint16_t h)
Definition: guitypes.h:159
#define _START_TEMP_BED
Definition: wizard_config.h:46
int marlin_processing(void)
Definition: marlin_client.c:145
int xyzcalib_z(int16_t id_body, xyzcalib_screen_t *p_screen, xyzcalib_data_t *p_data)
Definition: xyzcalib.c:53
void window_destroy(int16_t id)
Definition: window.c:132
#define EEVAR_RUN_FIRSTLAY
Definition: eeprom.h:16
LD_UNLD_STATE_t wizard_load_unload(LD_UNLD_STATE_t state)
Definition: wizard_load_unload.c:74
#define WINDOW_FLG_VISIBLE
Definition: window.h:24
int xyzcalib_is_ok(int16_t id_body, xyzcalib_screen_t *p_screen, xyzcalib_data_t *p_data)
Definition: xyzcalib.c:92
#define IDR_PNG_icon_pepa
Definition: resource.h:44
void wizard_init_disable_PID(float t_noz, float t_bed)
Definition: wizard_ui.c:135
int wizard_selftest_y(int16_t id_body, selftest_fans_axis_screen_t *p_screen, selftest_fans_axis_data_t *p_data)
Definition: selftest_fans_axis.c:367
static int is_state_in_wizard_mask(wizard_state_t st)
Definition: screen_wizard.c:19
_TEST_STATE_t state_print
Definition: firstlay.h:67
void eeprom_set_var(uint8_t id, variant8_t var)
Definition: eeprom.c:88
Definition: wizard_types.h:18
int wizard_selftest_is_ok(int16_t id_body, selftest_data_t *p_data)
Definition: selftest.c:5
#define MSGBOX_DEF_BUTTON1
Definition: window_msgbox.h:55
const char * wizard_get_caption(screen_t *screen)
Definition: screen_wizard.c:494
const filament_t filaments[FILAMENTS_END]
Definition: filament.cpp:20
Definition: wizard_types.h:46
Definition: wizard_types.h:15
Definition: wizard_types.h:35
#define ALIGN_LEFT_BOTTOM
Definition: guitypes.h:22
void window_show(int16_t id)
Definition: window.c:529
Definition: wizard_types.h:20
Definition: filament.h:27
Definition: wizard_types.h:42
void wizard_firstlay_event_dn(firstlay_screen_t *p_screen)
Definition: firstlay.c:241
Definition: selftest_cool.h:17
Definition: wizard_types.h:13
void screen_close(void)
Definition: screen.c:80
Definition: wizard_types.h:36
Definition: wizard_types.h:31
LD_UNLD_STATE_t load_unload_state
Definition: firstlay.h:43
#define _START_TEMP_NOZ
Definition: wizard_config.h:47
int wizard_selftest_z(int16_t id_body, selftest_fans_axis_screen_t *p_screen, selftest_fans_axis_data_t *p_data)
Definition: selftest_fans_axis.c:378
Definition: wizard_types.h:28
#define MSGBOX_BTN_DONE
Definition: wizard_ui.h:13
Definition: selftest_temp.h:27
void window_set_text(int16_t id, const char *text)
Definition: window.c:340
Definition: wizard_types.h:19
#define EEVAR_RUN_XYZCALIB
Definition: eeprom.h:15
Definition: wizard_types.h:16
Definition: wizard_types.h:37
#define EEVAR_RUN_SELFTEST
Definition: eeprom.h:14
Definition: wizard_types.h:45
Definition: wizard_types.h:39
Definition: wizard_types.h:22
Definition: wizard_types.h:21
Definition: selftest_temp.h:16
static _TEST_STATE_t init_state(wizard_state_t st)
Definition: screen_wizard.c:23
uint64_t wizard_mask
Definition: screen_wizard.c:17
#define MSGBOX_RES_YES
Definition: window_msgbox.h:44
Definition: wizard_types.h:11
#define WINDOW_CLS_FRAME
Definition: window.h:9
FILAMENT_t get_filament()
Definition: filament.cpp:41
Definition: firstlay.h:63
Definition: filament_sensor.h:20
fsensor_t fs_get_state()
Definition: filament_sensor.c:67
Definition: wizard_types.h:27
Definition: wizard_types.h:40
int wizard_selftest_fan0(int16_t id_body, selftest_fans_axis_screen_t *p_screen, selftest_fans_axis_data_t *p_data)
Definition: selftest_fans_axis.c:81
Definition: selftest_cool.h:30
void marlin_gcode(const char *gcode)
Definition: marlin_client.c:195
marlin_vars_t * marlin_update_vars(uint64_t msk)
Definition: marlin_client.c:368
Definition: wizard_types.h:41
int wizard_selftest_home(int16_t id_body, selftest_home_screen_t *p_screen, selftest_home_data_t *p_data)
Definition: selftest_home.c:28
int wizard_selftest_fan1(int16_t id_body, selftest_fans_axis_screen_t *p_screen, selftest_fans_axis_data_t *p_data)
Definition: selftest_fans_axis.c:99
Definition: wizard_load_unload.h:15
#define MARLIN_VAR_MSK(v_id)
Definition: marlin_vars.h:35
float Z_offset
Definition: firstlay.h:49
void window_hide(int16_t id)
Definition: window.c:539
Definition: xyzcalib.h:22
Definition: selftest.h:21
Definition: wizard_types.h:26
#define WINDOW_CLS_TEXT
Definition: window.h:10
void screen_wizard_draw(screen_t *screen)
Definition: screen_wizard.c:98
Definition: wizard_types.h:85
void wizard_firstlay_event_up(firstlay_screen_t *p_screen)
Definition: firstlay.c:249
Definition: selftest_fans_axis.h:16
#define MSGBOX_BTN_YESNO
Definition: window_msgbox.h:24
int16_t window_create_ptr(int16_t cls_id, int16_t id_parent, rect_ui16_t rect, void *ptr)
Definition: window.c:102
Definition: filament_sensor.h:21
Definition: wizard_types.h:9
Definition: wizard_types.h:8
Definition: wizard_types.h:23
Definition: marlin_vars.h:77
void marlin_start_processing(void)
Definition: marlin_client.c:174
void screen_wizard_done(screen_t *screen)
Definition: screen_wizard.c:81
int wizard_selftest_temp(int16_t id_body, selftest_temp_screen_t *p_screen, selftest_temp_data_t *p_data)
Definition: selftest_temp.c:131
Definition: screen_wizard.h:28
Definition: selftest_fans_axis.h:37
FILAMENT_t
Definition: filament.h:25
#define WINDOW_EVENT_LOOP
Definition: window.h:49
float marlin_set_z_offset(float val)
Definition: marlin_client.c:409
fsensor_t fs_wait_inicialized()
Definition: filament_sensor.c:104
Definition: wizard_load_unload.h:10
int wizard_msgbox(const char *text, uint16_t flags, uint16_t id_icon)
Definition: wizard_ui.c:42
Definition: selftest_home.h:16
int screen_wizard_event(screen_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen_wizard.c:101
void fs_disable()
Definition: filament_sensor.c:97
Definition: wizard_types.h:29
uint16_t marlin_set_print_speed(uint16_t val)
Definition: marlin_client.c:417
Definition: wizard_types.h:44
Nozzle nozzle
Definition: nozzle.cpp:29
Definition: wizard_types.h:34
Definition: wizard_types.h:24
#define MSGBOX_BTN_NEXT
Definition: wizard_ui.h:12
#define WINDOW_EVENT_ENC_DN
Definition: window.h:40
Definition: wizard_types.h:14
#define MARLIN_VAR_Z_OFFSET
Definition: marlin_vars.h:23
Definition: wizard_types.h:87
int wizard_selftest_x(int16_t id_body, selftest_fans_axis_screen_t *p_screen, selftest_fans_axis_data_t *p_data)
Definition: selftest_fans_axis.c:356
Definition: wizard_types.h:33