Skip to content

Commit b97bb14

Browse files
tpruvotthinkyhead
authored andcommitted
Full-featured Alfawise U20 config (MarlinFirmware#15131)
1 parent 5406982 commit b97bb14

File tree

2 files changed

+34
-29
lines changed

2 files changed

+34
-29
lines changed

config/examples/Alfawise/U20-bltouch/Configuration_adv.h

+31-26
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@
137137
* THERMAL_PROTECTION_HYSTERESIS and/or THERMAL_PROTECTION_PERIOD
138138
*/
139139
#if ENABLED(THERMAL_PROTECTION_HOTENDS)
140-
#define THERMAL_PROTECTION_PERIOD 40 // Seconds
141-
#define THERMAL_PROTECTION_HYSTERESIS 4 // Degrees Celsius
140+
#define THERMAL_PROTECTION_PERIOD 60 // Seconds
141+
#define THERMAL_PROTECTION_HYSTERESIS 10 // Degrees Celsius
142142

143143
//#define ADAPTIVE_FAN_SLOWING // Slow part cooling fan if temperature drops
144144
#if BOTH(ADAPTIVE_FAN_SLOWING, PIDTEMP)
@@ -157,7 +157,7 @@
157157
* and/or decrease WATCH_TEMP_INCREASE. WATCH_TEMP_INCREASE should not be set
158158
* below 2.
159159
*/
160-
#define WATCH_TEMP_PERIOD 20 // Seconds
160+
#define WATCH_TEMP_PERIOD 60 // Seconds
161161
#define WATCH_TEMP_INCREASE 2 // Degrees Celsius
162162
#endif
163163

@@ -518,7 +518,7 @@
518518
#define X_HOME_BUMP_MM 5
519519
#define Y_HOME_BUMP_MM 5
520520
#define Z_HOME_BUMP_MM 2
521-
#define HOMING_BUMP_DIVISOR { 2, 2, 4 } // Re-Bump Speed Divisor (Divides the Homing Feedrate)
521+
#define HOMING_BUMP_DIVISOR { 4, 4, 4 } // Re-Bump Speed Divisor (Divides the Homing Feedrate)
522522
//#define QUICK_HOME // If homing includes X and Y, do a diagonal move initially
523523
//#define HOMING_BACKOFF_MM { 2, 2, 2 } // (mm) Move away from the endstops after homing
524524

@@ -543,6 +543,7 @@
543543
*
544544
* Settings for all BLTouch and clone probes:
545545
*/
546+
#undef PROBE_MANUALLY
546547

547548
// Safety: The probe needs time to recognize the command.
548549
// Minimum command delay (ms). Enable and increase if needed.
@@ -591,7 +592,7 @@
591592
//#define BLTOUCH_HS_MODE
592593

593594
// Safety: Enable voltage mode settings in the LCD menu.
594-
//#define BLTOUCH_LCD_VOLTAGE_MENU
595+
#define BLTOUCH_LCD_VOLTAGE_MENU
595596

596597
#endif // BLTOUCH
597598

@@ -854,7 +855,7 @@
854855
#if HAS_LCD_MENU
855856

856857
// Include a page of printer information in the LCD Main Menu
857-
//#define LCD_INFO_MENU
858+
#define LCD_INFO_MENU
858859
#if ENABLED(LCD_INFO_MENU)
859860
//#define LCD_PRINTER_INFO_IS_BOOTSCREEN // Show bootscreen(s) instead of Printer Info pages
860861
#endif
@@ -891,7 +892,7 @@
891892
//#define LCD_TIMEOUT_TO_STATUS 15000
892893

893894
// Add an 'M73' G-code to set the current percentage
894-
//#define LCD_SET_PROGRESS_MANUALLY
895+
#define LCD_SET_PROGRESS_MANUALLY
895896

896897
#if HAS_CHARACTER_LCD && HAS_PRINT_PROGRESS
897898
//#define LCD_PROGRESS_BAR // Show a progress bar on HD44780 LCDs for SD printing
@@ -922,7 +923,7 @@
922923

923924
#define SD_MENU_CONFIRM_START // Confirm the selected SD file before printing
924925

925-
//#define MENU_ADDAUTOSTART // Add a menu option to run auto#.g files
926+
#define MENU_ADDAUTOSTART // Add a menu option to run auto#.g files
926927

927928
#define EVENT_GCODE_SD_STOP "G28XY" // G-code to run on Stop Print (e.g., "G28XY" or "G27")
928929

@@ -934,7 +935,7 @@
934935
* an option on the LCD screen to continue the print from the last-known
935936
* point in the file.
936937
*/
937-
//#define POWER_LOSS_RECOVERY
938+
#define POWER_LOSS_RECOVERY
938939
#if ENABLED(POWER_LOSS_RECOVERY)
939940
//#define POWER_LOSS_PIN 44 // Pin to detect power loss
940941
//#define POWER_LOSS_STATE HIGH // State of pin indicating power loss
@@ -945,6 +946,9 @@
945946
// Without a POWER_LOSS_PIN the following option helps reduce wear on the SD card,
946947
// especially with "vase mode" printing. Set too high and vases cannot be continued.
947948
#define POWER_LOSS_MIN_Z_CHANGE 0.05 // (mm) Minimum Z change before saving power-loss data
949+
950+
//#define DEBUG_POWER_LOSS_RECOVERY // Debug informations on serial output
951+
//#define SAVE_INFO_INTERVAL_MS 0 // Force SD recov. write interval, on each layer start if 0
948952
#endif
949953

950954
/**
@@ -970,7 +974,7 @@
970974
* - SDSORT_CACHE_NAMES will retain the sorted file listing in RAM. (Expensive!)
971975
* - SDSORT_DYNAMIC_RAM only uses RAM when the SD menu is visible. (Use with caution!)
972976
*/
973-
//#define SDCARD_SORT_ALPHA
977+
#define SDCARD_SORT_ALPHA
974978

975979
// SD Card Sorting options
976980
#if ENABLED(SDCARD_SORT_ALPHA)
@@ -986,7 +990,7 @@
986990
#endif
987991

988992
// This allows hosts to request long names for files and folders with M33
989-
//#define LONG_FILENAME_HOST_SUPPORT
993+
#define LONG_FILENAME_HOST_SUPPORT
990994

991995
// Enable this option to scroll long filenames in the SD card menu
992996
//#define SCROLL_LONG_FILENAMES
@@ -1006,7 +1010,7 @@
10061010
* On print completion the LCD Menu will open with the file selected.
10071011
* You can just click to start the print, or navigate elsewhere.
10081012
*/
1009-
//#define SD_REPRINT_LAST_SELECTED_FILE
1013+
#define SD_REPRINT_LAST_SELECTED_FILE
10101014

10111015
/**
10121016
* Auto-report SdCard status with M27 S<seconds>
@@ -1099,7 +1103,7 @@
10991103
*/
11001104
#if HAS_GRAPHICAL_LCD
11011105
// Show SD percentage next to the progress bar
1102-
//#define DOGM_SD_PERCENT
1106+
#define DOGM_SD_PERCENT
11031107

11041108
// Enable to save many cycles by drawing a hollow frame on the Info Screen
11051109
#define XYZ_HOLLOW_FRAME
@@ -1155,7 +1159,7 @@
11551159
//#define STATUS_ALT_BED_BITMAP // Use the alternative bed bitmap
11561160
//#define STATUS_ALT_FAN_BITMAP // Use the alternative fan bitmap
11571161
//#define STATUS_FAN_FRAMES 3 // :[0,1,2,3,4] Number of fan animation frames
1158-
//#define STATUS_HEAT_PERCENT // Show heating in a progress bar
1162+
#define STATUS_HEAT_PERCENT // Show heating in a progress bar
11591163
//#define BOOT_MARLIN_LOGO_SMALL // Show a smaller Marlin logo on the Boot Screen (saving 399 bytes of flash)
11601164
//#define BOOT_MARLIN_LOGO_ANIMATED // Animated Marlin logo. Costs ~‭3260 (or ~940) bytes of PROGMEM.
11611165

@@ -1218,12 +1222,13 @@
12181222
// FSMC Graphical TFT
12191223
//
12201224
#if ENABLED(FSMC_GRAPHICAL_TFT)
1221-
//#define TFT_MARLINUI_COLOR 0xFFFF // White
1222-
//#define TFT_MARLINBG_COLOR 0x0000 // Black
1223-
//#define TFT_DISABLED_COLOR 0x0003 // Almost black
1224-
//#define TFT_BTCANCEL_COLOR 0xF800 // Red
1225-
//#define TFT_BTARROWS_COLOR 0xDEE6 // 11011 110111 00110 Yellow
1226-
//#define TFT_BTOKMENU_COLOR 0x145F // 00010 100010 11111 Cyan
1225+
// see https://ee-programming-notepad.blogspot.com/2016/10/16-bit-color-generator-picker.html
1226+
#define TFT_MARLINUI_COLOR COLOR_WHITE
1227+
#define TFT_MARLINBG_COLOR COLOR_BLACK
1228+
#define TFT_DISABLED_COLOR 0x10A2 // almost black
1229+
#define TFT_BTCANCEL_COLOR COLOR_RED
1230+
#define TFT_BTARROWS_COLOR COLOR_WHITE
1231+
#define TFT_BTOKMENU_COLOR COLOR_BLUE
12271232
#endif
12281233

12291234
// @section safety
@@ -1420,16 +1425,16 @@
14201425
// The number of linear motions that can be in the plan at any give time.
14211426
// THE BLOCK_BUFFER_SIZE NEEDS TO BE A POWER OF 2 (e.g. 8, 16, 32) because shifts and ors are used to do the ring-buffering.
14221427
#if ENABLED(SDSUPPORT)
1423-
#define BLOCK_BUFFER_SIZE 16 // SD,LCD,Buttons take more memory, block buffer needs to be smaller
1428+
#define BLOCK_BUFFER_SIZE 32
14241429
#else
1425-
#define BLOCK_BUFFER_SIZE 16 // maximize block buffer
1430+
#define BLOCK_BUFFER_SIZE 16 // Marlin default
14261431
#endif
14271432

14281433
// @section serial
14291434

14301435
// The ASCII buffer for serial input
14311436
#define MAX_CMD_SIZE 96
1432-
#define BUFSIZE 4
1437+
#define BUFSIZE 8
14331438

14341439
// Transmission to Host Buffer Size
14351440
// To save 386 bytes of PROGMEM (and TX_BUFFER_SIZE+3 bytes of RAM) set to 0.
@@ -1569,7 +1574,7 @@
15691574
* Requires NOZZLE_PARK_FEATURE.
15701575
* This feature is required for the default FILAMENT_RUNOUT_SCRIPT.
15711576
*/
1572-
//#define ADVANCED_PAUSE_FEATURE
1577+
#define ADVANCED_PAUSE_FEATURE
15731578
#if ENABLED(ADVANCED_PAUSE_FEATURE)
15741579
#define PAUSE_PARK_RETRACT_FEEDRATE 60 // (mm/s) Initial retract feedrate.
15751580
#define PAUSE_PARK_RETRACT_LENGTH 2 // (mm) Initial retract.
@@ -1590,7 +1595,7 @@
15901595
// For direct drive, the full length of the nozzle.
15911596
//#define ADVANCED_PAUSE_CONTINUOUS_PURGE // Purge continuously up to the purge length until interrupted.
15921597
#define ADVANCED_PAUSE_PURGE_FEEDRATE 3 // (mm/s) Extrude feedrate (after loading). Should be slower than load feedrate.
1593-
#define ADVANCED_PAUSE_PURGE_LENGTH 50 // (mm) Length to extrude after loading.
1598+
#define ADVANCED_PAUSE_PURGE_LENGTH 25 // (mm) Length to extrude after loading.
15941599
// Set to 0 for manual extrusion.
15951600
// Filament can be extruded repeatedly from the Filament Change menu
15961601
// until extrusion is consistent, and to purge old filament.
@@ -1609,7 +1614,7 @@
16091614
//#define PARK_HEAD_ON_PAUSE // Park the nozzle during pause and filament change.
16101615
//#define HOME_BEFORE_FILAMENT_CHANGE // Ensure homing has been completed prior to parking for filament change
16111616

1612-
//#define FILAMENT_LOAD_UNLOAD_GCODES // Add M701/M702 Load/Unload G-codes, plus Load/Unload in the LCD Prepare menu.
1617+
#define FILAMENT_LOAD_UNLOAD_GCODES // Add M701/M702 Load/Unload G-codes, plus Load/Unload in the LCD Prepare menu.
16131618
//#define FILAMENT_UNLOAD_ALL_EXTRUDERS // Allow M702 to unload all extruders above a minimum target temp (as set by M302)
16141619
#endif
16151620

config/examples/Alfawise/U20/Configuration_adv.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@
922922

923923
#define SD_MENU_CONFIRM_START // Confirm the selected SD file before printing
924924

925-
#define MENU_ADDAUTOSTART // Add a menu option to run auto#.g files
925+
#define MENU_ADDAUTOSTART // Add a menu option to run auto#.g files
926926

927927
#define EVENT_GCODE_SD_STOP "G28XY" // G-code to run on Stop Print (e.g., "G28XY" or "G27")
928928

@@ -1424,9 +1424,9 @@
14241424
// The number of linear motions that can be in the plan at any give time.
14251425
// THE BLOCK_BUFFER_SIZE NEEDS TO BE A POWER OF 2 (e.g. 8, 16, 32) because shifts and ors are used to do the ring-buffering.
14261426
#if ENABLED(SDSUPPORT)
1427-
#define BLOCK_BUFFER_SIZE 32 // SD,LCD,Buttons take more memory, block buffer needs to be smaller
1427+
#define BLOCK_BUFFER_SIZE 32
14281428
#else
1429-
#define BLOCK_BUFFER_SIZE 16 // maximize block buffer
1429+
#define BLOCK_BUFFER_SIZE 16 // Marlin default
14301430
#endif
14311431

14321432
// @section serial

0 commit comments

Comments
 (0)