|
|
|
@ -104,14 +104,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"), (int)thermalManager.degHotend(0));
|
|
|
|
|
sprintf_P(buf, PSTR("e1:%d"), thermalManager.wholeDegHotend(0));
|
|
|
|
|
lv_label_set_text(e1, buf);
|
|
|
|
|
#if HAS_MULTI_HOTEND
|
|
|
|
|
sprintf_P(buf, PSTR("e2:%d"), (int)thermalManager.degHotend(1));
|
|
|
|
|
sprintf_P(buf, PSTR("e2:%d"), thermalManager.wholeDegHotend(1));
|
|
|
|
|
lv_label_set_text(e2, buf);
|
|
|
|
|
#endif
|
|
|
|
|
#if HAS_HEATED_BED
|
|
|
|
|
sprintf_P(buf, PSTR("bed:%d"), (int)thermalManager.degBed());
|
|
|
|
|
sprintf_P(buf, PSTR("bed:%d"), thermalManager.wholeDegBed());
|
|
|
|
|
lv_label_set_text(bed, buf);
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
@ -138,20 +138,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"), (int)thermalManager.degHotend(0));
|
|
|
|
|
sprintf_P(buf, PSTR("e1: %d"), thermalManager.wholeDegHotend(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"), (int)thermalManager.degHotend(1));
|
|
|
|
|
sprintf_P(buf, PSTR("e1: %d"), thermalManager.wholeDegHotend(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"), (int)thermalManager.degBed());
|
|
|
|
|
sprintf_P(buf, PSTR("bed: %d"), thermalManager.wholeDegBed());
|
|
|
|
|
lv_label_set_text(bed, buf);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
@ -219,7 +219,7 @@ void lv_draw_ready_print() {
|
|
|
|
|
itoa(thermalManager.degHotend(0), buf, 10);
|
|
|
|
|
lv_label_set_text(labelExt1, buf);
|
|
|
|
|
lv_obj_align(labelExt1, buttonExt1, LV_ALIGN_CENTER, 0, LABEL_MOD_Y);
|
|
|
|
|
sprintf_P(buf, PSTR("-> %d"), (int)thermalManager.degTargetHotend(0));
|
|
|
|
|
sprintf_P(buf, PSTR("-> %d"), thermalManager.degTargetHotend(0));
|
|
|
|
|
lv_label_set_text(labelExt1Target, buf);
|
|
|
|
|
lv_obj_align(labelExt1Target, buttonExt1, LV_ALIGN_CENTER, 0, TARGET_LABEL_MOD_Y);
|
|
|
|
|
|
|
|
|
@ -227,7 +227,7 @@ void lv_draw_ready_print() {
|
|
|
|
|
itoa(thermalManager.degHotend(1), buf, 10);
|
|
|
|
|
lv_label_set_text(labelExt2, buf);
|
|
|
|
|
lv_obj_align(labelExt2, buttonExt2, LV_ALIGN_CENTER, 0, LABEL_MOD_Y);
|
|
|
|
|
sprintf_P(buf, PSTR("-> %d"), (int)thermalManager.degTargetHotend(1));
|
|
|
|
|
sprintf_P(buf, PSTR("-> %d"), thermalManager.degTargetHotend(1));
|
|
|
|
|
lv_label_set_text(labelExt2Target, buf);
|
|
|
|
|
lv_obj_align(labelExt2Target, buttonExt2, LV_ALIGN_CENTER, 0, TARGET_LABEL_MOD_Y);
|
|
|
|
|
#endif
|
|
|
|
@ -236,7 +236,7 @@ void lv_draw_ready_print() {
|
|
|
|
|
itoa(thermalManager.degBed(), buf, 10);
|
|
|
|
|
lv_label_set_text(labelBed, buf);
|
|
|
|
|
lv_obj_align(labelBed, buttonBedstate, LV_ALIGN_CENTER, 0, LABEL_MOD_Y);
|
|
|
|
|
sprintf_P(buf, PSTR("-> %d"), (int)thermalManager.degTargetBed());
|
|
|
|
|
sprintf_P(buf, PSTR("-> %d"), thermalManager.degTargetBed());
|
|
|
|
|
lv_label_set_text(labelBedTarget, buf);
|
|
|
|
|
lv_obj_align(labelBedTarget, buttonBedstate, LV_ALIGN_CENTER, 0, TARGET_LABEL_MOD_Y);
|
|
|
|
|
#endif
|
|
|
|
@ -257,15 +257,15 @@ void lv_draw_ready_print() {
|
|
|
|
|
|
|
|
|
|
void lv_temp_refr() {
|
|
|
|
|
#if HAS_HEATED_BED
|
|
|
|
|
sprintf(public_buf_l, printing_menu.bed_temp, (int)thermalManager.degBed(), (int)thermalManager.degTargetBed());
|
|
|
|
|
sprintf(public_buf_l, printing_menu.bed_temp, thermalManager.wholeDegBed(), thermalManager.degTargetBed());
|
|
|
|
|
lv_label_set_text(labelBed, public_buf_l);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
sprintf(public_buf_l, printing_menu.temp1, (int)thermalManager.degHotend(0), (int)thermalManager.degTargetHotend(0));
|
|
|
|
|
sprintf(public_buf_l, printing_menu.temp1, thermalManager.wholeDegHotend(0), thermalManager.degTargetHotend(0));
|
|
|
|
|
lv_label_set_text(labelExt1, public_buf_l);
|
|
|
|
|
|
|
|
|
|
#if HAS_MULTI_EXTRUDER
|
|
|
|
|
sprintf(public_buf_l, printing_menu.temp1, (int)thermalManager.degHotend(1), (int)thermalManager.degTargetHotend(1));
|
|
|
|
|
sprintf(public_buf_l, printing_menu.temp1, thermalManager.wholeDegHotend(1), thermalManager.degTargetHotend(1));
|
|
|
|
|
lv_label_set_text(labelExt2, public_buf_l);
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|