Skip to content

Commit 6cc6fda

Browse files
committed
Examples Customizations
1 parent af9e836 commit 6cc6fda

File tree

766 files changed

+39209
-33050
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

766 files changed

+39209
-33050
lines changed

config/examples/3DFabXYZ/Migbot/Configuration.h

Lines changed: 97 additions & 69 deletions
Large diffs are not rendered by default.

config/examples/3DFabXYZ/Migbot/Configuration_adv.h

Lines changed: 40 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
*/
2222
#pragma once
2323

24+
#define CONFIG_EXAMPLES_DIR "3DFabXYZ/Migbot"
25+
2426
/**
2527
* Configuration_adv.h
2628
*
@@ -577,14 +579,14 @@
577579
* The fan turns on automatically whenever any driver is enabled and turns
578580
* off (or reduces to idle speed) shortly after drivers are turned off.
579581
*/
580-
//#define USE_CONTROLLER_FAN
582+
#define USE_CONTROLLER_FAN
581583
#if ENABLED(USE_CONTROLLER_FAN)
582-
//#define CONTROLLER_FAN_PIN -1 // Set a custom pin for the controller fan
584+
#define CONTROLLER_FAN_PIN 7 // Set a custom pin for the controller fan
583585
//#define CONTROLLER_FAN2_PIN -1 // Set a custom pin for second controller fan
584586
//#define CONTROLLER_FAN_USE_Z_ONLY // With this option only the Z axis is considered
585587
//#define CONTROLLER_FAN_IGNORE_Z // Ignore Z stepper. Useful when stepper timeout is disabled.
586588
#define CONTROLLERFAN_SPEED_MIN 0 // (0-255) Minimum speed. (If set below this value the fan is turned off.)
587-
#define CONTROLLERFAN_SPEED_ACTIVE 255 // (0-255) Active speed, used when any motor is enabled
589+
#define CONTROLLERFAN_SPEED_ACTIVE 127 // (0-255) Active speed, used when any motor is enabled
588590
#define CONTROLLERFAN_SPEED_IDLE 0 // (0-255) Idle speed, used when motors are disabled
589591
#define CONTROLLERFAN_IDLE_TIME 60 // (seconds) Extra time to keep the fan running after disabling motors
590592

@@ -756,15 +758,15 @@
756758
* @section caselight
757759
* M355 Case Light on-off / brightness
758760
*/
759-
//#define CASE_LIGHT_ENABLE
761+
#define CASE_LIGHT_ENABLE
760762
#if ENABLED(CASE_LIGHT_ENABLE)
761-
//#define CASE_LIGHT_PIN 4 // Override the default pin if needed
763+
#define CASE_LIGHT_PIN 11 // Override the default pin if needed
762764
#define INVERT_CASE_LIGHT false // Set true if Case Light is ON when pin is LOW
763-
#define CASE_LIGHT_DEFAULT_ON true // Set default power-up state on
765+
#define CASE_LIGHT_DEFAULT_ON false // Set default power-up state on
764766
#define CASE_LIGHT_DEFAULT_BRIGHTNESS 105 // Set default power-up brightness (0-255, requires PWM pin)
765767
//#define CASE_LIGHT_NO_BRIGHTNESS // Disable brightness control. Enable for non-PWM lighting.
766768
//#define CASE_LIGHT_MAX_PWM 128 // Limit PWM duty cycle (0-255)
767-
//#define CASE_LIGHT_MENU // Add Case Light options to the LCD menu
769+
#define CASE_LIGHT_MENU // Add Case Light options to the LCD menu
768770
#if ENABLED(NEOPIXEL_LED)
769771
//#define CASE_LIGHT_USE_NEOPIXEL // Use NeoPixel LED as case light
770772
#endif
@@ -1079,7 +1081,7 @@
10791081

10801082
// On a 300mm bed a 5% grade would give a misalignment of ~1.5cm
10811083
#define G34_MAX_GRADE 5 // (%) Maximum incline that G34 will handle
1082-
#define Z_STEPPER_ALIGN_ITERATIONS 5 // Number of iterations to apply during alignment
1084+
#define Z_STEPPER_ALIGN_ITERATIONS 3 // Number of iterations to apply during alignment
10831085
#define Z_STEPPER_ALIGN_ACC 0.02 // Stop iterating early if the accuracy is better than this
10841086

10851087
#define RESTORE_LEVELING_AFTER_G34 // Restore leveling after G34 is done?
@@ -1417,7 +1419,7 @@
14171419
* vibration and surface artifacts. The algorithm adapts to provide the best possible step smoothing at the
14181420
* lowest stepping frequencies.
14191421
*/
1420-
//#define ADAPTIVE_STEP_SMOOTHING
1422+
#define ADAPTIVE_STEP_SMOOTHING
14211423

14221424
/**
14231425
* Custom Microstepping
@@ -1504,8 +1506,8 @@
15041506
// Change values more rapidly when the encoder is rotated faster
15051507
#define ENCODER_RATE_MULTIPLIER
15061508
#if ENABLED(ENCODER_RATE_MULTIPLIER)
1507-
#define ENCODER_10X_STEPS_PER_SEC 30 // (steps/s) Encoder rate for 10x speed
1508-
#define ENCODER_100X_STEPS_PER_SEC 80 // (steps/s) Encoder rate for 100x speed
1509+
#define ENCODER_10X_STEPS_PER_SEC 75 // (steps/s) Encoder rate for 10x speed
1510+
#define ENCODER_100X_STEPS_PER_SEC 160 // (steps/s) Encoder rate for 100x speed
15091511
#endif
15101512

15111513
// Play a beep when the feedrate is changed from the Status Screen
@@ -1563,7 +1565,7 @@
15631565
#endif
15641566

15651567
// Include a page of printer information in the LCD Main Menu
1566-
//#define LCD_INFO_MENU
1568+
#define LCD_INFO_MENU
15671569
#if ENABLED(LCD_INFO_MENU)
15681570
//#define LCD_PRINTER_INFO_IS_BOOTSCREEN // Show bootscreen(s) instead of Printer Info pages
15691571
//#define BUILD_INFO_MENU_ITEM // Add a menu item to display the build date and time
@@ -1646,7 +1648,7 @@
16461648
//#define LCD_TIMEOUT_TO_STATUS 15000 // (ms)
16471649

16481650
// Scroll a longer status message into view
1649-
//#define STATUS_MESSAGE_SCROLLING
1651+
#define STATUS_MESSAGE_SCROLLING
16501652

16511653
// Apply a timeout to low-priority status messages
16521654
//#define STATUS_MESSAGE_TIMEOUT_SEC 30 // (seconds)
@@ -1772,7 +1774,7 @@
17721774

17731775
//#define MEDIA_MENU_AT_TOP // Force the media menu to be listed on the top of the main menu
17741776

1775-
#define EVENT_GCODE_SD_ABORT "G28XY" // G-code to run on SD Abort Print (e.g., "G28XY" or "G27")
1777+
#define EVENT_GCODE_SD_ABORT "G27" // G-code to run on SD Abort Print (e.g., "G28XY" or "G27")
17761778

17771779
#if ENABLED(PRINTER_EVENT_LEDS)
17781780
#define PE_LEDS_COMPLETED_TIME (30*60) // (seconds) Time to keep the LED "done" color before restoring normal illumination
@@ -1862,7 +1864,7 @@
18621864
//#define LONG_FILENAME_WRITE_SUPPORT // Create / delete files with long filenames via M28, M30, and Binary Transfer Protocol
18631865
//#define M20_TIMESTAMP_SUPPORT // Include timestamps by adding the 'T' flag to M20 commands
18641866

1865-
//#define SCROLL_LONG_FILENAMES // Scroll long filenames in the SD card menu
1867+
#define SCROLL_LONG_FILENAMES // Scroll long filenames in the SD card menu
18661868

18671869
//#define SD_ABORT_NO_COOLDOWN // Leave the heaters on after Stop Print (not recommended!)
18681870

@@ -2338,8 +2340,12 @@
23382340
//#define BABYSTEP_DISPLAY_TOTAL // Display total babysteps since last G28
23392341

23402342
//#define BABYSTEP_ZPROBE_OFFSET // Combine M851 Z and Babystepping
2341-
#if ENABLED(BABYSTEP_ZPROBE_OFFSET)
2342-
//#define BABYSTEP_HOTEND_Z_OFFSET // For multiple hotends, babystep relative Z offsets
2343+
//#define BABYSTEP_GLOBAL_Z // Combine M424 Z and Babystepping
2344+
2345+
#if ANY(BABYSTEP_ZPROBE_OFFSET, BABYSTEP_GLOBAL_Z)
2346+
#if ENABLED(BABYSTEP_ZPROBE_OFFSET)
2347+
//#define BABYSTEP_HOTEND_Z_OFFSET // For multiple hotends, babystep relative Z offsets
2348+
#endif
23432349
//#define BABYSTEP_GFX_OVERLAY // Enable graphical overlay on Z-offset editor
23442350
#endif
23452351
#endif
@@ -2962,7 +2968,7 @@
29622968
*
29632969
* Enable PARK_HEAD_ON_PAUSE to add the G-code M125 Pause and Park.
29642970
*/
2965-
//#define ADVANCED_PAUSE_FEATURE
2971+
#define ADVANCED_PAUSE_FEATURE
29662972
#if ENABLED(ADVANCED_PAUSE_FEATURE)
29672973
#define PAUSE_PARK_RETRACT_FEEDRATE 60 // (mm/s) Initial retract feedrate.
29682974
#define PAUSE_PARK_RETRACT_LENGTH 2 // (mm) Initial retract.
@@ -3005,7 +3011,7 @@
30053011
//#define PARK_HEAD_ON_PAUSE // Park the nozzle during pause and filament change.
30063012
//#define HOME_BEFORE_FILAMENT_CHANGE // If needed, home before parking for filament change
30073013

3008-
//#define FILAMENT_LOAD_UNLOAD_GCODES // Add M701/M702 Load/Unload G-codes, plus Load/Unload in the LCD Prepare menu.
3014+
#define FILAMENT_LOAD_UNLOAD_GCODES // Add M701/M702 Load/Unload G-codes, plus Load/Unload in the LCD Prepare menu.
30093015
//#define FILAMENT_UNLOAD_ALL_EXTRUDERS // Allow M702 to unload all extruders above a minimum target temp (as set by M302)
30103016
#define CONFIGURE_FILAMENT_CHANGE // Add M603 G-code and menu items. Requires ~1.3K bytes of flash.
30113017
#endif
@@ -3606,7 +3612,7 @@
36063612
* Add the M240 G-code to take a photo.
36073613
* The photo can be triggered by a digital pin or a physical movement.
36083614
*/
3609-
//#define PHOTO_GCODE
3615+
#define PHOTO_GCODE
36103616
#if ENABLED(PHOTO_GCODE)
36113617
// A position to move to (and raise Z) before taking the photo
36123618
//#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 } // { xpos, ypos, zraise } (M240 X Y Z)
@@ -3615,17 +3621,17 @@
36153621

36163622
// Canon RC-1 or homebrew digital camera trigger
36173623
// Data from: https://www.doc-diy.net/photo/rc-1_hacked/
3618-
//#define PHOTOGRAPH_PIN 23
3624+
//#define PHOTOGRAPH_PIN 12
36193625

36203626
// Canon Hack Development Kit
36213627
// https://web.archive.org/web/20200920094805/captain-slow.dk/2014/03/09/3d-printing-timelapses/
3622-
//#define CHDK_PIN 4
3628+
#define CHDK_PIN 12
36233629

36243630
// Optional second move with delay to trigger the camera shutter
36253631
//#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS } // { xpos, ypos } (M240 I J)
36263632

36273633
// Duration to hold the switch or keep CHDK_PIN high
3628-
//#define PHOTO_SWITCH_MS 50 // (ms) (M240 D)
3634+
#define PHOTO_SWITCH_MS 50 // (ms) (M240 D)
36293635

36303636
/**
36313637
* PHOTO_PULSES_US may need adjustment depending on board and camera model.
@@ -4096,33 +4102,29 @@
40964102
// @section custom main menu
40974103

40984104
// Custom Menu: Main Menu
4099-
//#define CUSTOM_MENU_MAIN
4105+
#define CUSTOM_MENU_MAIN
41004106
#if ENABLED(CUSTOM_MENU_MAIN)
4101-
//#define CUSTOM_MENU_MAIN_TITLE "Custom Commands"
4102-
#define CUSTOM_MENU_MAIN_SCRIPT_DONE "M117 User Script Done"
4107+
#define CUSTOM_MENU_MAIN_TITLE "Tools"
4108+
#define CUSTOM_MENU_MAIN_SCRIPT_DONE "M117 Done"
41034109
#define CUSTOM_MENU_MAIN_SCRIPT_AUDIBLE_FEEDBACK
41044110
//#define CUSTOM_MENU_MAIN_SCRIPT_RETURN // Return to status screen after a script
41054111
#define CUSTOM_MENU_MAIN_ONLY_IDLE // Only show custom menu when the machine is idle
41064112

4107-
#define MAIN_MENU_ITEM_1_DESC "Home & UBL Info"
4108-
#define MAIN_MENU_ITEM_1_GCODE "G28\nG29 W"
4113+
#define MAIN_MENU_ITEM_1_DESC "Probe Mesh&Save"
4114+
#define MAIN_MENU_ITEM_1_GCODE "G28\nG29 P1\nG29 P3 T0\nG29 S0 A F10\nG29 J2\nM500"
41094115
//#define MAIN_MENU_ITEM_1_CONFIRM // Show a confirmation dialog before this action
41104116

4111-
#define MAIN_MENU_ITEM_2_DESC "Preheat for " PREHEAT_1_LABEL
4112-
#define MAIN_MENU_ITEM_2_GCODE "M140 S" STRINGIFY(PREHEAT_1_TEMP_BED) "\nM104 S" STRINGIFY(PREHEAT_1_TEMP_HOTEND)
4117+
#define MAIN_MENU_ITEM_2_DESC "Manual Mesh&Save"
4118+
#define MAIN_MENU_ITEM_2_GCODE "G28\nG29 P4 R999 T\nG29 S0 A F10\nM500"
41134119
//#define MAIN_MENU_ITEM_2_CONFIRM
41144120

4115-
//#define MAIN_MENU_ITEM_3_DESC "Preheat for " PREHEAT_2_LABEL
4116-
//#define MAIN_MENU_ITEM_3_GCODE "M140 S" STRINGIFY(PREHEAT_2_TEMP_BED) "\nM104 S" STRINGIFY(PREHEAT_2_TEMP_HOTEND)
4121+
#define MAIN_MENU_ITEM_3_DESC "Print Test Pattern"
4122+
#define MAIN_MENU_ITEM_3_GCODE "G26 C P O2.25" // Do a typical test sequence
41174123
//#define MAIN_MENU_ITEM_3_CONFIRM
41184124

4119-
//#define MAIN_MENU_ITEM_4_DESC "Heat Bed/Home/Level"
4120-
//#define MAIN_MENU_ITEM_4_GCODE "M140 S" STRINGIFY(PREHEAT_2_TEMP_BED) "\nG28\nG29"
4125+
#define MAIN_MENU_ITEM_4_DESC "Move Bed Forward"
4126+
#define MAIN_MENU_ITEM_4_GCODE "G28 X0 Y0\nG1 X0 Y180 F3000\nM84" // move X/Y to min endstops & Feed the bed forward & steppers off
41214127
//#define MAIN_MENU_ITEM_4_CONFIRM
4122-
4123-
//#define MAIN_MENU_ITEM_5_DESC "Home & Info"
4124-
//#define MAIN_MENU_ITEM_5_GCODE "G28\nM503"
4125-
//#define MAIN_MENU_ITEM_5_CONFIRM
41264128
#endif
41274129

41284130
// @section custom config menu

0 commit comments

Comments
 (0)