|
24 | 24 | /* you must be sure what you know what you do :) */ |
25 | 25 | #define FF_FLASHAIR_FIX |
26 | 26 | #define FF_RUSSIAN_FIX |
27 | | -#define FF_M907_PROTECTION |
| 27 | +#define M907_PROTECTION |
28 | 28 |
|
29 | 29 | /* Select one of the printers below */ |
30 | 30 | //#define FF_INVENTOR_MACHINE |
|
37 | 37 | //#define FF_SILVER_PULLEY |
38 | 38 |
|
39 | 39 | #if NONE(FF_BLACK_PULLEY, FF_SILVER_PULLEY) |
40 | | -#define FF_BLACK_PULLEY |
| 40 | + #define FF_BLACK_PULLEY |
41 | 41 | #endif |
42 | 42 |
|
43 | 43 | /* Switch left and right extruder */ |
44 | 44 | //#define FF_EXTRUDER_SWAP |
45 | | -#if NONE(FF_DREAMER_MACHINE, FF_INVENTOR_MACHINE) && ENABLED( FF_EXTRUDER_SWAP ) |
46 | | -#error FF_EXTRUDER_SWAP works only with dreamer and inventor |
| 45 | +#if NONE(FF_DREAMER_MACHINE, FF_INVENTOR_MACHINE) && ENABLED(FF_EXTRUDER_SWAP) |
| 46 | + #error FF_EXTRUDER_SWAP works only with Dreamer, Inventor |
47 | 47 | #endif |
48 | 48 |
|
49 | 49 | /* Select UI type */ |
50 | 50 | //#define USE_OLD_MARLIN_UI |
51 | 51 | //#define USE_MKS_UI |
52 | 52 |
|
53 | 53 | /* NX and 3D20 mostly same, but 3D20 does not have heated bed and chamber */ |
54 | | -#if ENABLED( FF_DREMEL_3D20_MACHINE ) |
55 | | -#define FF_DREAMER_NX_MACHINE |
| 54 | +#if ENABLED(FF_DREMEL_3D20_MACHINE) |
| 55 | + #define FF_DREAMER_NX_MACHINE |
56 | 56 | #endif |
57 | 57 |
|
58 | 58 |
|
|
178 | 178 | //#define BLUETOOTH |
179 | 179 |
|
180 | 180 | // Name displayed in the LCD "Ready" message and Info menu |
181 | | -#if ENABLED( FF_DREMEL_3D20_MACHINE ) |
| 181 | +#if ENABLED(FF_DREMEL_3D20_MACHINE) |
182 | 182 | #define CUSTOM_MACHINE_NAME "Dremel" |
183 | 183 | #else |
184 | 184 | #define CUSTOM_MACHINE_NAME "FlashForge" |
|
231 | 231 |
|
232 | 232 | // This defines the number of extruders |
233 | 233 | // :[0, 1, 2, 3, 4, 5, 6, 7, 8] |
234 | | -#if ANY(FF_INVENTOR_MACHINE,FF_DREAMER_MACHINE) |
| 234 | +#if ANY(FF_INVENTOR_MACHINE, FF_DREAMER_MACHINE) |
235 | 235 | #define EXTRUDERS 2 |
236 | 236 | #else |
237 | 237 | #define EXTRUDERS 1 |
|
393 | 393 | // Offset of the extruders (uncomment if using more than one and relying on firmware to position when changing). |
394 | 394 | // The offset has to be X=0, Y=0 for the extruder 0 hotend (default extruder). |
395 | 395 | // For the other hotends it is their distance from the extruder 0 hotend. |
396 | | -#if ANY(FF_INVENTOR_MACHINE,FF_DREAMER_MACHINE) |
397 | | -#if ENABLED(FF_EXTRUDER_SWAP) |
398 | | -#define HOTEND_OFFSET_X { 0.0, 34.0 } // (mm) relative X-offset for each nozzle |
399 | | -#else |
400 | | -#define HOTEND_OFFSET_X { 0.0, -34.0 } // (mm) relative X-offset for each nozzle |
401 | | -#endif |
| 396 | +#if ANY(FF_INVENTOR_MACHINE, FF_DREAMER_MACHINE) |
| 397 | + #if ENABLED(FF_EXTRUDER_SWAP) |
| 398 | + #define HOTEND_OFFSET_X { 0.0, 34.0 } // (mm) relative X-offset for each nozzle |
| 399 | + #else |
| 400 | + #define HOTEND_OFFSET_X { 0.0, -34.0 } // (mm) relative X-offset for each nozzle |
| 401 | + #endif |
402 | 402 | #endif |
403 | 403 |
|
404 | 404 | //#define HOTEND_OFFSET_Y { 0.0, 5.00 } // (mm) relative Y-offset for each nozzle |
|
546 | 546 | #define TEMP_SENSOR_5 0 |
547 | 547 | #define TEMP_SENSOR_6 0 |
548 | 548 | #define TEMP_SENSOR_7 0 |
549 | | -#if ENABLED( FF_DREMEL_3D20_MACHINE ) |
| 549 | +#if ENABLED(FF_DREMEL_3D20_MACHINE) |
550 | 550 | #define TEMP_SENSOR_BED 0 |
551 | 551 | #else |
552 | 552 | #define TEMP_SENSOR_BED 1 |
553 | 553 | #endif |
554 | 554 | #define TEMP_SENSOR_PROBE 0 |
555 | | -#if ENABLED( FF_DREMEL_3D20_MACHINE ) |
| 555 | +#if ENABLED(FF_DREMEL_3D20_MACHINE) |
556 | 556 | #define TEMP_SENSOR_CHAMBER 0 |
557 | 557 | #else |
558 | 558 | #define TEMP_SENSOR_CHAMBER 1 |
|
650 | 650 | #if ENABLED(PIDTEMP) |
651 | 651 | #define PID_EDIT_MENU // Add PID editing to the "Advanced Settings" menu. (~700 bytes of PROGMEM) |
652 | 652 | #define PID_AUTOTUNE_MENU // Add PID auto-tuning to the "Advanced Settings" menu. (~250 bytes of PROGMEM) |
653 | | - #if ( EXTRUDERS > 1 ) |
654 | | - #define PID_PARAMS_PER_HOTEND // Uses separate PID parameters for each extruder (useful for mismatched extruders) |
| 653 | + #if (EXTRUDERS > 1) |
| 654 | + #define PID_PARAMS_PER_HOTEND // Uses separate PID parameters for each extruder (useful for mismatched extruders) |
655 | 655 | // Set/get with gcode: M301 E[extruder number, 0-2] |
656 | 656 | #endif |
657 | 657 |
|
|
799 | 799 | */ |
800 | 800 |
|
801 | 801 | #define THERMAL_PROTECTION_HOTENDS // Enable thermal protection for all extruders |
802 | | -#if DISABLED( FF_DREMEL_3D20_MACHINE ) |
803 | | -#define THERMAL_PROTECTION_BED // Enable thermal protection for the heated bed |
| 802 | +#if DISABLED(FF_DREMEL_3D20_MACHINE) |
| 803 | + #define THERMAL_PROTECTION_BED // Enable thermal protection for the heated bed |
804 | 804 | #endif |
805 | 805 | //#define THERMAL_PROTECTION_CHAMBER // Enable thermal protection for the heated chamber |
806 | 806 | #define THERMAL_PROTECTION_COOLER // Enable thermal protection for the laser cooling |
|
843 | 843 | // extra connectors. Leave undefined any used for non-endstop and non-probe purposes. |
844 | 844 | //#define USE_XMIN_PLUG |
845 | 845 | //#define USE_YMIN_PLUG |
846 | | -#if ANY( FF_DREAMER_MACHINE, FF_DREAMER_NX_MACHINE ) |
847 | | -#define USE_ZMIN_PLUG |
| 846 | +#if ANY(FF_DREAMER_MACHINE, FF_DREAMER_NX_MACHINE) |
| 847 | + #define USE_ZMIN_PLUG |
848 | 848 | #endif |
849 | 849 | //#define USE_IMIN_PLUG |
850 | 850 | //#define USE_JMIN_PLUG |
851 | 851 | //#define USE_KMIN_PLUG |
852 | 852 | #define USE_XMAX_PLUG |
853 | 853 | #define USE_YMAX_PLUG |
854 | 854 | #if ENABLED(FF_INVENTOR_MACHINE) |
855 | | -#define USE_ZMAX_PLUG |
| 855 | + #define USE_ZMAX_PLUG |
856 | 856 | #endif |
857 | 857 | //#define USE_IMAX_PLUG |
858 | 858 | //#define USE_JMAX_PLUG |
|
1097 | 1097 | * See https://github.com/synthetos/TinyG/wiki/Jerk-Controlled-Motion-Explained |
1098 | 1098 | */ |
1099 | 1099 | #if DISABLED(LIN_ADVANCE) |
1100 | | -#define S_CURVE_ACCELERATION |
| 1100 | + #define S_CURVE_ACCELERATION |
1101 | 1101 | #endif |
1102 | 1102 |
|
1103 | 1103 | //=========================================================================== |
|
1135 | 1135 | * - normally-open switches to 5V and D32. |
1136 | 1136 | */ |
1137 | 1137 | #if ANY(FF_DREAMER_MACHINE, FF_DREAMER_NX_MACHINE) |
1138 | | -#define Z_MIN_PROBE_PIN Z_MAX_PIN |
| 1138 | + #define Z_MIN_PROBE_PIN Z_MAX_PIN |
1139 | 1139 | #else |
1140 | | -#define Z_MIN_PROBE_PIN Z_MIN_PIN /* Inventor */ |
| 1140 | + #define Z_MIN_PROBE_PIN Z_MIN_PIN /* Inventor */ |
1141 | 1141 | #endif |
1142 | 1142 |
|
1143 | 1143 | /** |
|
1476 | 1476 | #define X_HOME_DIR 1 |
1477 | 1477 | #define Y_HOME_DIR 1 |
1478 | 1478 | #if ENABLED(FF_INVENTOR_MACHINE) |
1479 | | -#define Z_HOME_DIR 1 |
| 1479 | + #define Z_HOME_DIR 1 |
1480 | 1480 | #else |
1481 | | -#define Z_HOME_DIR -1 |
| 1481 | + #define Z_HOME_DIR -1 |
1482 | 1482 | #endif |
1483 | 1483 | //#define I_HOME_DIR -1 |
1484 | 1484 | //#define J_HOME_DIR -1 |
|
1490 | 1490 | #define X_BED_SIZE 230 |
1491 | 1491 | #define Y_BED_SIZE 150 |
1492 | 1492 |
|
1493 | | -#if ENABLED( FF_EXTRUDER_SWAP ) |
1494 | | -#define FF_TOOL_OFFSET 34 |
| 1493 | +#if ENABLED(FF_EXTRUDER_SWAP) |
| 1494 | + #define FF_TOOL_OFFSET 34 |
1495 | 1495 | #else |
1496 | | -#define FF_TOOL_OFFSET 0 |
| 1496 | + #define FF_TOOL_OFFSET 0 |
1497 | 1497 | #endif |
1498 | 1498 |
|
1499 | 1499 | // Travel limits (mm) after homing, corresponding to endstop positions. |
1500 | 1500 | #if ENABLED(FF_INVENTOR_MACHINE) |
1501 | | -#define X_MAX_POS (159.99-FF_TOOL_OFFSET) |
1502 | | -#define Y_MAX_POS 75.00 |
1503 | | -#define X_MIN_POS (-110.00-FF_TOOL_OFFSET) |
1504 | | -#define Y_MIN_POS -75.00 |
| 1501 | + #define X_MAX_POS (159.99-FF_TOOL_OFFSET) |
| 1502 | + #define Y_MAX_POS 75.00 |
| 1503 | + #define X_MIN_POS (-110.00-FF_TOOL_OFFSET) |
| 1504 | + #define Y_MIN_POS -75.00 |
1505 | 1505 | #elif ENABLED(FF_DREAMER_MACHINE) |
1506 | | -#define X_MAX_POS (156.99-FF_TOOL_OFFSET) |
1507 | | -#define Y_MAX_POS 79.99 |
1508 | | -#define X_MIN_POS (-113.00-FF_TOOL_OFFSET) |
1509 | | -#define Y_MIN_POS -79.99 |
| 1506 | + #define X_MAX_POS (156.99-FF_TOOL_OFFSET) |
| 1507 | + #define Y_MAX_POS 79.99 |
| 1508 | + #define X_MIN_POS (-113.00-FF_TOOL_OFFSET) |
| 1509 | + #define Y_MIN_POS -79.99 |
1510 | 1510 | #elif ENABLED(FF_DREAMER_NX_MACHINE) |
1511 | | -#define X_MAX_POS 158.50 |
1512 | | -#define Y_MAX_POS 76.23 |
1513 | | -#define X_MIN_POS -111.00 |
1514 | | -#define Y_MIN_POS -76.23 |
| 1511 | + #define X_MAX_POS 158.50 |
| 1512 | + #define Y_MAX_POS 76.23 |
| 1513 | + #define X_MIN_POS -111.00 |
| 1514 | + #define Y_MIN_POS -76.23 |
1515 | 1515 | #else |
1516 | | -#error Invalid printer model selection |
| 1516 | + #error Invalid printer model selection |
1517 | 1517 | #endif |
1518 | 1518 |
|
1519 | 1519 | #define Z_MIN_POS 0 |
1520 | 1520 | #if ENABLED(FF_INVENTOR_MACHINE) |
1521 | | -#define Z_MAX_POS 160 |
| 1521 | + #define Z_MAX_POS 160 |
1522 | 1522 | #else |
1523 | | -#define Z_MAX_POS 140 |
| 1523 | + #define Z_MAX_POS 140 |
1524 | 1524 | #endif |
1525 | 1525 | //#define I_MIN_POS 0 |
1526 | 1526 | //#define I_MAX_POS 50 |
|
1577 | 1577 | * RAMPS-based boards use SERVO3_PIN for the first runout sensor. |
1578 | 1578 | * For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc. |
1579 | 1579 | */ |
1580 | | -#if DISABLED( USE_MKS_UI ) |
1581 | | -#define FILAMENT_RUNOUT_SENSOR |
| 1580 | +#if DISABLED(USE_MKS_UI) |
| 1581 | + #define FILAMENT_RUNOUT_SENSOR |
1582 | 1582 | #endif |
1583 | 1583 | #if ENABLED(FILAMENT_RUNOUT_SENSOR) |
1584 | 1584 | #define FIL_RUNOUT_ENABLED_DEFAULT false // Enable the sensor on startup. Override with M412 followed by M500. |
|
1824 | 1824 | #define LEVEL_BED_CORNERS |
1825 | 1825 |
|
1826 | 1826 | #if ENABLED(LEVEL_BED_CORNERS) |
1827 | | -#if ANY(FF_DREAMER_MACHINE, FF_INVENTOR_MACHINE) |
1828 | | - #define LEVEL_CORNERS_INSET_LFRB { 40, 30, 40, 30 } // (mm) Left, Front, Right, Back insets |
1829 | | -#else |
1830 | | - #define LEVEL_CORNERS_INSET_LFRB { 30, 30, 30, 30 } // (mm) Left, Front, Right, Back insets |
1831 | | -#endif |
| 1827 | + #if ANY(FF_DREAMER_MACHINE, FF_INVENTOR_MACHINE) |
| 1828 | + #define LEVEL_CORNERS_INSET_LFRB { 40, 30, 40, 30 } // (mm) Left, Front, Right, Back insets |
| 1829 | + #else |
| 1830 | + #define LEVEL_CORNERS_INSET_LFRB { 30, 30, 30, 30 } // (mm) Left, Front, Right, Back insets |
| 1831 | + #endif |
1832 | 1832 | #define LEVEL_CORNERS_HEIGHT 0.0 // (mm) Z height of nozzle at leveling points |
1833 | 1833 | #define LEVEL_CORNERS_Z_HOP 5.0 // (mm) Z height of nozzle between leveling points |
1834 | 1834 | #define LEVEL_CENTER_TOO // Move to the center after the last corner |
|
2785 | 2785 | // Usually paired with MKS Robin Nano V1.2 |
2786 | 2786 | // |
2787 | 2787 | //#define MKS_ROBIN_TFT24 |
2788 | | -#if ENABLED( USE_OLD_MARLIN_UI ) |
2789 | | -#define TFT_CLASSIC_UI |
2790 | | -#elif ENABLED( USE_MKS_UI ) |
2791 | | -#define TFT_LVGL_UI |
2792 | | -#undef LCD_BED_LEVELING |
| 2788 | +#if ENABLED(USE_OLD_MARLIN_UI) |
| 2789 | + #define TFT_CLASSIC_UI |
| 2790 | +#elif ENABLED(USE_MKS_UI) |
| 2791 | + #define TFT_LVGL_UI |
| 2792 | + #undef LCD_BED_LEVELING |
2793 | 2793 | #else |
2794 | | -#define TFT_COLOR_UI |
| 2794 | + #define TFT_COLOR_UI |
2795 | 2795 | #endif |
2796 | 2796 | #define TFT_GENERIC |
2797 | 2797 | #define TFT_INTERFACE_FSMC |
|
0 commit comments