Skip to content

Commit c584f32

Browse files
committed
Examples Customizations
1 parent f1fb787 commit c584f32

File tree

730 files changed

+35278
-30714
lines changed

Some content is hidden

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

730 files changed

+35278
-30714
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: 34 additions & 36 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
*
@@ -573,14 +575,14 @@
573575
* The fan turns on automatically whenever any driver is enabled and turns
574576
* off (or reduces to idle speed) shortly after drivers are turned off.
575577
*/
576-
//#define USE_CONTROLLER_FAN
578+
#define USE_CONTROLLER_FAN
577579
#if ENABLED(USE_CONTROLLER_FAN)
578-
//#define CONTROLLER_FAN_PIN -1 // Set a custom pin for the controller fan
580+
#define CONTROLLER_FAN_PIN 7 // Set a custom pin for the controller fan
579581
//#define CONTROLLER_FAN2_PIN -1 // Set a custom pin for second controller fan
580582
//#define CONTROLLER_FAN_USE_Z_ONLY // With this option only the Z axis is considered
581583
//#define CONTROLLER_FAN_IGNORE_Z // Ignore Z stepper. Useful when stepper timeout is disabled.
582584
#define CONTROLLERFAN_SPEED_MIN 0 // (0-255) Minimum speed. (If set below this value the fan is turned off.)
583-
#define CONTROLLERFAN_SPEED_ACTIVE 255 // (0-255) Active speed, used when any motor is enabled
585+
#define CONTROLLERFAN_SPEED_ACTIVE 127 // (0-255) Active speed, used when any motor is enabled
584586
#define CONTROLLERFAN_SPEED_IDLE 0 // (0-255) Idle speed, used when motors are disabled
585587
#define CONTROLLERFAN_IDLE_TIME 60 // (seconds) Extra time to keep the fan running after disabling motors
586588

@@ -748,15 +750,15 @@
748750
* @section caselight
749751
* M355 Case Light on-off / brightness
750752
*/
751-
//#define CASE_LIGHT_ENABLE
753+
#define CASE_LIGHT_ENABLE
752754
#if ENABLED(CASE_LIGHT_ENABLE)
753-
//#define CASE_LIGHT_PIN 4 // Override the default pin if needed
755+
#define CASE_LIGHT_PIN 11 // Override the default pin if needed
754756
#define INVERT_CASE_LIGHT false // Set true if Case Light is ON when pin is LOW
755-
#define CASE_LIGHT_DEFAULT_ON true // Set default power-up state on
757+
#define CASE_LIGHT_DEFAULT_ON false // Set default power-up state on
756758
#define CASE_LIGHT_DEFAULT_BRIGHTNESS 105 // Set default power-up brightness (0-255, requires PWM pin)
757759
//#define CASE_LIGHT_NO_BRIGHTNESS // Disable brightness control. Enable for non-PWM lighting.
758760
//#define CASE_LIGHT_MAX_PWM 128 // Limit PWM duty cycle (0-255)
759-
//#define CASE_LIGHT_MENU // Add Case Light options to the LCD menu
761+
#define CASE_LIGHT_MENU // Add Case Light options to the LCD menu
760762
#if ENABLED(NEOPIXEL_LED)
761763
//#define CASE_LIGHT_USE_NEOPIXEL // Use NeoPixel LED as case light
762764
#endif
@@ -1071,7 +1073,7 @@
10711073

10721074
// On a 300mm bed a 5% grade would give a misalignment of ~1.5cm
10731075
#define G34_MAX_GRADE 5 // (%) Maximum incline that G34 will handle
1074-
#define Z_STEPPER_ALIGN_ITERATIONS 5 // Number of iterations to apply during alignment
1076+
#define Z_STEPPER_ALIGN_ITERATIONS 3 // Number of iterations to apply during alignment
10751077
#define Z_STEPPER_ALIGN_ACC 0.02 // Stop iterating early if the accuracy is better than this
10761078
#define RESTORE_LEVELING_AFTER_G34 // Restore leveling after G34 is done?
10771079
// After G34, re-home Z (G28 Z) or just calculate it from the last probe heights?
@@ -1398,7 +1400,7 @@
13981400
* vibration and surface artifacts. The algorithm adapts to provide the best possible step smoothing at the
13991401
* lowest stepping frequencies.
14001402
*/
1401-
//#define ADAPTIVE_STEP_SMOOTHING
1403+
#define ADAPTIVE_STEP_SMOOTHING
14021404

14031405
/**
14041406
* Custom Microstepping
@@ -1485,8 +1487,8 @@
14851487
// Change values more rapidly when the encoder is rotated faster
14861488
#define ENCODER_RATE_MULTIPLIER
14871489
#if ENABLED(ENCODER_RATE_MULTIPLIER)
1488-
#define ENCODER_10X_STEPS_PER_SEC 30 // (steps/s) Encoder rate for 10x speed
1489-
#define ENCODER_100X_STEPS_PER_SEC 80 // (steps/s) Encoder rate for 100x speed
1490+
#define ENCODER_10X_STEPS_PER_SEC 75 // (steps/s) Encoder rate for 10x speed
1491+
#define ENCODER_100X_STEPS_PER_SEC 160 // (steps/s) Encoder rate for 100x speed
14901492
#endif
14911493

14921494
// Play a beep when the feedrate is changed from the Status Screen
@@ -1533,7 +1535,7 @@
15331535
#endif
15341536

15351537
// Include a page of printer information in the LCD Main Menu
1536-
//#define LCD_INFO_MENU
1538+
#define LCD_INFO_MENU
15371539
#if ENABLED(LCD_INFO_MENU)
15381540
//#define LCD_PRINTER_INFO_IS_BOOTSCREEN // Show bootscreen(s) instead of Printer Info pages
15391541
#endif
@@ -1608,7 +1610,7 @@
16081610
//#define LCD_TIMEOUT_TO_STATUS 15000 // (ms)
16091611

16101612
// Scroll a longer status message into view
1611-
//#define STATUS_MESSAGE_SCROLLING
1613+
#define STATUS_MESSAGE_SCROLLING
16121614

16131615
// Apply a timeout to low-priority status messages
16141616
//#define STATUS_MESSAGE_TIMEOUT_SEC 30 // (seconds)
@@ -1733,7 +1735,7 @@
17331735

17341736
//#define MEDIA_MENU_AT_TOP // Force the media menu to be listed on the top of the main menu
17351737

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

17381740
#if ENABLED(PRINTER_EVENT_LEDS)
17391741
#define PE_LEDS_COMPLETED_TIME (30*60) // (seconds) Time to keep the LED "done" color before restoring normal illumination
@@ -1823,7 +1825,7 @@
18231825
//#define LONG_FILENAME_WRITE_SUPPORT // Create / delete files with long filenames via M28, M30, and Binary Transfer Protocol
18241826
//#define M20_TIMESTAMP_SUPPORT // Include timestamps by adding the 'T' flag to M20 commands
18251827

1826-
//#define SCROLL_LONG_FILENAMES // Scroll long filenames in the SD card menu
1828+
#define SCROLL_LONG_FILENAMES // Scroll long filenames in the SD card menu
18271829

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

@@ -2904,7 +2906,7 @@
29042906
*
29052907
* Enable PARK_HEAD_ON_PAUSE to add the G-code M125 Pause and Park.
29062908
*/
2907-
//#define ADVANCED_PAUSE_FEATURE
2909+
#define ADVANCED_PAUSE_FEATURE
29082910
#if ENABLED(ADVANCED_PAUSE_FEATURE)
29092911
#define PAUSE_PARK_RETRACT_FEEDRATE 60 // (mm/s) Initial retract feedrate.
29102912
#define PAUSE_PARK_RETRACT_LENGTH 2 // (mm) Initial retract.
@@ -2947,7 +2949,7 @@
29472949
//#define PARK_HEAD_ON_PAUSE // Park the nozzle during pause and filament change.
29482950
//#define HOME_BEFORE_FILAMENT_CHANGE // If needed, home before parking for filament change
29492951

2950-
//#define FILAMENT_LOAD_UNLOAD_GCODES // Add M701/M702 Load/Unload G-codes, plus Load/Unload in the LCD Prepare menu.
2952+
#define FILAMENT_LOAD_UNLOAD_GCODES // Add M701/M702 Load/Unload G-codes, plus Load/Unload in the LCD Prepare menu.
29512953
//#define FILAMENT_UNLOAD_ALL_EXTRUDERS // Allow M702 to unload all extruders above a minimum target temp (as set by M302)
29522954
#define CONFIGURE_FILAMENT_CHANGE // Add M603 G-code and menu items. Requires ~1.3K bytes of flash.
29532955
#endif
@@ -3541,7 +3543,7 @@
35413543
* Add the M240 G-code to take a photo.
35423544
* The photo can be triggered by a digital pin or a physical movement.
35433545
*/
3544-
//#define PHOTO_GCODE
3546+
#define PHOTO_GCODE
35453547
#if ENABLED(PHOTO_GCODE)
35463548
// A position to move to (and raise Z) before taking the photo
35473549
//#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 } // { xpos, ypos, zraise } (M240 X Y Z)
@@ -3550,17 +3552,17 @@
35503552

35513553
// Canon RC-1 or homebrew digital camera trigger
35523554
// Data from: https://www.doc-diy.net/photo/rc-1_hacked/
3553-
//#define PHOTOGRAPH_PIN 23
3555+
//#define PHOTOGRAPH_PIN 12
35543556

35553557
// Canon Hack Development Kit
35563558
// https://web.archive.org/web/20200920094805/https://captain-slow.dk/2014/03/09/3d-printing-timelapses/
3557-
//#define CHDK_PIN 4
3559+
#define CHDK_PIN 12
35583560

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

35623564
// Duration to hold the switch or keep CHDK_PIN high
3563-
//#define PHOTO_SWITCH_MS 50 // (ms) (M240 D)
3565+
#define PHOTO_SWITCH_MS 50 // (ms) (M240 D)
35643566

35653567
/**
35663568
* PHOTO_PULSES_US may need adjustment depending on board and camera model.
@@ -4048,33 +4050,29 @@
40484050
// @section custom main menu
40494051

40504052
// Custom Menu: Main Menu
4051-
//#define CUSTOM_MENU_MAIN
4053+
#define CUSTOM_MENU_MAIN
40524054
#if ENABLED(CUSTOM_MENU_MAIN)
4053-
//#define CUSTOM_MENU_MAIN_TITLE "Custom Commands"
4054-
#define CUSTOM_MENU_MAIN_SCRIPT_DONE "M117 User Script Done"
4055+
#define CUSTOM_MENU_MAIN_TITLE "Tools"
4056+
#define CUSTOM_MENU_MAIN_SCRIPT_DONE "M117 Done"
40554057
#define CUSTOM_MENU_MAIN_SCRIPT_AUDIBLE_FEEDBACK
40564058
//#define CUSTOM_MENU_MAIN_SCRIPT_RETURN // Return to status screen after a script
40574059
#define CUSTOM_MENU_MAIN_ONLY_IDLE // Only show custom menu when the machine is idle
40584060

4059-
#define MAIN_MENU_ITEM_1_DESC "Home & UBL Info"
4060-
#define MAIN_MENU_ITEM_1_GCODE "G28\nG29 W"
4061+
#define MAIN_MENU_ITEM_1_DESC "Probe Mesh&Save"
4062+
#define MAIN_MENU_ITEM_1_GCODE "G28\nG29 P1\nG29 P3 T0\nG29 S0 A F10\nG29 J2\nM500"
40614063
//#define MAIN_MENU_ITEM_1_CONFIRM // Show a confirmation dialog before this action
40624064

4063-
#define MAIN_MENU_ITEM_2_DESC "Preheat for " PREHEAT_1_LABEL
4064-
#define MAIN_MENU_ITEM_2_GCODE "M140 S" STRINGIFY(PREHEAT_1_TEMP_BED) "\nM104 S" STRINGIFY(PREHEAT_1_TEMP_HOTEND)
4065+
#define MAIN_MENU_ITEM_2_DESC "Manual Mesh&Save"
4066+
#define MAIN_MENU_ITEM_2_GCODE "G28\nG29 P4 R999 T\nG29 S0 A F10\nM500"
40654067
//#define MAIN_MENU_ITEM_2_CONFIRM
40664068

4067-
//#define MAIN_MENU_ITEM_3_DESC "Preheat for " PREHEAT_2_LABEL
4068-
//#define MAIN_MENU_ITEM_3_GCODE "M140 S" STRINGIFY(PREHEAT_2_TEMP_BED) "\nM104 S" STRINGIFY(PREHEAT_2_TEMP_HOTEND)
4069+
#define MAIN_MENU_ITEM_3_DESC "Print Test Pattern"
4070+
#define MAIN_MENU_ITEM_3_GCODE "G26 C P O2.25" // Do a typical test sequence
40694071
//#define MAIN_MENU_ITEM_3_CONFIRM
40704072

4071-
//#define MAIN_MENU_ITEM_4_DESC "Heat Bed/Home/Level"
4072-
//#define MAIN_MENU_ITEM_4_GCODE "M140 S" STRINGIFY(PREHEAT_2_TEMP_BED) "\nG28\nG29"
4073+
#define MAIN_MENU_ITEM_4_DESC "Move Bed Forward"
4074+
#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
40734075
//#define MAIN_MENU_ITEM_4_CONFIRM
4074-
4075-
//#define MAIN_MENU_ITEM_5_DESC "Home & Info"
4076-
//#define MAIN_MENU_ITEM_5_GCODE "G28\nM503"
4077-
//#define MAIN_MENU_ITEM_5_CONFIRM
40784076
#endif
40794077

40804078
// @section custom config menu

0 commit comments

Comments
 (0)