|
|
@ -105,14 +105,14 @@ void disp_det_error() { |
|
|
|
lv_obj_t *e1, *e2, *e3, *bed; |
|
|
|
void mks_disp_test() { |
|
|
|
char buf[30] = {0}; |
|
|
|
sprintf_P(buf, PSTR("e1:%d"), thermalManager.degHotend(0)); |
|
|
|
sprintf_P(buf, PSTR("e1:%d"), (int)thermalManager.degHotend(0)); |
|
|
|
lv_label_set_text(e1, buf); |
|
|
|
#if HAS_MULTI_HOTEND |
|
|
|
sprintf_P(buf, PSTR("e2:%d"), thermalManager.degHotend(1)); |
|
|
|
sprintf_P(buf, PSTR("e2:%d"), (int)thermalManager.degHotend(1)); |
|
|
|
lv_label_set_text(e2, buf); |
|
|
|
#endif |
|
|
|
#if HAS_HEATED_BED |
|
|
|
sprintf_P(buf, PSTR("bed:%d"), thermalManager.degBed()); |
|
|
|
sprintf_P(buf, PSTR("bed:%d"), (int)thermalManager.degBed()); |
|
|
|
lv_label_set_text(bed, buf); |
|
|
|
#endif |
|
|
|
} |
|
|
@ -139,20 +139,20 @@ void lv_draw_ready_print() { |
|
|
|
|
|
|
|
e1 = lv_label_create_empty(scr); |
|
|
|
lv_obj_set_pos(e1, 20, 20); |
|
|
|
sprintf_P(buf, PSTR("e1: %d"), thermalManager.degHotend(0)); |
|
|
|
sprintf_P(buf, PSTR("e1: %d"), (int)thermalManager.degHotend(0)); |
|
|
|
lv_label_set_text(e1, buf); |
|
|
|
|
|
|
|
#if HAS_MULTI_HOTEND |
|
|
|
e2 = lv_label_create_empty(scr); |
|
|
|
lv_obj_set_pos(e2, 20, 45); |
|
|
|
sprintf_P(buf, PSTR("e1: %d"), thermalManager.degHotend(1)); |
|
|
|
sprintf_P(buf, PSTR("e1: %d"), (int)thermalManager.degHotend(1)); |
|
|
|
lv_label_set_text(e2, buf); |
|
|
|
#endif |
|
|
|
|
|
|
|
#if HAS_HEATED_BED |
|
|
|
bed = lv_label_create_empty(scr); |
|
|
|
lv_obj_set_pos(bed, 20, 95); |
|
|
|
sprintf_P(buf, PSTR("bed: %d"), thermalManager.degBed()); |
|
|
|
sprintf_P(buf, PSTR("bed: %d"), (int)thermalManager.degBed()); |
|
|
|
lv_label_set_text(bed, buf); |
|
|
|
#endif |
|
|
|
|
|
|
@ -208,27 +208,27 @@ void lv_draw_ready_print() { |
|
|
|
|
|
|
|
labelFan = lv_label_create(scr, 380, 80, nullptr); |
|
|
|
|
|
|
|
sprintf_P(buf, PSTR("%d"), thermalManager.degHotend(0)); |
|
|
|
sprintf_P(buf, PSTR("%d"), (int)thermalManager.degHotend(0)); |
|
|
|
lv_label_set_text(labelExt1, buf); |
|
|
|
lv_obj_align(labelExt1, buttonExt1, LV_ALIGN_CENTER, 0, LABEL_MOD_Y); |
|
|
|
sprintf_P(buf, PSTR("-> %d"), thermalManager.degTargetHotend(0)); |
|
|
|
sprintf_P(buf, PSTR("-> %d"), (int)thermalManager.degTargetHotend(0)); |
|
|
|
lv_label_set_text(labelExt1Target, buf); |
|
|
|
lv_obj_align(labelExt1Target, buttonExt1, LV_ALIGN_CENTER, 0, TARGET_LABEL_MOD_Y); |
|
|
|
|
|
|
|
#if HAS_MULTI_EXTRUDER |
|
|
|
sprintf_P(buf, PSTR("%d"), thermalManager.degHotend(1)); |
|
|
|
sprintf_P(buf, PSTR("%d"), (int)thermalManager.degHotend(1)); |
|
|
|
lv_label_set_text(labelExt2, buf); |
|
|
|
lv_obj_align(labelExt2, buttonExt2, LV_ALIGN_CENTER, 0, LABEL_MOD_Y); |
|
|
|
sprintf_P(buf, PSTR("-> %d"), thermalManager.degTargetHotend(1)); |
|
|
|
sprintf_P(buf, PSTR("-> %d"), (int)thermalManager.degTargetHotend(1)); |
|
|
|
lv_label_set_text(labelExt2Target, buf); |
|
|
|
lv_obj_align(labelExt2Target, buttonExt2, LV_ALIGN_CENTER, 0, TARGET_LABEL_MOD_Y); |
|
|
|
#endif |
|
|
|
|
|
|
|
#if HAS_HEATED_BED |
|
|
|
sprintf_P(buf, PSTR("%d"), thermalManager.degBed()); |
|
|
|
sprintf_P(buf, PSTR("%d"), (int)thermalManager.degBed()); |
|
|
|
lv_label_set_text(labelBed, buf); |
|
|
|
lv_obj_align(labelBed, buttonBedstate, LV_ALIGN_CENTER, 0, LABEL_MOD_Y); |
|
|
|
sprintf_P(buf, PSTR("-> %d"), thermalManager.degTargetBed()); |
|
|
|
sprintf_P(buf, PSTR("-> %d"), (int)thermalManager.degTargetBed()); |
|
|
|
lv_label_set_text(labelBedTarget, buf); |
|
|
|
lv_obj_align(labelBedTarget, buttonBedstate, LV_ALIGN_CENTER, 0, TARGET_LABEL_MOD_Y); |
|
|
|
#endif |
|
|
@ -249,15 +249,15 @@ void lv_draw_ready_print() { |
|
|
|
|
|
|
|
void lv_temp_refr() { |
|
|
|
#if HAS_HEATED_BED |
|
|
|
sprintf(public_buf_l, printing_menu.bed_temp, thermalManager.degBed(), thermalManager.degTargetBed()); |
|
|
|
sprintf(public_buf_l, printing_menu.bed_temp, (int)thermalManager.degBed(), (int)thermalManager.degTargetBed()); |
|
|
|
lv_label_set_text(labelBed, public_buf_l); |
|
|
|
#endif |
|
|
|
|
|
|
|
sprintf(public_buf_l, printing_menu.temp1, thermalManager.degHotend(0), thermalManager.degTargetHotend(0)); |
|
|
|
sprintf(public_buf_l, printing_menu.temp1, (int)thermalManager.degHotend(0), (int)thermalManager.degTargetHotend(0)); |
|
|
|
lv_label_set_text(labelExt1, public_buf_l); |
|
|
|
|
|
|
|
#if HAS_MULTI_EXTRUDER |
|
|
|
sprintf(public_buf_l, printing_menu.temp1, thermalManager.degHotend(1), thermalManager.degTargetHotend(1)); |
|
|
|
sprintf(public_buf_l, printing_menu.temp1, (int)thermalManager.degHotend(1), (int)thermalManager.degTargetHotend(1)); |
|
|
|
lv_label_set_text(labelExt2, public_buf_l); |
|
|
|
#endif |
|
|
|
} |
|
|
|