|
|
@ -34,8 +34,8 @@
|
|
|
|
#include "game/game.h"
|
|
|
|
#include "game/game.h"
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#define STATIC_PAIR(MSG, VALUE, CNTR) do{ strcpy_P(buffer, PSTR(": ")); strcpy(buffer + 2, VALUE); STATIC_ITEM(MSG, CNTR, false, buffer); }while(0)
|
|
|
|
#define STATIC_PAIR(MSG, VALUE, STYL) do{ strcpy_P(buffer, PSTR(": ")); strcpy(buffer + 2, VALUE); STATIC_ITEM(MSG, STYL, buffer); }while(0)
|
|
|
|
#define STATIC_PAIR_P(MSG, PVALUE, CNTR) do{ strcpy_P(buffer, PSTR(": ")); strcpy_P(buffer + 2, PSTR(PVALUE)); STATIC_ITEM(MSG, CNTR, false, buffer); }while(0)
|
|
|
|
#define STATIC_PAIR_P(MSG, PVALUE, STYL) do{ strcpy_P(buffer, PSTR(": ")); strcpy_P(buffer + 2, PSTR(PVALUE)); STATIC_ITEM(MSG, STYL, buffer); }while(0)
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(PRINTCOUNTER)
|
|
|
|
#if ENABLED(PRINTCOUNTER)
|
|
|
|
|
|
|
|
|
|
|
@ -56,32 +56,32 @@
|
|
|
|
printStatistics stats = print_job_timer.getStats();
|
|
|
|
printStatistics stats = print_job_timer.getStats();
|
|
|
|
|
|
|
|
|
|
|
|
START_SCREEN(); // 12345678901234567890
|
|
|
|
START_SCREEN(); // 12345678901234567890
|
|
|
|
STATIC_PAIR(MSG_INFO_PRINT_COUNT, i16tostr3left(stats.totalPrints), false); // Print Count: 999
|
|
|
|
STATIC_PAIR(MSG_INFO_PRINT_COUNT, i16tostr3left(stats.totalPrints), SS_LEFT); // Print Count: 999
|
|
|
|
STATIC_PAIR(MSG_INFO_COMPLETED_PRINTS, i16tostr3left(stats.finishedPrints), false); // Completed : 666
|
|
|
|
STATIC_PAIR(MSG_INFO_COMPLETED_PRINTS, i16tostr3left(stats.finishedPrints), SS_LEFT); // Completed : 666
|
|
|
|
|
|
|
|
|
|
|
|
STATIC_PAIR_P(MSG_INFO_PRINT_TIME, "", false); // Total print Time:
|
|
|
|
STATIC_PAIR_P(MSG_INFO_PRINT_TIME, "", SS_LEFT); // Total print Time:
|
|
|
|
STATIC_ITEM("> ", false, false, duration_t(stats.printTime).toString(buffer)); // > 99y 364d 23h 59m 59s
|
|
|
|
STATIC_ITEM("> ", SS_LEFT, duration_t(stats.printTime).toString(buffer)); // > 99y 364d 23h 59m 59s
|
|
|
|
|
|
|
|
|
|
|
|
STATIC_PAIR_P(MSG_INFO_PRINT_LONGEST, "", false); // Longest job time:
|
|
|
|
STATIC_PAIR_P(MSG_INFO_PRINT_LONGEST, "", SS_LEFT); // Longest job time:
|
|
|
|
STATIC_ITEM("> ", false, false, duration_t(stats.longestPrint).toString(buffer)); // > 99y 364d 23h 59m 59s
|
|
|
|
STATIC_ITEM("> ", SS_LEFT, duration_t(stats.longestPrint).toString(buffer)); // > 99y 364d 23h 59m 59s
|
|
|
|
|
|
|
|
|
|
|
|
STATIC_PAIR_P(MSG_INFO_PRINT_FILAMENT, "", false); // Extruded total:
|
|
|
|
STATIC_PAIR_P(MSG_INFO_PRINT_FILAMENT, "", SS_LEFT); // Extruded total:
|
|
|
|
sprintf_P(buffer, PSTR("%ld.%im"), long(stats.filamentUsed / 1000), int16_t(stats.filamentUsed / 100) % 10);
|
|
|
|
sprintf_P(buffer, PSTR("%ld.%im"), long(stats.filamentUsed / 1000), int16_t(stats.filamentUsed / 100) % 10);
|
|
|
|
STATIC_ITEM("> ", false, false, buffer); // > 125m
|
|
|
|
STATIC_ITEM("> ", SS_LEFT, buffer); // > 125m
|
|
|
|
|
|
|
|
|
|
|
|
#if SERVICE_INTERVAL_1 > 0
|
|
|
|
#if SERVICE_INTERVAL_1 > 0
|
|
|
|
STATIC_ITEM(SERVICE_NAME_1 MSG_SERVICE_IN, false, false); // Service X in:
|
|
|
|
STATIC_ITEM(SERVICE_NAME_1 MSG_SERVICE_IN, SS_LEFT); // Service X in:
|
|
|
|
STATIC_ITEM("> ", false, false, duration_t(stats.nextService1).toString(buffer)); // > 7d 12h 11m 10s
|
|
|
|
STATIC_ITEM("> ", SS_LEFT, duration_t(stats.nextService1).toString(buffer)); // > 7d 12h 11m 10s
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if SERVICE_INTERVAL_2 > 0
|
|
|
|
#if SERVICE_INTERVAL_2 > 0
|
|
|
|
STATIC_ITEM(SERVICE_NAME_2 MSG_SERVICE_IN, false, false);
|
|
|
|
STATIC_ITEM(SERVICE_NAME_2 MSG_SERVICE_IN, SS_LEFT);
|
|
|
|
STATIC_ITEM("> ", false, false, duration_t(stats.nextService2).toString(buffer));
|
|
|
|
STATIC_ITEM("> ", SS_LEFT, duration_t(stats.nextService2).toString(buffer));
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if SERVICE_INTERVAL_3 > 0
|
|
|
|
#if SERVICE_INTERVAL_3 > 0
|
|
|
|
STATIC_ITEM(SERVICE_NAME_3 MSG_SERVICE_IN, false, false);
|
|
|
|
STATIC_ITEM(SERVICE_NAME_3 MSG_SERVICE_IN, SS_LEFT);
|
|
|
|
STATIC_ITEM("> ", false, false, duration_t(stats.nextService3).toString(buffer));
|
|
|
|
STATIC_ITEM("> ", SS_LEFT, duration_t(stats.nextService3).toString(buffer));
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
END_SCREEN();
|
|
|
|
END_SCREEN();
|
|
|
@ -105,63 +105,63 @@ void menu_info_thermistors() {
|
|
|
|
#if EXTRUDERS
|
|
|
|
#if EXTRUDERS
|
|
|
|
#define THERMISTOR_ID TEMP_SENSOR_0
|
|
|
|
#define THERMISTOR_ID TEMP_SENSOR_0
|
|
|
|
#include "../thermistornames.h"
|
|
|
|
#include "../thermistornames.h"
|
|
|
|
STATIC_ITEM("T0: " THERMISTOR_NAME, false, true);
|
|
|
|
STATIC_ITEM("T0: " THERMISTOR_NAME, SS_INVERT);
|
|
|
|
STATIC_PAIR_P(MSG_INFO_MIN_TEMP, STRINGIFY(HEATER_0_MINTEMP), false);
|
|
|
|
STATIC_PAIR_P(MSG_INFO_MIN_TEMP, STRINGIFY(HEATER_0_MINTEMP), SS_LEFT);
|
|
|
|
STATIC_PAIR_P(MSG_INFO_MAX_TEMP, STRINGIFY(HEATER_0_MAXTEMP), false);
|
|
|
|
STATIC_PAIR_P(MSG_INFO_MAX_TEMP, STRINGIFY(HEATER_0_MAXTEMP), SS_LEFT);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if TEMP_SENSOR_1 != 0
|
|
|
|
#if TEMP_SENSOR_1 != 0
|
|
|
|
#undef THERMISTOR_ID
|
|
|
|
#undef THERMISTOR_ID
|
|
|
|
#define THERMISTOR_ID TEMP_SENSOR_1
|
|
|
|
#define THERMISTOR_ID TEMP_SENSOR_1
|
|
|
|
#include "../thermistornames.h"
|
|
|
|
#include "../thermistornames.h"
|
|
|
|
STATIC_ITEM("T1: " THERMISTOR_NAME, false, true);
|
|
|
|
STATIC_ITEM("T1: " THERMISTOR_NAME, SS_INVERT);
|
|
|
|
STATIC_PAIR_P(MSG_INFO_MIN_TEMP, STRINGIFY(HEATER_1_MINTEMP), false);
|
|
|
|
STATIC_PAIR_P(MSG_INFO_MIN_TEMP, STRINGIFY(HEATER_1_MINTEMP), SS_LEFT);
|
|
|
|
STATIC_PAIR_P(MSG_INFO_MAX_TEMP, STRINGIFY(HEATER_1_MAXTEMP), false);
|
|
|
|
STATIC_PAIR_P(MSG_INFO_MAX_TEMP, STRINGIFY(HEATER_1_MAXTEMP), SS_LEFT);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if TEMP_SENSOR_2 != 0
|
|
|
|
#if TEMP_SENSOR_2 != 0
|
|
|
|
#undef THERMISTOR_ID
|
|
|
|
#undef THERMISTOR_ID
|
|
|
|
#define THERMISTOR_ID TEMP_SENSOR_2
|
|
|
|
#define THERMISTOR_ID TEMP_SENSOR_2
|
|
|
|
#include "../thermistornames.h"
|
|
|
|
#include "../thermistornames.h"
|
|
|
|
STATIC_ITEM("T2: " THERMISTOR_NAME, false, true);
|
|
|
|
STATIC_ITEM("T2: " THERMISTOR_NAME, SS_INVERT);
|
|
|
|
STATIC_PAIR_P(MSG_INFO_MIN_TEMP, STRINGIFY(HEATER_2_MINTEMP), false);
|
|
|
|
STATIC_PAIR_P(MSG_INFO_MIN_TEMP, STRINGIFY(HEATER_2_MINTEMP), SS_LEFT);
|
|
|
|
STATIC_PAIR_P(MSG_INFO_MAX_TEMP, STRINGIFY(HEATER_2_MAXTEMP), false);
|
|
|
|
STATIC_PAIR_P(MSG_INFO_MAX_TEMP, STRINGIFY(HEATER_2_MAXTEMP), SS_LEFT);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if TEMP_SENSOR_3 != 0
|
|
|
|
#if TEMP_SENSOR_3 != 0
|
|
|
|
#undef THERMISTOR_ID
|
|
|
|
#undef THERMISTOR_ID
|
|
|
|
#define THERMISTOR_ID TEMP_SENSOR_3
|
|
|
|
#define THERMISTOR_ID TEMP_SENSOR_3
|
|
|
|
#include "../thermistornames.h"
|
|
|
|
#include "../thermistornames.h"
|
|
|
|
STATIC_ITEM("T3: " THERMISTOR_NAME, false, true);
|
|
|
|
STATIC_ITEM("T3: " THERMISTOR_NAME, SS_INVERT);
|
|
|
|
STATIC_PAIR_P(MSG_INFO_MIN_TEMP, STRINGIFY(HEATER_3_MINTEMP), false);
|
|
|
|
STATIC_PAIR_P(MSG_INFO_MIN_TEMP, STRINGIFY(HEATER_3_MINTEMP), SS_LEFT);
|
|
|
|
STATIC_PAIR_P(MSG_INFO_MAX_TEMP, STRINGIFY(HEATER_3_MAXTEMP), false);
|
|
|
|
STATIC_PAIR_P(MSG_INFO_MAX_TEMP, STRINGIFY(HEATER_3_MAXTEMP), SS_LEFT);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if TEMP_SENSOR_4 != 0
|
|
|
|
#if TEMP_SENSOR_4 != 0
|
|
|
|
#undef THERMISTOR_ID
|
|
|
|
#undef THERMISTOR_ID
|
|
|
|
#define THERMISTOR_ID TEMP_SENSOR_4
|
|
|
|
#define THERMISTOR_ID TEMP_SENSOR_4
|
|
|
|
#include "../thermistornames.h"
|
|
|
|
#include "../thermistornames.h"
|
|
|
|
STATIC_ITEM("T4: " THERMISTOR_NAME, false, true);
|
|
|
|
STATIC_ITEM("T4: " THERMISTOR_NAME, SS_INVERT);
|
|
|
|
STATIC_PAIR_P(MSG_INFO_MIN_TEMP, STRINGIFY(HEATER_4_MINTEMP), false);
|
|
|
|
STATIC_PAIR_P(MSG_INFO_MIN_TEMP, STRINGIFY(HEATER_4_MINTEMP), SS_LEFT);
|
|
|
|
STATIC_PAIR_P(MSG_INFO_MAX_TEMP, STRINGIFY(HEATER_4_MAXTEMP), false);
|
|
|
|
STATIC_PAIR_P(MSG_INFO_MAX_TEMP, STRINGIFY(HEATER_4_MAXTEMP), SS_LEFT);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if TEMP_SENSOR_5 != 0
|
|
|
|
#if TEMP_SENSOR_5 != 0
|
|
|
|
#undef THERMISTOR_ID
|
|
|
|
#undef THERMISTOR_ID
|
|
|
|
#define THERMISTOR_ID TEMP_SENSOR_5
|
|
|
|
#define THERMISTOR_ID TEMP_SENSOR_5
|
|
|
|
#include "../thermistornames.h"
|
|
|
|
#include "../thermistornames.h"
|
|
|
|
STATIC_ITEM("T5: " THERMISTOR_NAME, false, true);
|
|
|
|
STATIC_ITEM("T5: " THERMISTOR_NAME, SS_INVERT);
|
|
|
|
STATIC_PAIR_P(MSG_INFO_MIN_TEMP, STRINGIFY(HEATER_5_MINTEMP), false);
|
|
|
|
STATIC_PAIR_P(MSG_INFO_MIN_TEMP, STRINGIFY(HEATER_5_MINTEMP), SS_LEFT);
|
|
|
|
STATIC_PAIR_P(MSG_INFO_MAX_TEMP, STRINGIFY(HEATER_5_MAXTEMP), false);
|
|
|
|
STATIC_PAIR_P(MSG_INFO_MAX_TEMP, STRINGIFY(HEATER_5_MAXTEMP), SS_LEFT);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if HAS_HEATED_BED
|
|
|
|
#if HAS_HEATED_BED
|
|
|
|
#undef THERMISTOR_ID
|
|
|
|
#undef THERMISTOR_ID
|
|
|
|
#define THERMISTOR_ID TEMP_SENSOR_BED
|
|
|
|
#define THERMISTOR_ID TEMP_SENSOR_BED
|
|
|
|
#include "../thermistornames.h"
|
|
|
|
#include "../thermistornames.h"
|
|
|
|
STATIC_ITEM("TBed:" THERMISTOR_NAME, false, true);
|
|
|
|
STATIC_ITEM("TBed:" THERMISTOR_NAME, SS_INVERT);
|
|
|
|
STATIC_PAIR_P(MSG_INFO_MIN_TEMP, STRINGIFY(BED_MINTEMP), false);
|
|
|
|
STATIC_PAIR_P(MSG_INFO_MIN_TEMP, STRINGIFY(BED_MINTEMP), SS_LEFT);
|
|
|
|
STATIC_PAIR_P(MSG_INFO_MAX_TEMP, STRINGIFY(BED_MAXTEMP), false);
|
|
|
|
STATIC_PAIR_P(MSG_INFO_MAX_TEMP, STRINGIFY(BED_MAXTEMP), SS_LEFT);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
END_SCREEN();
|
|
|
|
END_SCREEN();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -179,13 +179,13 @@ void menu_info_board() {
|
|
|
|
char buffer[21]; // for STATIC_PAIR_P
|
|
|
|
char buffer[21]; // for STATIC_PAIR_P
|
|
|
|
|
|
|
|
|
|
|
|
START_SCREEN();
|
|
|
|
START_SCREEN();
|
|
|
|
STATIC_ITEM(BOARD_INFO_NAME, true, true); // MyPrinterController
|
|
|
|
STATIC_ITEM(BOARD_INFO_NAME, SS_CENTER|SS_INVERT); // MyPrinterController
|
|
|
|
#ifdef BOARD_WEBSITE_URL
|
|
|
|
#ifdef BOARD_WEBSITE_URL
|
|
|
|
STATIC_ITEM(BOARD_WEBSITE_URL, false, false); // www.my3dprinter.com
|
|
|
|
STATIC_ITEM(BOARD_WEBSITE_URL, SS_LEFT); // www.my3dprinter.com
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
STATIC_PAIR_P(MSG_INFO_BAUDRATE, STRINGIFY(BAUDRATE), true); // Baud: 250000
|
|
|
|
STATIC_PAIR_P(MSG_INFO_BAUDRATE, STRINGIFY(BAUDRATE), SS_CENTER); // Baud: 250000
|
|
|
|
STATIC_PAIR_P(MSG_INFO_PROTOCOL, PROTOCOL_VERSION, true); // Protocol: 1.0
|
|
|
|
STATIC_PAIR_P(MSG_INFO_PROTOCOL, PROTOCOL_VERSION, SS_CENTER); // Protocol: 1.0
|
|
|
|
STATIC_PAIR_P(MSG_INFO_PSU, PSU_NAME, true);
|
|
|
|
STATIC_PAIR_P(MSG_INFO_PSU, PSU_NAME, SS_CENTER);
|
|
|
|
END_SCREEN();
|
|
|
|
END_SCREEN();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -215,22 +215,22 @@ void menu_info_board() {
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
);
|
|
|
|
);
|
|
|
|
START_SCREEN();
|
|
|
|
START_SCREEN();
|
|
|
|
STATIC_ITEM(MSG_MARLIN, true, true); // Marlin
|
|
|
|
STATIC_ITEM(MSG_MARLIN, SS_CENTER|SS_INVERT); // Marlin
|
|
|
|
STATIC_ITEM(SHORT_BUILD_VERSION, true); // x.x.x-Branch
|
|
|
|
STATIC_ITEM(SHORT_BUILD_VERSION); // x.x.x-Branch
|
|
|
|
STATIC_ITEM(STRING_DISTRIBUTION_DATE, true); // YYYY-MM-DD HH:MM
|
|
|
|
STATIC_ITEM(STRING_DISTRIBUTION_DATE); // YYYY-MM-DD HH:MM
|
|
|
|
STATIC_ITEM(MACHINE_NAME, true); // My3DPrinter
|
|
|
|
STATIC_ITEM(MACHINE_NAME); // My3DPrinter
|
|
|
|
STATIC_ITEM(WEBSITE_URL, true); // www.my3dprinter.com
|
|
|
|
STATIC_ITEM(WEBSITE_URL); // www.my3dprinter.com
|
|
|
|
STATIC_ITEM(MSG_INFO_EXTRUDERS ": " STRINGIFY(EXTRUDERS), true); // Extruders: 2
|
|
|
|
STATIC_ITEM(MSG_INFO_EXTRUDERS ": " STRINGIFY(EXTRUDERS)); // Extruders: 2
|
|
|
|
#if ENABLED(AUTO_BED_LEVELING_3POINT)
|
|
|
|
#if ENABLED(AUTO_BED_LEVELING_3POINT)
|
|
|
|
STATIC_ITEM(MSG_3POINT_LEVELING, true); // 3-Point Leveling
|
|
|
|
STATIC_ITEM(MSG_3POINT_LEVELING); // 3-Point Leveling
|
|
|
|
#elif ENABLED(AUTO_BED_LEVELING_LINEAR)
|
|
|
|
#elif ENABLED(AUTO_BED_LEVELING_LINEAR)
|
|
|
|
STATIC_ITEM(MSG_LINEAR_LEVELING, true); // Linear Leveling
|
|
|
|
STATIC_ITEM(MSG_LINEAR_LEVELING); // Linear Leveling
|
|
|
|
#elif ENABLED(AUTO_BED_LEVELING_BILINEAR)
|
|
|
|
#elif ENABLED(AUTO_BED_LEVELING_BILINEAR)
|
|
|
|
STATIC_ITEM(MSG_BILINEAR_LEVELING, true); // Bi-linear Leveling
|
|
|
|
STATIC_ITEM(MSG_BILINEAR_LEVELING); // Bi-linear Leveling
|
|
|
|
#elif ENABLED(AUTO_BED_LEVELING_UBL)
|
|
|
|
#elif ENABLED(AUTO_BED_LEVELING_UBL)
|
|
|
|
STATIC_ITEM(MSG_UBL_LEVELING, true); // Unified Bed Leveling
|
|
|
|
STATIC_ITEM(MSG_UBL_LEVELING); // Unified Bed Leveling
|
|
|
|
#elif ENABLED(MESH_BED_LEVELING)
|
|
|
|
#elif ENABLED(MESH_BED_LEVELING)
|
|
|
|
STATIC_ITEM(MSG_MESH_LEVELING, true); // Mesh Leveling
|
|
|
|
STATIC_ITEM(MSG_MESH_LEVELING); // Mesh Leveling
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
END_SCREEN();
|
|
|
|
END_SCREEN();
|
|
|
|
}
|
|
|
|
}
|
|
|
|