Skip to content

Commit 7cd4dcc

Browse files
committed
Examples Customizations
1 parent 2a80a03 commit 7cd4dcc

File tree

750 files changed

+36679
-31986
lines changed

Some content is hidden

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

750 files changed

+36679
-31986
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
*
@@ -574,14 +576,14 @@
574576
* The fan turns on automatically whenever any driver is enabled and turns
575577
* off (or reduces to idle speed) shortly after drivers are turned off.
576578
*/
577-
//#define USE_CONTROLLER_FAN
579+
#define USE_CONTROLLER_FAN
578580
#if ENABLED(USE_CONTROLLER_FAN)
579-
//#define CONTROLLER_FAN_PIN -1 // Set a custom pin for the controller fan
581+
#define CONTROLLER_FAN_PIN 7 // Set a custom pin for the controller fan
580582
//#define CONTROLLER_FAN2_PIN -1 // Set a custom pin for second controller fan
581583
//#define CONTROLLER_FAN_USE_Z_ONLY // With this option only the Z axis is considered
582584
//#define CONTROLLER_FAN_IGNORE_Z // Ignore Z stepper. Useful when stepper timeout is disabled.
583585
#define CONTROLLERFAN_SPEED_MIN 0 // (0-255) Minimum speed. (If set below this value the fan is turned off.)
584-
#define CONTROLLERFAN_SPEED_ACTIVE 255 // (0-255) Active speed, used when any motor is enabled
586+
#define CONTROLLERFAN_SPEED_ACTIVE 127 // (0-255) Active speed, used when any motor is enabled
585587
#define CONTROLLERFAN_SPEED_IDLE 0 // (0-255) Idle speed, used when motors are disabled
586588
#define CONTROLLERFAN_IDLE_TIME 60 // (seconds) Extra time to keep the fan running after disabling motors
587589

@@ -753,15 +755,15 @@
753755
* @section caselight
754756
* M355 Case Light on-off / brightness
755757
*/
756-
//#define CASE_LIGHT_ENABLE
758+
#define CASE_LIGHT_ENABLE
757759
#if ENABLED(CASE_LIGHT_ENABLE)
758-
//#define CASE_LIGHT_PIN 4 // Override the default pin if needed
760+
#define CASE_LIGHT_PIN 11 // Override the default pin if needed
759761
#define INVERT_CASE_LIGHT false // Set true if Case Light is ON when pin is LOW
760-
#define CASE_LIGHT_DEFAULT_ON true // Set default power-up state on
762+
#define CASE_LIGHT_DEFAULT_ON false // Set default power-up state on
761763
#define CASE_LIGHT_DEFAULT_BRIGHTNESS 105 // Set default power-up brightness (0-255, requires PWM pin)
762764
//#define CASE_LIGHT_NO_BRIGHTNESS // Disable brightness control. Enable for non-PWM lighting.
763765
//#define CASE_LIGHT_MAX_PWM 128 // Limit PWM duty cycle (0-255)
764-
//#define CASE_LIGHT_MENU // Add Case Light options to the LCD menu
766+
#define CASE_LIGHT_MENU // Add Case Light options to the LCD menu
765767
#if ENABLED(NEOPIXEL_LED)
766768
//#define CASE_LIGHT_USE_NEOPIXEL // Use NeoPixel LED as case light
767769
#endif
@@ -1076,7 +1078,7 @@
10761078

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

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

14931495
// Play a beep when the feedrate is changed from the Status Screen
@@ -1545,7 +1547,7 @@
15451547
#endif
15461548

15471549
// Include a page of printer information in the LCD Main Menu
1548-
//#define LCD_INFO_MENU
1550+
#define LCD_INFO_MENU
15491551
#if ENABLED(LCD_INFO_MENU)
15501552
//#define LCD_PRINTER_INFO_IS_BOOTSCREEN // Show bootscreen(s) instead of Printer Info pages
15511553
#endif
@@ -1623,7 +1625,7 @@
16231625
//#define LCD_TIMEOUT_TO_STATUS 15000 // (ms)
16241626

16251627
// Scroll a longer status message into view
1626-
//#define STATUS_MESSAGE_SCROLLING
1628+
#define STATUS_MESSAGE_SCROLLING
16271629

16281630
// Apply a timeout to low-priority status messages
16291631
//#define STATUS_MESSAGE_TIMEOUT_SEC 30 // (seconds)
@@ -1748,7 +1750,7 @@
17481750

17491751
//#define MEDIA_MENU_AT_TOP // Force the media menu to be listed on the top of the main menu
17501752

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

17531755
#if ENABLED(PRINTER_EVENT_LEDS)
17541756
#define PE_LEDS_COMPLETED_TIME (30*60) // (seconds) Time to keep the LED "done" color before restoring normal illumination
@@ -1838,7 +1840,7 @@
18381840
//#define LONG_FILENAME_WRITE_SUPPORT // Create / delete files with long filenames via M28, M30, and Binary Transfer Protocol
18391841
//#define M20_TIMESTAMP_SUPPORT // Include timestamps by adding the 'T' flag to M20 commands
18401842

1841-
//#define SCROLL_LONG_FILENAMES // Scroll long filenames in the SD card menu
1843+
#define SCROLL_LONG_FILENAMES // Scroll long filenames in the SD card menu
18421844

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

@@ -2908,7 +2910,7 @@
29082910
*
29092911
* Enable PARK_HEAD_ON_PAUSE to add the G-code M125 Pause and Park.
29102912
*/
2911-
//#define ADVANCED_PAUSE_FEATURE
2913+
#define ADVANCED_PAUSE_FEATURE
29122914
#if ENABLED(ADVANCED_PAUSE_FEATURE)
29132915
#define PAUSE_PARK_RETRACT_FEEDRATE 60 // (mm/s) Initial retract feedrate.
29142916
#define PAUSE_PARK_RETRACT_LENGTH 2 // (mm) Initial retract.
@@ -2951,7 +2953,7 @@
29512953
//#define PARK_HEAD_ON_PAUSE // Park the nozzle during pause and filament change.
29522954
//#define HOME_BEFORE_FILAMENT_CHANGE // If needed, home before parking for filament change
29532955

2954-
//#define FILAMENT_LOAD_UNLOAD_GCODES // Add M701/M702 Load/Unload G-codes, plus Load/Unload in the LCD Prepare menu.
2956+
#define FILAMENT_LOAD_UNLOAD_GCODES // Add M701/M702 Load/Unload G-codes, plus Load/Unload in the LCD Prepare menu.
29552957
//#define FILAMENT_UNLOAD_ALL_EXTRUDERS // Allow M702 to unload all extruders above a minimum target temp (as set by M302)
29562958
#define CONFIGURE_FILAMENT_CHANGE // Add M603 G-code and menu items. Requires ~1.3K bytes of flash.
29572959
#endif
@@ -3542,7 +3544,7 @@
35423544
* Add the M240 G-code to take a photo.
35433545
* The photo can be triggered by a digital pin or a physical movement.
35443546
*/
3545-
//#define PHOTO_GCODE
3547+
#define PHOTO_GCODE
35463548
#if ENABLED(PHOTO_GCODE)
35473549
// A position to move to (and raise Z) before taking the photo
35483550
//#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 } // { xpos, ypos, zraise } (M240 X Y Z)
@@ -3551,17 +3553,17 @@
35513553

35523554
// Canon RC-1 or homebrew digital camera trigger
35533555
// Data from: https://www.doc-diy.net/photo/rc-1_hacked/
3554-
//#define PHOTOGRAPH_PIN 23
3556+
//#define PHOTOGRAPH_PIN 12
35553557

35563558
// Canon Hack Development Kit
35573559
// https://web.archive.org/web/20200920094805/captain-slow.dk/2014/03/09/3d-printing-timelapses/
3558-
//#define CHDK_PIN 4
3560+
#define CHDK_PIN 12
35593561

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

35633565
// Duration to hold the switch or keep CHDK_PIN high
3564-
//#define PHOTO_SWITCH_MS 50 // (ms) (M240 D)
3566+
#define PHOTO_SWITCH_MS 50 // (ms) (M240 D)
35653567

35663568
/**
35673569
* PHOTO_PULSES_US may need adjustment depending on board and camera model.
@@ -4031,33 +4033,29 @@
40314033
// @section custom main menu
40324034

40334035
// Custom Menu: Main Menu
4034-
//#define CUSTOM_MENU_MAIN
4036+
#define CUSTOM_MENU_MAIN
40354037
#if ENABLED(CUSTOM_MENU_MAIN)
4036-
//#define CUSTOM_MENU_MAIN_TITLE "Custom Commands"
4037-
#define CUSTOM_MENU_MAIN_SCRIPT_DONE "M117 User Script Done"
4038+
#define CUSTOM_MENU_MAIN_TITLE "Tools"
4039+
#define CUSTOM_MENU_MAIN_SCRIPT_DONE "M117 Done"
40384040
#define CUSTOM_MENU_MAIN_SCRIPT_AUDIBLE_FEEDBACK
40394041
//#define CUSTOM_MENU_MAIN_SCRIPT_RETURN // Return to status screen after a script
40404042
#define CUSTOM_MENU_MAIN_ONLY_IDLE // Only show custom menu when the machine is idle
40414043

4042-
#define MAIN_MENU_ITEM_1_DESC "Home & UBL Info"
4043-
#define MAIN_MENU_ITEM_1_GCODE "G28\nG29 W"
4044+
#define MAIN_MENU_ITEM_1_DESC "Probe Mesh&Save"
4045+
#define MAIN_MENU_ITEM_1_GCODE "G28\nG29 P1\nG29 P3 T0\nG29 S0 A F10\nG29 J2\nM500"
40444046
//#define MAIN_MENU_ITEM_1_CONFIRM // Show a confirmation dialog before this action
40454047

4046-
#define MAIN_MENU_ITEM_2_DESC "Preheat for " PREHEAT_1_LABEL
4047-
#define MAIN_MENU_ITEM_2_GCODE "M140 S" STRINGIFY(PREHEAT_1_TEMP_BED) "\nM104 S" STRINGIFY(PREHEAT_1_TEMP_HOTEND)
4048+
#define MAIN_MENU_ITEM_2_DESC "Manual Mesh&Save"
4049+
#define MAIN_MENU_ITEM_2_GCODE "G28\nG29 P4 R999 T\nG29 S0 A F10\nM500"
40484050
//#define MAIN_MENU_ITEM_2_CONFIRM
40494051

4050-
//#define MAIN_MENU_ITEM_3_DESC "Preheat for " PREHEAT_2_LABEL
4051-
//#define MAIN_MENU_ITEM_3_GCODE "M140 S" STRINGIFY(PREHEAT_2_TEMP_BED) "\nM104 S" STRINGIFY(PREHEAT_2_TEMP_HOTEND)
4052+
#define MAIN_MENU_ITEM_3_DESC "Print Test Pattern"
4053+
#define MAIN_MENU_ITEM_3_GCODE "G26 C P O2.25" // Do a typical test sequence
40524054
//#define MAIN_MENU_ITEM_3_CONFIRM
40534055

4054-
//#define MAIN_MENU_ITEM_4_DESC "Heat Bed/Home/Level"
4055-
//#define MAIN_MENU_ITEM_4_GCODE "M140 S" STRINGIFY(PREHEAT_2_TEMP_BED) "\nG28\nG29"
4056+
#define MAIN_MENU_ITEM_4_DESC "Move Bed Forward"
4057+
#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
40564058
//#define MAIN_MENU_ITEM_4_CONFIRM
4057-
4058-
//#define MAIN_MENU_ITEM_5_DESC "Home & Info"
4059-
//#define MAIN_MENU_ITEM_5_GCODE "G28\nM503"
4060-
//#define MAIN_MENU_ITEM_5_CONFIRM
40614059
#endif
40624060

40634061
// @section custom config menu

0 commit comments

Comments
 (0)