Cooler (for Laser) - M143, M193 (#21255)
This commit is contained in:
@ -94,6 +94,9 @@
|
||||
#ifndef COLOR_CHAMBER
|
||||
#define COLOR_CHAMBER COLOR_DARK_ORANGE
|
||||
#endif
|
||||
#ifndef COLOR_COOLER
|
||||
#define COLOR_COOLER COLOR_DARK_ORANGE
|
||||
#endif
|
||||
#ifndef COLOR_FAN
|
||||
#define COLOR_FAN COLOR_AQUA
|
||||
#endif
|
||||
|
@ -202,6 +202,12 @@ void Touch::touch(touch_control_t *control) {
|
||||
MenuItem_int3::action((const char *)GET_TEXT_F(MSG_CHAMBER), &thermalManager.temp_chamber.target, 0, CHAMBER_MAXTEMP - 10, thermalManager.start_watching_chamber);
|
||||
}
|
||||
#endif
|
||||
#if HAS_COOLER
|
||||
else if (heater == H_COOLER) {
|
||||
MenuItem_int3::action((const char *)GET_TEXT_F(MSG_COOLER), &thermalManager.temp_cooler.target, 0, COOLER_MAXTEMP - 8, thermalManager.start_watching_cooler);
|
||||
}
|
||||
#endif
|
||||
|
||||
break;
|
||||
case FAN:
|
||||
ui.clear_lcd();
|
||||
|
@ -136,6 +136,12 @@ void draw_heater_status(uint16_t x, uint16_t y, const int8_t Heater) {
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
#if HAS_TEMP_COOLER
|
||||
else if (Heater == H_COOLER) {
|
||||
currentTemperature = thermalManager.degCooler();
|
||||
targetTemperature = TERN(HAS_COOLER, thermalManager.degTargetCooler(), ABSOLUTE_ZERO);
|
||||
}
|
||||
#endif
|
||||
else return;
|
||||
|
||||
TERN_(TOUCH_SCREEN, if (targetTemperature >= 0) touch.add_control(HEATER, x, y, 64, 100, Heater));
|
||||
@ -159,6 +165,13 @@ void draw_heater_status(uint16_t x, uint16_t y, const int8_t Heater) {
|
||||
image = targetTemperature > 0 ? imgChamberHeated : imgChamber;
|
||||
}
|
||||
#endif
|
||||
#if HAS_TEMP_COOLER
|
||||
else if (Heater == H_COOLER) {
|
||||
if (currentTemperature <= 26) Color = COLOR_COLD;
|
||||
if (currentTemperature > 26) Color = COLOR_RED;
|
||||
image = targetTemperature > 26 ? imgCoolerHot : imgCooler;
|
||||
}
|
||||
#endif
|
||||
|
||||
tft.add_image(0, 18, image, Color);
|
||||
|
||||
|
@ -136,6 +136,12 @@ void draw_heater_status(uint16_t x, uint16_t y, const int8_t Heater) {
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
#if HAS_TEMP_COOLER
|
||||
else if (Heater == H_COOLER) {
|
||||
currentTemperature = thermalManager.degCooler();
|
||||
targetTemperature = TERN(HAS_COOLER, thermalManager.degTargetCooler(), ABSOLUTE_ZERO);
|
||||
}
|
||||
#endif
|
||||
else return;
|
||||
|
||||
TERN_(TOUCH_SCREEN, if (targetTemperature >= 0) touch.add_control(HEATER, x, y, 80, 120, Heater));
|
||||
|
@ -62,6 +62,10 @@ void menu_item(const uint8_t row, bool sel = false);
|
||||
#define ITEM_CHAMBER 2
|
||||
#define ITEM_FAN 3
|
||||
#define ITEMS_COUNT 4
|
||||
#elif HAS_TEMP_COOLER
|
||||
#define ITEM_COOLER 0
|
||||
#define ITEM_FAN 1
|
||||
#define ITEMS_COUNT 2
|
||||
#elif HOTENDS > 1
|
||||
#define ITEM_E0 0
|
||||
#define ITEM_E1 1
|
||||
|
Reference in New Issue
Block a user