Compare commits
59 Commits
1.5.0-beta
...
1.5.0-RC1
Author | SHA1 | Date | |
---|---|---|---|
|
501ebfd159 | ||
|
dedc00fb0d | ||
|
acc3c74905 | ||
|
d1f269d654 | ||
|
d4fe673b96 | ||
|
862ac308c7 | ||
|
75c541cafb | ||
|
bb4ee37676 | ||
|
bf80c9b8dd | ||
|
79eaf1a8b5 | ||
|
ff5b808dea | ||
|
37ef0ca742 | ||
|
fd84ec3523 | ||
|
afa411f065 | ||
|
d93ff45af6 | ||
|
8fb71f482e | ||
|
325bcb7e01 | ||
|
0af71b9817 | ||
|
8e828a48b9 | ||
|
a356788dc7 | ||
|
6499c6b7c3 | ||
|
fda51c1c46 | ||
|
0c25c876d3 | ||
|
067fe2f074 | ||
|
e8d38ba955 | ||
|
6d257896c0 | ||
|
2af4a2d4e6 | ||
|
c83dad91f3 | ||
|
429b8cc1fa | ||
|
2e030524e2 | ||
|
45cbc380d9 | ||
|
cf0611a7d9 | ||
|
9c4c58235b | ||
|
75ffa32980 | ||
|
e0d858d812 | ||
|
ad86d96a31 | ||
|
6c4a0a887a | ||
|
e940c218cd | ||
|
1df0ee59d2 | ||
|
9244ea5890 | ||
|
8e34d7dc7c | ||
|
7fbbbba752 | ||
|
2b5816037a | ||
|
e008a96269 | ||
|
952e0db31e | ||
|
69efa3376a | ||
|
b3f22b2b11 | ||
|
bb8d41c0e1 | ||
|
ae82913d1f | ||
|
22dedaeb81 | ||
|
2b57ebccaa | ||
|
4a3071aa56 | ||
|
595bdd00cc | ||
|
d5aa1e1823 | ||
|
570c419165 | ||
|
05a706dfb6 | ||
|
7cc485ae3e | ||
|
5fbd3337b6 | ||
|
62fcc2ff35 |
@@ -59,6 +59,7 @@
|
|||||||
*/
|
*/
|
||||||
#if ENABLED(KNUTWURST_CHIRON)
|
#if ENABLED(KNUTWURST_CHIRON)
|
||||||
#define TRIGORILLA_MAPPING_CHIRON
|
#define TRIGORILLA_MAPPING_CHIRON
|
||||||
|
#define NO_AUTO_ASSIGN_WARNING
|
||||||
#else
|
#else
|
||||||
#define TRIGORILLA_MAPPING_I3MEGA
|
#define TRIGORILLA_MAPPING_I3MEGA
|
||||||
#define SWAP_Z_MOTORS
|
#define SWAP_Z_MOTORS
|
||||||
@@ -94,6 +95,7 @@
|
|||||||
*/
|
*/
|
||||||
#if ENABLED(KNUTWURST_4MAXP2)
|
#if ENABLED(KNUTWURST_4MAXP2)
|
||||||
#define ANYCUBIC_4_MAX_PRO_ENDSTOPS
|
#define ANYCUBIC_4_MAX_PRO_ENDSTOPS
|
||||||
|
#define NO_AUTO_ASSIGN_WARNING
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -1939,7 +1941,7 @@
|
|||||||
#define Z_CLEARANCE_MULTI_PROBE 5 // Z Clearance between multiple probes
|
#define Z_CLEARANCE_MULTI_PROBE 5 // Z Clearance between multiple probes
|
||||||
// #define Z_AFTER_PROBING 5 // Z position after probing is done
|
// #define Z_AFTER_PROBING 5 // Z position after probing is done
|
||||||
|
|
||||||
#define Z_PROBE_LOW_POINT -2 // Farthest distance below the trigger-point to go before stopping
|
#define Z_PROBE_LOW_POINT -10 // Farthest distance below the trigger-point to go before stopping
|
||||||
|
|
||||||
// For M851 give a range for adjusting the Z probe offset
|
// For M851 give a range for adjusting the Z probe offset
|
||||||
#define Z_PROBE_OFFSET_RANGE_MIN -50
|
#define Z_PROBE_OFFSET_RANGE_MIN -50
|
||||||
@@ -2377,13 +2379,13 @@
|
|||||||
* RAMPS-based boards use SERVO3_PIN for the first runout sensor.
|
* RAMPS-based boards use SERVO3_PIN for the first runout sensor.
|
||||||
* For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
|
* For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
|
||||||
*/
|
*/
|
||||||
// #define FILAMENT_RUNOUT_SENSOR
|
#define FILAMENT_RUNOUT_SENSOR
|
||||||
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
||||||
#define FIL_RUNOUT_ENABLED_DEFAULT true // Enable the sensor on startup. Override with M412 followed by M500.
|
#define FIL_RUNOUT_ENABLED_DEFAULT true // Enable the sensor on startup. Override with M412 followed by M500.
|
||||||
#define NUM_RUNOUT_SENSORS 1 // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
|
#define NUM_RUNOUT_SENSORS 1 // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
|
||||||
|
|
||||||
#define FIL_RUNOUT_STATE LOW // Pin state indicating that filament is NOT present.
|
#define FIL_RUNOUT_STATE HIGH // Pin state indicating that filament is NOT present.
|
||||||
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
// #define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
||||||
// #define FIL_RUNOUT_PULLDOWN // Use internal pulldown for filament runout pins.
|
// #define FIL_RUNOUT_PULLDOWN // Use internal pulldown for filament runout pins.
|
||||||
// #define WATCH_ALL_RUNOUT_SENSORS // Execute runout script on any triggering sensor, not only for the active extruder.
|
// #define WATCH_ALL_RUNOUT_SENSORS // Execute runout script on any triggering sensor, not only for the active extruder.
|
||||||
// This is automatically enabled for MIXING_EXTRUDERs.
|
// This is automatically enabled for MIXING_EXTRUDERs.
|
||||||
@@ -2851,14 +2853,14 @@
|
|||||||
// Preheat Constants - Up to 10 are supported without changes
|
// Preheat Constants - Up to 10 are supported without changes
|
||||||
//
|
//
|
||||||
#define PREHEAT_1_LABEL "PLA"
|
#define PREHEAT_1_LABEL "PLA"
|
||||||
#define PREHEAT_1_TEMP_HOTEND 180
|
#define PREHEAT_1_TEMP_HOTEND 200
|
||||||
#define PREHEAT_1_TEMP_BED 70
|
#define PREHEAT_1_TEMP_BED 60
|
||||||
// #define PREHEAT_1_TEMP_CHAMBER 35
|
// #define PREHEAT_1_TEMP_CHAMBER 35
|
||||||
#define PREHEAT_1_FAN_SPEED 0 // Value from 0 to 255
|
#define PREHEAT_1_FAN_SPEED 0 // Value from 0 to 255
|
||||||
|
|
||||||
#define PREHEAT_2_LABEL "ABS"
|
#define PREHEAT_2_LABEL "ABS"
|
||||||
#define PREHEAT_2_TEMP_HOTEND 240
|
#define PREHEAT_2_TEMP_HOTEND 240
|
||||||
#define PREHEAT_2_TEMP_BED 110
|
#define PREHEAT_2_TEMP_BED 90
|
||||||
// #define PREHEAT_2_TEMP_CHAMBER 35
|
// #define PREHEAT_2_TEMP_CHAMBER 35
|
||||||
#define PREHEAT_2_FAN_SPEED 0 // Value from 0 to 255
|
#define PREHEAT_2_FAN_SPEED 0 // Value from 0 to 255
|
||||||
|
|
||||||
|
@@ -989,7 +989,7 @@
|
|||||||
*
|
*
|
||||||
* Set the default state here, change with 'M401 S' or UI, use M500 to save, M502 to reset.
|
* Set the default state here, change with 'M401 S' or UI, use M500 to save, M502 to reset.
|
||||||
*/
|
*/
|
||||||
#define BLTOUCH_HS_MODE true
|
#define BLTOUCH_HS_MODE false
|
||||||
|
|
||||||
// Safety: Enable voltage mode settings in the LCD menu.
|
// Safety: Enable voltage mode settings in the LCD menu.
|
||||||
// #define BLTOUCH_LCD_VOLTAGE_MENU
|
// #define BLTOUCH_LCD_VOLTAGE_MENU
|
||||||
@@ -1551,7 +1551,7 @@
|
|||||||
|
|
||||||
// #define MEDIA_MENU_AT_TOP // Force the media menu to be listed on the top of the main menu
|
// #define MEDIA_MENU_AT_TOP // Force the media menu to be listed on the top of the main menu
|
||||||
|
|
||||||
#define EVENT_GCODE_SD_ABORT "G28XY" // G-code to run on SD Abort Print (e.g., "G28XY" or "G27")
|
#define EVENT_GCODE_SD_ABORT "G27" // G-code to run on SD Abort Print (e.g., "G28XY" or "G27")
|
||||||
|
|
||||||
#if ENABLED(PRINTER_EVENT_LEDS)
|
#if ENABLED(PRINTER_EVENT_LEDS)
|
||||||
#define PE_LEDS_COMPLETED_TIME (30 * 60) // (seconds) Time to keep the LED "done" color before restoring normal illumination
|
#define PE_LEDS_COMPLETED_TIME (30 * 60) // (seconds) Time to keep the LED "done" color before restoring normal illumination
|
||||||
@@ -1611,7 +1611,7 @@
|
|||||||
* - SDSORT_CACHE_NAMES will retain the sorted file listing in RAM. (Expensive!)
|
* - SDSORT_CACHE_NAMES will retain the sorted file listing in RAM. (Expensive!)
|
||||||
* - SDSORT_DYNAMIC_RAM only uses RAM when the SD menu is visible. (Use with caution!)
|
* - SDSORT_DYNAMIC_RAM only uses RAM when the SD menu is visible. (Use with caution!)
|
||||||
*/
|
*/
|
||||||
// #define SDCARD_SORT_ALPHA
|
#define SDCARD_SORT_ALPHA
|
||||||
|
|
||||||
// SD Card Sorting options
|
// SD Card Sorting options
|
||||||
#if ENABLED(SDCARD_SORT_ALPHA)
|
#if ENABLED(SDCARD_SORT_ALPHA)
|
||||||
@@ -2658,6 +2658,47 @@
|
|||||||
*/
|
*/
|
||||||
#define ADVANCED_PAUSE_FEATURE
|
#define ADVANCED_PAUSE_FEATURE
|
||||||
#if ENABLED(ADVANCED_PAUSE_FEATURE)
|
#if ENABLED(ADVANCED_PAUSE_FEATURE)
|
||||||
|
#if ENABLED(KNUTWURST_4MAXP2)
|
||||||
|
#define PAUSE_PARK_RETRACT_FEEDRATE 40 // (mm/s) Initial retract feedrate.
|
||||||
|
#define PAUSE_PARK_RETRACT_LENGTH 4 // (mm) Initial retract.
|
||||||
|
// This short retract is done immediately, before parking the nozzle.
|
||||||
|
#define FILAMENT_CHANGE_UNLOAD_FEEDRATE 30 // (mm/s) Unload filament feedrate. This can be pretty fast.
|
||||||
|
#define FILAMENT_CHANGE_UNLOAD_ACCEL 25 // (mm/s^2) Lower acceleration may allow a faster feedrate.
|
||||||
|
#define FILAMENT_CHANGE_UNLOAD_LENGTH 5 // (mm) The length of filament for a complete unload.
|
||||||
|
// For Bowden, the full length of the tube and nozzle.
|
||||||
|
// For direct drive, the full length of the nozzle.
|
||||||
|
// Set to 0 for manual unloading.
|
||||||
|
#define FILAMENT_CHANGE_SLOW_LOAD_FEEDRATE 6 // (mm/s) Slow move when starting load.
|
||||||
|
#define FILAMENT_CHANGE_SLOW_LOAD_LENGTH 0 // (mm) Slow length, to allow time to insert material.
|
||||||
|
// 0 to disable start loading and skip to fast load only
|
||||||
|
#define FILAMENT_CHANGE_FAST_LOAD_FEEDRATE 30 // (mm/s) Load filament feedrate. This can be pretty fast.
|
||||||
|
#define FILAMENT_CHANGE_FAST_LOAD_ACCEL 25 // (mm/s^2) Lower acceleration may allow a faster feedrate.
|
||||||
|
#define FILAMENT_CHANGE_FAST_LOAD_LENGTH 5 // (mm) Load length of filament, from extruder gear to nozzle.
|
||||||
|
// For Bowden, the full length of the tube and nozzle.
|
||||||
|
// For direct drive, the full length of the nozzle.
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if ENABLED(KNUTWURST_CHIRON)
|
||||||
|
#define PAUSE_PARK_RETRACT_FEEDRATE 40 // (mm/s) Initial retract feedrate.
|
||||||
|
#define PAUSE_PARK_RETRACT_LENGTH 4 // (mm) Initial retract.
|
||||||
|
// This short retract is done immediately, before parking the nozzle.
|
||||||
|
#define FILAMENT_CHANGE_UNLOAD_FEEDRATE 30 // (mm/s) Unload filament feedrate. This can be pretty fast.
|
||||||
|
#define FILAMENT_CHANGE_UNLOAD_ACCEL 25 // (mm/s^2) Lower acceleration may allow a faster feedrate.
|
||||||
|
#define FILAMENT_CHANGE_UNLOAD_LENGTH 5 // (mm) The length of filament for a complete unload.
|
||||||
|
// For Bowden, the full length of the tube and nozzle.
|
||||||
|
// For direct drive, the full length of the nozzle.
|
||||||
|
// Set to 0 for manual unloading.
|
||||||
|
#define FILAMENT_CHANGE_SLOW_LOAD_FEEDRATE 6 // (mm/s) Slow move when starting load.
|
||||||
|
#define FILAMENT_CHANGE_SLOW_LOAD_LENGTH 0 // (mm) Slow length, to allow time to insert material.
|
||||||
|
// 0 to disable start loading and skip to fast load only
|
||||||
|
#define FILAMENT_CHANGE_FAST_LOAD_FEEDRATE 30 // (mm/s) Load filament feedrate. This can be pretty fast.
|
||||||
|
#define FILAMENT_CHANGE_FAST_LOAD_ACCEL 25 // (mm/s^2) Lower acceleration may allow a faster feedrate.
|
||||||
|
#define FILAMENT_CHANGE_FAST_LOAD_LENGTH 5 // (mm) Load length of filament, from extruder gear to nozzle.
|
||||||
|
// For Bowden, the full length of the tube and nozzle.
|
||||||
|
// For direct drive, the full length of the nozzle.
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if NONE(KNUTWURST_CHIRON, KNUTWURST_4MAXP2)
|
||||||
#define PAUSE_PARK_RETRACT_FEEDRATE 40 // (mm/s) Initial retract feedrate.
|
#define PAUSE_PARK_RETRACT_FEEDRATE 40 // (mm/s) Initial retract feedrate.
|
||||||
#define PAUSE_PARK_RETRACT_LENGTH 4 // (mm) Initial retract.
|
#define PAUSE_PARK_RETRACT_LENGTH 4 // (mm) Initial retract.
|
||||||
// This short retract is done immediately, before parking the nozzle.
|
// This short retract is done immediately, before parking the nozzle.
|
||||||
@@ -2675,12 +2716,15 @@
|
|||||||
#define FILAMENT_CHANGE_FAST_LOAD_LENGTH 538 // (mm) Load length of filament, from extruder gear to nozzle.
|
#define FILAMENT_CHANGE_FAST_LOAD_LENGTH 538 // (mm) Load length of filament, from extruder gear to nozzle.
|
||||||
// For Bowden, the full length of the tube and nozzle.
|
// For Bowden, the full length of the tube and nozzle.
|
||||||
// For direct drive, the full length of the nozzle.
|
// For direct drive, the full length of the nozzle.
|
||||||
|
#endif
|
||||||
|
|
||||||
#define ADVANCED_PAUSE_CONTINUOUS_PURGE // Purge continuously up to the purge length until interrupted.
|
#define ADVANCED_PAUSE_CONTINUOUS_PURGE // Purge continuously up to the purge length until interrupted.
|
||||||
#define ADVANCED_PAUSE_PURGE_FEEDRATE 2 // (mm/s) Extrude feedrate (after loading). Should be slower than load feedrate.
|
#define ADVANCED_PAUSE_PURGE_FEEDRATE 2 // (mm/s) Extrude feedrate (after loading). Should be slower than load feedrate.
|
||||||
#define ADVANCED_PAUSE_PURGE_LENGTH 2 // (mm) Length to extrude after loading.
|
#define ADVANCED_PAUSE_PURGE_LENGTH 2 // (mm) Length to extrude after loading.
|
||||||
// Set to 0 for manual extrusion.
|
// Set to 0 for manual extrusion.
|
||||||
// Filament can be extruded repeatedly from the Filament Change menu
|
// Filament can be extruded repeatedly from the Filament Change menu
|
||||||
// until extrusion is consistent, and to purge old filament.
|
// until extrusion is consistent, and to purge old filament.
|
||||||
|
|
||||||
// #define ADVANCED_PAUSE_RESUME_PRIME 0 // (mm) Extra distance to prime nozzle after returning from park.
|
// #define ADVANCED_PAUSE_RESUME_PRIME 0 // (mm) Extra distance to prime nozzle after returning from park.
|
||||||
#define ADVANCED_PAUSE_FANS_PAUSE // Turn off print-cooling fans while the machine is paused.
|
#define ADVANCED_PAUSE_FANS_PAUSE // Turn off print-cooling fans while the machine is paused.
|
||||||
|
|
||||||
@@ -4012,7 +4056,7 @@
|
|||||||
#define HOST_PAUSE_M76 // Tell the host to pause in response to M76
|
#define HOST_PAUSE_M76 // Tell the host to pause in response to M76
|
||||||
#define HOST_PROMPT_SUPPORT // Initiate host prompts to get user feedback
|
#define HOST_PROMPT_SUPPORT // Initiate host prompts to get user feedback
|
||||||
#if ENABLED(HOST_PROMPT_SUPPORT)
|
#if ENABLED(HOST_PROMPT_SUPPORT)
|
||||||
// #define HOST_STATUS_NOTIFICATIONS // Send some status messages to the host as notifications
|
#define HOST_STATUS_NOTIFICATIONS // Send some status messages to the host as notifications
|
||||||
#endif
|
#endif
|
||||||
// #define HOST_START_MENU_ITEM // Add a menu item that tells the host to start
|
// #define HOST_START_MENU_ITEM // Add a menu item that tells the host to start
|
||||||
// #define HOST_SHUTDOWN_MENU_ITEM // Add a menu item that tells the host to shut down
|
// #define HOST_SHUTDOWN_MENU_ITEM // Add a menu item that tells the host to shut down
|
||||||
|
@@ -252,12 +252,6 @@
|
|||||||
#include "tests/marlin_tests.h"
|
#include "tests/marlin_tests.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// PATCH START: Knutwurst
|
|
||||||
#if ENABLED(ANYCUBIC_TOUCHSCREEN)
|
|
||||||
#include "lcd/extui/knutwurst/anycubic_touchscreen.h"
|
|
||||||
#endif
|
|
||||||
// PATCH END: Knutwurst
|
|
||||||
|
|
||||||
PGMSTR(M112_KILL_STR, "M112 Shutdown");
|
PGMSTR(M112_KILL_STR, "M112 Shutdown");
|
||||||
|
|
||||||
MarlinState marlin_state = MF_INITIALIZING;
|
MarlinState marlin_state = MF_INITIALIZING;
|
||||||
@@ -396,88 +390,6 @@ void startOrResumeJob() {
|
|||||||
|
|
||||||
#endif // SDSUPPORT
|
#endif // SDSUPPORT
|
||||||
|
|
||||||
// PATCH START: Knutwurst
|
|
||||||
#ifdef ENDSTOP_BEEP
|
|
||||||
void EndstopBeep() {
|
|
||||||
static char last_status = ((READ(X_MIN_PIN) << 2) | (READ(Y_MIN_PIN) << 1) | READ(X_MAX_PIN));
|
|
||||||
static unsigned char now_status;
|
|
||||||
|
|
||||||
now_status = ((READ(X_MIN_PIN) << 2) | (READ(Y_MIN_PIN) << 1) | READ(X_MAX_PIN)) & 0xff;
|
|
||||||
|
|
||||||
if (now_status<last_status) {
|
|
||||||
static millis_t endstop_ms = millis() + 300UL;
|
|
||||||
if (ELAPSED(millis(), endstop_ms)) {
|
|
||||||
buzzer.tone(60, 2000);
|
|
||||||
}
|
|
||||||
last_status = now_status;
|
|
||||||
} else if (now_status != last_status) {
|
|
||||||
last_status=now_status;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if HAS_FILAMENT_SENSOR
|
|
||||||
void event_filament_runout() {
|
|
||||||
#if ENABLED(ADVANCED_PAUSE_FEATURE)
|
|
||||||
if (did_pause_print) return; // Action already in progress. Purge triggered repeated runout.
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if ENABLED(EXTENSIBLE_UI)
|
|
||||||
ExtUI::onFilamentRunout(ExtUI::getActiveTool());
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if EITHER(HOST_PROMPT_SUPPORT, HOST_ACTION_COMMANDS)
|
|
||||||
const char tool = '0'
|
|
||||||
#if NUM_RUNOUT_SENSORS > 1
|
|
||||||
+ active_extruder
|
|
||||||
#endif
|
|
||||||
;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//action:out_of_filament
|
|
||||||
#if ENABLED(HOST_PROMPT_SUPPORT)
|
|
||||||
host_prompt_reason = PROMPT_FILAMENT_RUNOUT;
|
|
||||||
host_action_prompt_end();
|
|
||||||
host_action_prompt_begin(PSTR("FilamentRunout T"), false);
|
|
||||||
SERIAL_CHAR(tool);
|
|
||||||
SERIAL_EOL();
|
|
||||||
host_action_prompt_show();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
const bool run_runout_script = !runout.host_handling;
|
|
||||||
|
|
||||||
#if ENABLED(HOST_ACTION_COMMANDS)
|
|
||||||
if (run_runout_script
|
|
||||||
&& ( strstr(FILAMENT_RUNOUT_SCRIPT, "M600")
|
|
||||||
|| strstr(FILAMENT_RUNOUT_SCRIPT, "M125")
|
|
||||||
#if ENABLED(ADVANCED_PAUSE_FEATURE)
|
|
||||||
|| strstr(FILAMENT_RUNOUT_SCRIPT, "M25")
|
|
||||||
#endif
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
host_action_paused(false);
|
|
||||||
} else {
|
|
||||||
// Legacy Repetier command for use until newer version supports standard dialog
|
|
||||||
// To be removed later when pause command also triggers dialog
|
|
||||||
#ifdef ACTION_ON_FILAMENT_RUNOUT
|
|
||||||
host_action(PSTR(ACTION_ON_FILAMENT_RUNOUT " T"), false);
|
|
||||||
SERIAL_CHAR(tool);
|
|
||||||
SERIAL_EOL();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
host_action_pause(false);
|
|
||||||
}
|
|
||||||
SERIAL_ECHOPGM(" " ACTION_REASON_ON_FILAMENT_RUNOUT " ");
|
|
||||||
SERIAL_CHAR(tool);
|
|
||||||
SERIAL_EOL();
|
|
||||||
#endif // HOST_ACTION_COMMANDS
|
|
||||||
|
|
||||||
if (run_runout_script) {
|
|
||||||
queue.inject_P(PSTR(FILAMENT_RUNOUT_SCRIPT));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // HAS_FILAMENT_SENSOR
|
|
||||||
// PATCH END: Knutwurst
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Minimal management of Marlin's core activities:
|
* Minimal management of Marlin's core activities:
|
||||||
@@ -493,12 +405,6 @@ void EndstopBeep() {
|
|||||||
* - Pulse FET_SAFETY_PIN if it exists
|
* - Pulse FET_SAFETY_PIN if it exists
|
||||||
*/
|
*/
|
||||||
inline void manage_inactivity(const bool no_stepper_sleep=false) {
|
inline void manage_inactivity(const bool no_stepper_sleep=false) {
|
||||||
// PATCH START: Knutwurst
|
|
||||||
#if ENABLED(ANYCUBIC_TOUCHSCREEN) && ENABLED(ANYCUBIC_FILAMENT_RUNOUT_SENSOR)
|
|
||||||
AnycubicTouchscreen.FilamentRunout();
|
|
||||||
#endif
|
|
||||||
// PATCH END: Knutwurst
|
|
||||||
|
|
||||||
queue.get_available_commands();
|
queue.get_available_commands();
|
||||||
|
|
||||||
const millis_t ms = millis();
|
const millis_t ms = millis();
|
||||||
@@ -889,12 +795,6 @@ void idle(bool no_stepper_sleep/*=false*/) {
|
|||||||
// Max7219 heartbeat, animation, etc
|
// Max7219 heartbeat, animation, etc
|
||||||
TERN_(MAX7219_DEBUG, max7219.idle_tasks());
|
TERN_(MAX7219_DEBUG, max7219.idle_tasks());
|
||||||
|
|
||||||
// PATCH START: Knutwurst
|
|
||||||
#ifdef ENDSTOP_BEEP
|
|
||||||
EndstopBeep();
|
|
||||||
#endif
|
|
||||||
// PATCH END: Knutwurst
|
|
||||||
|
|
||||||
// Return if setup() isn't completed
|
// Return if setup() isn't completed
|
||||||
if (marlin_state == MF_INITIALIZING) goto IDLE_DONE;
|
if (marlin_state == MF_INITIALIZING) goto IDLE_DONE;
|
||||||
|
|
||||||
|
@@ -41,10 +41,10 @@
|
|||||||
* here we define this default string as the date where the latest release
|
* here we define this default string as the date where the latest release
|
||||||
* version was tagged.
|
* version was tagged.
|
||||||
*/
|
*/
|
||||||
#define CUSTOM_BUILD_VERSION "1.5.0-b4"
|
#define CUSTOM_BUILD_VERSION "1.5.0-RC1"
|
||||||
|
|
||||||
#ifndef STRING_DISTRIBUTION_DATE
|
#ifndef STRING_DISTRIBUTION_DATE
|
||||||
#define STRING_DISTRIBUTION_DATE "2023-05-24"
|
#define STRING_DISTRIBUTION_DATE "2023-06-02"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -21,15 +21,9 @@
|
|||||||
#ifndef anycubic_touchscreen_h
|
#ifndef anycubic_touchscreen_h
|
||||||
#define anycubic_touchscreen_h
|
#define anycubic_touchscreen_h
|
||||||
|
|
||||||
// #include <stdio.h>
|
|
||||||
// #include "../inc/MarlinConfig.h"
|
|
||||||
// #include "../module/configuration_store.h"
|
|
||||||
|
|
||||||
#include "../../../inc/MarlinConfigPre.h"
|
#include "../../../inc/MarlinConfigPre.h"
|
||||||
#include "../../../module/probe.h"
|
#include "../../../module/probe.h"
|
||||||
|
|
||||||
void initializeGrid();
|
|
||||||
|
|
||||||
char *itostr2(const uint8_t &x);
|
char *itostr2(const uint8_t &x);
|
||||||
|
|
||||||
#ifndef ULTRA_LCD
|
#ifndef ULTRA_LCD
|
||||||
@@ -42,26 +36,13 @@ char *itostr2(const uint8_t &x);
|
|||||||
#define MSG_MY_VERSION CUSTOM_BUILD_VERSION
|
#define MSG_MY_VERSION CUSTOM_BUILD_VERSION
|
||||||
#define MAX_PRINTABLE_FILENAME_LEN 26
|
#define MAX_PRINTABLE_FILENAME_LEN 26
|
||||||
|
|
||||||
#if ENABLED(KNUTWURST_CHIRON)
|
|
||||||
#define FIL_RUNOUT_PIN 33
|
|
||||||
#else
|
|
||||||
#define FIL_RUNOUT_PIN 19
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define ANYCUBIC_TFT_STATE_IDLE 0
|
|
||||||
#define ANYCUBIC_TFT_STATE_SDPRINT 1
|
|
||||||
#define ANYCUBIC_TFT_STATE_SDPAUSE 2
|
|
||||||
#define ANYCUBIC_TFT_STATE_SDPAUSE_REQ 3
|
|
||||||
#define ANYCUBIC_TFT_STATE_SDPAUSE_OOF 4
|
|
||||||
#define ANYCUBIC_TFT_STATE_SDSTOP_REQ 5
|
|
||||||
#define ANYCUBIC_TFT_STATE_SDOUTAGE 99
|
|
||||||
|
|
||||||
enum AnycubicMediaPrintState {
|
enum AnycubicMediaPrintState {
|
||||||
AMPRINTSTATE_NOT_PRINTING,
|
AMPRINTSTATE_NOT_PRINTING,
|
||||||
AMPRINTSTATE_PRINTING,
|
AMPRINTSTATE_PRINTING,
|
||||||
AMPRINTSTATE_PAUSE_REQUESTED,
|
AMPRINTSTATE_PAUSE_REQUESTED,
|
||||||
AMPRINTSTATE_PAUSED,
|
AMPRINTSTATE_PAUSED,
|
||||||
AMPRINTSTATE_STOP_REQUESTED
|
AMPRINTSTATE_STOP_REQUESTED,
|
||||||
|
AMPRINTSTATE_PROBING
|
||||||
};
|
};
|
||||||
|
|
||||||
enum AnycubicMediaPauseState {
|
enum AnycubicMediaPauseState {
|
||||||
@@ -164,7 +145,7 @@ enum AnycubicMediaPauseState {
|
|||||||
#endif // !KNUTWURST_DGUS2_TFT
|
#endif // !KNUTWURST_DGUS2_TFT
|
||||||
|
|
||||||
#if ENABLED(KNUTWURST_DGUS2_TFT)
|
#if ENABLED(KNUTWURST_DGUS2_TFT)
|
||||||
#define SM_DIR_UP_L "<<< BACK <<< .gcode"
|
#define SM_DIR_UP_L "/.. .gcode"
|
||||||
#define SM_DIR_UP_S "DIR_UP~1.GCO"
|
#define SM_DIR_UP_S "DIR_UP~1.GCO"
|
||||||
#define SM_SPECIAL_MENU_L "<Special Menu> .gcode"
|
#define SM_SPECIAL_MENU_L "<Special Menu> .gcode"
|
||||||
#define SM_SPECIAL_MENU_S "<SPECI~1.GCO"
|
#define SM_SPECIAL_MENU_S "<SPECI~1.GCO"
|
||||||
@@ -250,15 +231,8 @@ enum AnycubicMediaPauseState {
|
|||||||
#define SM_BLTZ_EXIT_S "<EXTABLM.GCO"
|
#define SM_BLTZ_EXIT_S "<EXTABLM.GCO"
|
||||||
#endif // KNUTWURST_DGUS2_TFT
|
#endif // KNUTWURST_DGUS2_TFT
|
||||||
|
|
||||||
#if ENABLED(KNUTWURST_TFT_LEVELING)
|
|
||||||
// eeprom_index
|
|
||||||
extern int z_values_index;
|
|
||||||
extern int z_values_size;
|
|
||||||
// temp value which needs to be saved
|
|
||||||
extern float SAVE_zprobe_zoffset;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
class AnycubicTouchscreenClass {
|
class AnycubicTouchscreenClass {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
AnycubicTouchscreenClass();
|
AnycubicTouchscreenClass();
|
||||||
|
|
||||||
@@ -273,9 +247,11 @@ void KillTFT();
|
|||||||
static void OnPrintTimerStarted();
|
static void OnPrintTimerStarted();
|
||||||
static void OnPrintTimerPaused();
|
static void OnPrintTimerPaused();
|
||||||
static void OnPrintTimerStopped();
|
static void OnPrintTimerStopped();
|
||||||
|
|
||||||
#if BOTH(ANYCUBIC_TFT_DEBUG, KNUTWURST_DGUS2_TFT)
|
#if BOTH(ANYCUBIC_TFT_DEBUG, KNUTWURST_DGUS2_TFT)
|
||||||
void Command(const char * const command);
|
void Command(const char * const command);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENABLED(KNUTWURST_TFT_LEVELING)
|
#if ENABLED(KNUTWURST_TFT_LEVELING)
|
||||||
void LevelingDone();
|
void LevelingDone();
|
||||||
#endif
|
#endif
|
||||||
@@ -300,6 +276,11 @@ int currentFlowRate = 0;
|
|||||||
bool PrintdoneAndPowerOFF = true;
|
bool PrintdoneAndPowerOFF = true;
|
||||||
bool powerOFFflag = 0;
|
bool powerOFFflag = 0;
|
||||||
|
|
||||||
|
#if ENABLED(KNUTWURST_TFT_LEVELING)
|
||||||
|
xy_uint8_t selectedmeshpoint;
|
||||||
|
float live_Zoffset;
|
||||||
|
#endif
|
||||||
|
|
||||||
static AnycubicMediaPrintState mediaPrintingState;
|
static AnycubicMediaPrintState mediaPrintingState;
|
||||||
static AnycubicMediaPauseState mediaPauseState;
|
static AnycubicMediaPauseState mediaPauseState;
|
||||||
|
|
||||||
@@ -318,7 +299,6 @@ static AnycubicMediaPauseState mediaPauseState;
|
|||||||
int CodeValueInt();
|
int CodeValueInt();
|
||||||
float CodeValue();
|
float CodeValue();
|
||||||
bool CodeSeen(char);
|
bool CodeSeen(char);
|
||||||
void PrintList();
|
|
||||||
void StartPrint();
|
void StartPrint();
|
||||||
void PausePrint();
|
void PausePrint();
|
||||||
void StopPrint();
|
void StopPrint();
|
||||||
@@ -331,12 +311,14 @@ void FilamentChangePause();
|
|||||||
void ResumePrint();
|
void ResumePrint();
|
||||||
void ReheatNozzle();
|
void ReheatNozzle();
|
||||||
void ParkAfterStop();
|
void ParkAfterStop();
|
||||||
|
void RenderCurrentFileList();
|
||||||
|
void RenderSpecialMenu(uint16_t);
|
||||||
|
void RenderCurrentFolder(uint16_t);
|
||||||
|
|
||||||
char currentTouchscreenSelection[30];
|
char currentTouchscreenSelection[64];
|
||||||
char currentFileOrDirectory[30];
|
char currentFileOrDirectory[64];
|
||||||
String flowRateBuffer;
|
String flowRateBuffer;
|
||||||
String zOffsetBuffer;
|
String zOffsetBuffer;
|
||||||
uint16_t MyFileNrCnt = 0;
|
|
||||||
uint8_t FilamentSensorEnabled = true;
|
uint8_t FilamentSensorEnabled = true;
|
||||||
|
|
||||||
uint8_t SpecialMenu = false;
|
uint8_t SpecialMenu = false;
|
||||||
|
@@ -286,9 +286,11 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// RAMPS 1.4 DIO 4 on the servos connector
|
|
||||||
#ifndef FIL_RUNOUT_PIN
|
#if ANY(KNUTWURST_CHIRON, KNUTWURST_4MAXP2)
|
||||||
#define FIL_RUNOUT_PIN 4
|
#define FIL_RUNOUT_PIN 33
|
||||||
|
#else
|
||||||
|
#define FIL_RUNOUT_PIN 19
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef PS_ON_PIN
|
#ifndef PS_ON_PIN
|
||||||
|
@@ -253,7 +253,7 @@
|
|||||||
|
|
||||||
// RAMPS 1.4 DIO 4 on the servos connector
|
// RAMPS 1.4 DIO 4 on the servos connector
|
||||||
#ifndef FIL_RUNOUT_PIN
|
#ifndef FIL_RUNOUT_PIN
|
||||||
#define FIL_RUNOUT_PIN 4
|
#define FIL_RUNOUT_PIN 33
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef PS_ON_PIN
|
#ifndef PS_ON_PIN
|
||||||
|
@@ -86,6 +86,12 @@
|
|||||||
#define OUTAGECON_PIN 58
|
#define OUTAGECON_PIN 58
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if ANY(KNUTWURST_CHIRON, KNUTWURST_4MAXP2)
|
||||||
|
#define FIL_RUNOUT_PIN 33
|
||||||
|
#else
|
||||||
|
#define FIL_RUNOUT_PIN 19
|
||||||
|
#endif
|
||||||
|
|
||||||
#if ENABLED(TRIGORILLA_MAPPING_CHIRON)
|
#if ENABLED(TRIGORILLA_MAPPING_CHIRON)
|
||||||
#ifndef FIL_RUNOUT_PIN
|
#ifndef FIL_RUNOUT_PIN
|
||||||
#define FIL_RUNOUT_PIN 33
|
#define FIL_RUNOUT_PIN 33
|
||||||
|
@@ -64,7 +64,7 @@
|
|||||||
#define TG_FAN1_PIN 7 // Anycubic Kossel: Unused
|
#define TG_FAN1_PIN 7 // Anycubic Kossel: Unused
|
||||||
#define TG_FAN2_PIN 44 // Anycubic Kossel: Hotend fan
|
#define TG_FAN2_PIN 44 // Anycubic Kossel: Hotend fan
|
||||||
#define CONTROLLER_FAN_PIN TG_FAN1_PIN
|
#define CONTROLLER_FAN_PIN TG_FAN1_PIN
|
||||||
#define FIL_RUNOUT_PIN 19
|
#define FIL_RUNOUT_PIN 33
|
||||||
#define BEEPER_PIN 31
|
#define BEEPER_PIN 31
|
||||||
#define SDSS 53
|
#define SDSS 53
|
||||||
#define LED_PIN 13
|
#define LED_PIN 13
|
||||||
|
Reference in New Issue
Block a user