|
29 | 29 | #include "../DGUSDisplayDef.h"
|
30 | 30 | #include "../DGUSDisplay.h"
|
31 | 31 | #include "../DGUSScreenHandler.h"
|
| 32 | +#include "../creality_touch/AxisSettingsHandler.h" |
32 | 33 | #include "../creality_touch/EstepsHandler.h"
|
33 | 34 | #include "../creality_touch/PIDHandler.h"
|
34 | 35 |
|
@@ -283,6 +284,21 @@ const uint16_t VPList_LevelingSettings[] PROGMEM = {
|
283 | 284 | 0x0000
|
284 | 285 | };
|
285 | 286 |
|
| 287 | +const uint16_t VPList_AxisSettingsNav[] PROGMEM = { |
| 288 | + VPList_CommonWithHeatOnly, |
| 289 | + |
| 290 | + 0x0000 |
| 291 | +}; |
| 292 | + |
| 293 | +const uint16_t VPList_AxisSettingsAxis[] PROGMEM = { |
| 294 | + VPList_CommonWithHeatOnly, |
| 295 | + |
| 296 | + VP_AXIS_SETTINGS_TITLE_ICON, |
| 297 | + |
| 298 | + 0x0000 |
| 299 | +}; |
| 300 | + |
| 301 | + |
286 | 302 | // -- Mapping from screen to variable list
|
287 | 303 | const struct VPMapping VPMap[] PROGMEM = {
|
288 | 304 | { DGUSLCD_SCREEN_BOOT, VPList_None },
|
@@ -338,6 +354,9 @@ const struct VPMapping VPMap[] PROGMEM = {
|
338 | 354 | { DGUSLCD_SCREEN_ESTEPS_CALIBRATION_RESULTS, VPList_EstepsCalibration },
|
339 | 355 | { DGUSLCD_SCREEN_LEVELING_SETTINGS, VPList_LevelingSettings },
|
340 | 356 |
|
| 357 | + { DGUSLCD_SCREEN_AXIS_SETTINGS_NAV, VPList_AxisSettingsNav }, |
| 358 | + { DGUSLCD_SCREEN_AXIS_SETTINGS_AXIS , VPList_AxisSettingsAxis }, |
| 359 | + |
341 | 360 | { 0 , nullptr } // List is terminated with an nullptr as table entry.
|
342 | 361 | };
|
343 | 362 |
|
@@ -399,6 +418,10 @@ const struct DGUS_VP_Variable ListOfVP[] PROGMEM = {
|
399 | 418 |
|
400 | 419 | VPHELPER(VP_GENERIC_BACK_BUTTON, nullptr, ScreenHandler.OnBackButton, nullptr),
|
401 | 420 |
|
| 421 | + // Axis settings |
| 422 | + VPHELPER(VP_AXIS_SETTINGS_NAV_BUTTON, nullptr, AxisSettingsHandler::HandleNavigation, nullptr), |
| 423 | + VPHELPER(VP_AXIS_SETTINGS_TITLE_ICON, &AxisSettingsHandler::axis_settings_title_icon, nullptr, ScreenHandler.DGUSLCD_SendWordValueToDisplay); |
| 424 | + |
402 | 425 | // Preheat settings
|
403 | 426 | #ifdef PREHEAT_1_LABEL
|
404 | 427 | VPHELPER(VP_PREHEAT_PLA_HOTEND_TEMP, &ui.material_preset[0].hotend_temp, ScreenHandler.DGUSLCD_SetValueDirectly<int16_t>, &ScreenHandler.DGUSLCD_SendWordValueToDisplay),
|
|
0 commit comments