Skip to content

Commit edcb9ba

Browse files
committed
Examples Customizations
1 parent c16b844 commit edcb9ba

File tree

633 files changed

+32667
-28211
lines changed

Some content is hidden

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

633 files changed

+32667
-28211
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
*
@@ -535,14 +537,14 @@
535537
* The fan turns on automatically whenever any driver is enabled and turns
536538
* off (or reduces to idle speed) shortly after drivers are turned off.
537539
*/
538-
//#define USE_CONTROLLER_FAN
540+
#define USE_CONTROLLER_FAN
539541
#if ENABLED(USE_CONTROLLER_FAN)
540-
//#define CONTROLLER_FAN_PIN -1 // Set a custom pin for the controller fan
542+
#define CONTROLLER_FAN_PIN 7 // Set a custom pin for the controller fan
541543
//#define CONTROLLER_FAN2_PIN -1 // Set a custom pin for second controller fan
542544
//#define CONTROLLER_FAN_USE_Z_ONLY // With this option only the Z axis is considered
543545
//#define CONTROLLER_FAN_IGNORE_Z // Ignore Z stepper. Useful when stepper timeout is disabled.
544546
#define CONTROLLERFAN_SPEED_MIN 0 // (0-255) Minimum speed. (If set below this value the fan is turned off.)
545-
#define CONTROLLERFAN_SPEED_ACTIVE 255 // (0-255) Active speed, used when any motor is enabled
547+
#define CONTROLLERFAN_SPEED_ACTIVE 127 // (0-255) Active speed, used when any motor is enabled
546548
#define CONTROLLERFAN_SPEED_IDLE 0 // (0-255) Idle speed, used when motors are disabled
547549
#define CONTROLLERFAN_IDLE_TIME 60 // (seconds) Extra time to keep the fan running after disabling motors
548550

@@ -705,15 +707,15 @@
705707
/**
706708
* M355 Case Light on-off / brightness
707709
*/
708-
//#define CASE_LIGHT_ENABLE
710+
#define CASE_LIGHT_ENABLE
709711
#if ENABLED(CASE_LIGHT_ENABLE)
710-
//#define CASE_LIGHT_PIN 4 // Override the default pin if needed
712+
#define CASE_LIGHT_PIN 11 // Override the default pin if needed
711713
#define INVERT_CASE_LIGHT false // Set true if Case Light is ON when pin is LOW
712-
#define CASE_LIGHT_DEFAULT_ON true // Set default power-up state on
714+
#define CASE_LIGHT_DEFAULT_ON false // Set default power-up state on
713715
#define CASE_LIGHT_DEFAULT_BRIGHTNESS 105 // Set default power-up brightness (0-255, requires PWM pin)
714716
//#define CASE_LIGHT_NO_BRIGHTNESS // Disable brightness control. Enable for non-PWM lighting.
715717
//#define CASE_LIGHT_MAX_PWM 128 // Limit PWM duty cycle (0-255)
716-
//#define CASE_LIGHT_MENU // Add Case Light options to the LCD menu
718+
#define CASE_LIGHT_MENU // Add Case Light options to the LCD menu
717719
#if ENABLED(NEOPIXEL_LED)
718720
//#define CASE_LIGHT_USE_NEOPIXEL // Use NeoPixel LED as case light
719721
#endif
@@ -1016,7 +1018,7 @@
10161018

10171019
// On a 300mm bed a 5% grade would give a misalignment of ~1.5cm
10181020
#define G34_MAX_GRADE 5 // (%) Maximum incline that G34 will handle
1019-
#define Z_STEPPER_ALIGN_ITERATIONS 5 // Number of iterations to apply during alignment
1021+
#define Z_STEPPER_ALIGN_ITERATIONS 3 // Number of iterations to apply during alignment
10201022
#define Z_STEPPER_ALIGN_ACC 0.02 // Stop iterating early if the accuracy is better than this
10211023
#define RESTORE_LEVELING_AFTER_G34 // Restore leveling after G34 is done?
10221024
// After G34, re-home Z (G28 Z) or just calculate it from the last probe heights?
@@ -1270,7 +1272,7 @@
12701272
* vibration and surface artifacts. The algorithm adapts to provide the best possible step smoothing at the
12711273
* lowest stepping frequencies.
12721274
*/
1273-
//#define ADAPTIVE_STEP_SMOOTHING
1275+
#define ADAPTIVE_STEP_SMOOTHING
12741276

12751277
/**
12761278
* Custom Microstepping
@@ -1356,8 +1358,8 @@
13561358
// Change values more rapidly when the encoder is rotated faster
13571359
#define ENCODER_RATE_MULTIPLIER
13581360
#if ENABLED(ENCODER_RATE_MULTIPLIER)
1359-
#define ENCODER_10X_STEPS_PER_SEC 30 // (steps/s) Encoder rate for 10x speed
1360-
#define ENCODER_100X_STEPS_PER_SEC 80 // (steps/s) Encoder rate for 100x speed
1361+
#define ENCODER_10X_STEPS_PER_SEC 75 // (steps/s) Encoder rate for 10x speed
1362+
#define ENCODER_100X_STEPS_PER_SEC 160 // (steps/s) Encoder rate for 100x speed
13611363
#endif
13621364

13631365
// Play a beep when the feedrate is changed from the Status Screen
@@ -1409,7 +1411,7 @@
14091411
#endif
14101412

14111413
// Include a page of printer information in the LCD Main Menu
1412-
//#define LCD_INFO_MENU
1414+
#define LCD_INFO_MENU
14131415
#if ENABLED(LCD_INFO_MENU)
14141416
//#define LCD_PRINTER_INFO_IS_BOOTSCREEN // Show bootscreen(s) instead of Printer Info pages
14151417
#endif
@@ -1439,7 +1441,7 @@
14391441
#endif
14401442

14411443
// Scroll a longer status message into view
1442-
//#define STATUS_MESSAGE_SCROLLING
1444+
#define STATUS_MESSAGE_SCROLLING
14431445

14441446
// Apply a timeout to low-priority status messages
14451447
//#define STATUS_MESSAGE_TIMEOUT_SEC 30 // (seconds)
@@ -1551,7 +1553,7 @@
15511553

15521554
//#define MEDIA_MENU_AT_TOP // Force the media menu to be listed on the top of the main menu
15531555

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

15561558
#if ENABLED(PRINTER_EVENT_LEDS)
15571559
#define PE_LEDS_COMPLETED_TIME (30*60) // (seconds) Time to keep the LED "done" color before restoring normal illumination
@@ -1634,7 +1636,7 @@
16341636
//#define LONG_FILENAME_WRITE_SUPPORT // Create / delete files with long filenames via M28, M30, and Binary Transfer Protocol
16351637
//#define M20_TIMESTAMP_SUPPORT // Include timestamps by adding the 'T' flag to M20 commands
16361638

1637-
//#define SCROLL_LONG_FILENAMES // Scroll long filenames in the SD card menu
1639+
#define SCROLL_LONG_FILENAMES // Scroll long filenames in the SD card menu
16381640

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

@@ -2633,7 +2635,7 @@
26332635
*
26342636
* Enable PARK_HEAD_ON_PAUSE to add the G-code M125 Pause and Park.
26352637
*/
2636-
//#define ADVANCED_PAUSE_FEATURE
2638+
#define ADVANCED_PAUSE_FEATURE
26372639
#if ENABLED(ADVANCED_PAUSE_FEATURE)
26382640
#define PAUSE_PARK_RETRACT_FEEDRATE 60 // (mm/s) Initial retract feedrate.
26392641
#define PAUSE_PARK_RETRACT_LENGTH 2 // (mm) Initial retract.
@@ -2676,7 +2678,7 @@
26762678
//#define PARK_HEAD_ON_PAUSE // Park the nozzle during pause and filament change.
26772679
//#define HOME_BEFORE_FILAMENT_CHANGE // If needed, home before parking for filament change
26782680

2679-
//#define FILAMENT_LOAD_UNLOAD_GCODES // Add M701/M702 Load/Unload G-codes, plus Load/Unload in the LCD Prepare menu.
2681+
#define FILAMENT_LOAD_UNLOAD_GCODES // Add M701/M702 Load/Unload G-codes, plus Load/Unload in the LCD Prepare menu.
26802682
//#define FILAMENT_UNLOAD_ALL_EXTRUDERS // Allow M702 to unload all extruders above a minimum target temp (as set by M302)
26812683
#endif
26822684

@@ -3264,7 +3266,7 @@
32643266
* Add the M240 G-code to take a photo.
32653267
* The photo can be triggered by a digital pin or a physical movement.
32663268
*/
3267-
//#define PHOTO_GCODE
3269+
#define PHOTO_GCODE
32683270
#if ENABLED(PHOTO_GCODE)
32693271
// A position to move to (and raise Z) before taking the photo
32703272
//#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 } // { xpos, ypos, zraise } (M240 X Y Z)
@@ -3273,17 +3275,17 @@
32733275

32743276
// Canon RC-1 or homebrew digital camera trigger
32753277
// Data from: https://www.doc-diy.net/photo/rc-1_hacked/
3276-
//#define PHOTOGRAPH_PIN 23
3278+
//#define PHOTOGRAPH_PIN 12
32773279

32783280
// Canon Hack Development Kit
32793281
// https://captain-slow.dk/2014/03/09/3d-printing-timelapses/
3280-
//#define CHDK_PIN 4
3282+
#define CHDK_PIN 12
32813283

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

32853287
// Duration to hold the switch or keep CHDK_PIN high
3286-
//#define PHOTO_SWITCH_MS 50 // (ms) (M240 D)
3288+
#define PHOTO_SWITCH_MS 50 // (ms) (M240 D)
32873289

32883290
/**
32893291
* PHOTO_PULSES_US may need adjustment depending on board and camera model.
@@ -3735,33 +3737,29 @@
37353737
// @section custom main menu
37363738

37373739
// Custom Menu: Main Menu
3738-
//#define CUSTOM_MENU_MAIN
3740+
#define CUSTOM_MENU_MAIN
37393741
#if ENABLED(CUSTOM_MENU_MAIN)
3740-
//#define CUSTOM_MENU_MAIN_TITLE "Custom Commands"
3741-
#define CUSTOM_MENU_MAIN_SCRIPT_DONE "M117 User Script Done"
3742+
#define CUSTOM_MENU_MAIN_TITLE "Tools"
3743+
#define CUSTOM_MENU_MAIN_SCRIPT_DONE "M117 Done"
37423744
#define CUSTOM_MENU_MAIN_SCRIPT_AUDIBLE_FEEDBACK
37433745
//#define CUSTOM_MENU_MAIN_SCRIPT_RETURN // Return to status screen after a script
37443746
#define CUSTOM_MENU_MAIN_ONLY_IDLE // Only show custom menu when the machine is idle
37453747

3746-
#define MAIN_MENU_ITEM_1_DESC "Home & UBL Info"
3747-
#define MAIN_MENU_ITEM_1_GCODE "G28\nG29 W"
3748+
#define MAIN_MENU_ITEM_1_DESC "Probe Mesh&Save"
3749+
#define MAIN_MENU_ITEM_1_GCODE "G28\nG29 P1\nG29 P3 T0\nG29 S0 A F10\nG29 J2\nM500"
37483750
//#define MAIN_MENU_ITEM_1_CONFIRM // Show a confirmation dialog before this action
37493751

3750-
#define MAIN_MENU_ITEM_2_DESC "Preheat for " PREHEAT_1_LABEL
3751-
#define MAIN_MENU_ITEM_2_GCODE "M140 S" STRINGIFY(PREHEAT_1_TEMP_BED) "\nM104 S" STRINGIFY(PREHEAT_1_TEMP_HOTEND)
3752+
#define MAIN_MENU_ITEM_2_DESC "Manual Mesh&Save"
3753+
#define MAIN_MENU_ITEM_2_GCODE "G28\nG29 P4 R999 T\nG29 S0 A F10\nM500"
37523754
//#define MAIN_MENU_ITEM_2_CONFIRM
37533755

3754-
//#define MAIN_MENU_ITEM_3_DESC "Preheat for " PREHEAT_2_LABEL
3755-
//#define MAIN_MENU_ITEM_3_GCODE "M140 S" STRINGIFY(PREHEAT_2_TEMP_BED) "\nM104 S" STRINGIFY(PREHEAT_2_TEMP_HOTEND)
3756+
#define MAIN_MENU_ITEM_3_DESC "Print Test Pattern"
3757+
#define MAIN_MENU_ITEM_3_GCODE "G26 C P O2.25" // Do a typical test sequence
37563758
//#define MAIN_MENU_ITEM_3_CONFIRM
37573759

3758-
//#define MAIN_MENU_ITEM_4_DESC "Heat Bed/Home/Level"
3759-
//#define MAIN_MENU_ITEM_4_GCODE "M140 S" STRINGIFY(PREHEAT_2_TEMP_BED) "\nG28\nG29"
3760+
#define MAIN_MENU_ITEM_4_DESC "Move Bed Forward"
3761+
#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
37603762
//#define MAIN_MENU_ITEM_4_CONFIRM
3761-
3762-
//#define MAIN_MENU_ITEM_5_DESC "Home & Info"
3763-
//#define MAIN_MENU_ITEM_5_GCODE "G28\nM503"
3764-
//#define MAIN_MENU_ITEM_5_CONFIRM
37653763
#endif
37663764

37673765
// @section custom config menu

0 commit comments

Comments
 (0)