@@ -70,7 +70,7 @@
|
|
70
70
|
// @section info
|
71
71
|
|
72
72
|
// Author info of this build printed to the host during boot and M115
|
73
|
-
#define STRING_CONFIG_H_AUTHOR "(
|
73
|
+
#define STRING_CONFIG_H_AUTHOR "(ULFE / FXD)" // Who made the changes.
|
74
74
|
//#define CUSTOM_VERSION_FILE Version.h // Path from the root directory (no quotes)
|
75
75
|
|
76
76
|
/**
|
@@ -103,13 +103,13 @@
|
|
103
103
|
*
|
104
104
|
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
|
105
105
|
*/
|
106
|
-
#define SERIAL_PORT
|
106
|
+
#define SERIAL_PORT 3
|
107
107
|
|
108
108
|
/**
|
109
109
|
* Select a secondary serial port on the board to use for communication with the host.
|
110
110
|
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
|
111
111
|
*/
|
112
|
-
|
112
|
+
#define SERIAL_PORT_2 1
|
113
113
|
|
114
114
|
/**
|
115
115
|
* This setting determines the communication speed of the printer.
|
@@ -127,11 +127,11 @@
|
|
127
127
|
|
128
128
|
// Choose the name from boards.h that matches your setup
|
129
129
|
#ifndef MOTHERBOARD
|
130
|
-
#define MOTHERBOARD
|
130
|
+
#define MOTHERBOARD BOARD_MKS_ROBIN_NANO
|
131
131
|
#endif
|
132
132
|
|
133
133
|
// Name displayed in the LCD "Ready" message and Info menu
|
134
|
-
|
134
|
+
#define CUSTOM_MACHINE_NAME "KP3S"
|
135
135
|
|
136
136
|
// Printer's unique ID, used by some programs to differentiate between machines.
|
137
137
|
// Choose your own or use a service like https://www.uuidgenerator.net/version4
|
@@ -423,7 +423,7 @@
|
|
423
423
|
#define TEMP_SENSOR_5 0
|
424
424
|
#define TEMP_SENSOR_6 0
|
425
425
|
#define TEMP_SENSOR_7 0
|
426
|
-
#define TEMP_SENSOR_BED
|
426
|
+
#define TEMP_SENSOR_BED 1
|
427
427
|
#define TEMP_SENSOR_PROBE 0
|
428
428
|
#define TEMP_SENSOR_CHAMBER 0
|
429
429
|
|
@@ -499,9 +499,9 @@
|
|
499
499
|
#define DEFAULT_Ki_LIST { 1.08, 1.08 }
|
500
500
|
#define DEFAULT_Kd_LIST { 114.00, 114.00 }
|
501
501
|
#else
|
502
|
-
#define DEFAULT_Kp
|
503
|
-
#define DEFAULT_Ki 1.
|
504
|
-
#define DEFAULT_Kd
|
502
|
+
#define DEFAULT_Kp 15.04
|
503
|
+
#define DEFAULT_Ki 1.30
|
504
|
+
#define DEFAULT_Kd 43.30
|
505
505
|
#endif
|
506
506
|
#endif // PIDTEMP
|
507
507
|
|
@@ -522,7 +522,7 @@
|
|
522
522
|
* heater. If your configuration is significantly different than this and you don't understand
|
523
523
|
* the issues involved, don't use bed PID until someone else verifies that your hardware works.
|
524
524
|
*/
|
525
|
-
|
525
|
+
#define PIDTEMPBED
|
526
526
|
|
527
527
|
//#define BED_LIMIT_SWITCHING
|
528
528
|
|
@@ -538,11 +538,10 @@
|
|
538
538
|
//#define MIN_BED_POWER 0
|
539
539
|
//#define PID_BED_DEBUG // Sends debug data to the serial port.
|
540
540
|
|
541
|
-
//
|
542
|
-
|
543
|
-
#define
|
544
|
-
#define
|
545
|
-
#define DEFAULT_bedKd 305.4
|
541
|
+
// KINGROON KP3S
|
542
|
+
#define DEFAULT_bedKp 100.43
|
543
|
+
#define DEFAULT_bedKi 15.47
|
544
|
+
#define DEFAULT_bedKd 434.75
|
546
545
|
|
547
546
|
// FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.
|
548
547
|
#endif // PIDTEMPBED
|
@@ -572,7 +571,7 @@
|
|
572
571
|
* Note: For Bowden Extruders make this large enough to allow load/unload.
|
573
572
|
*/
|
574
573
|
#define PREVENT_LENGTHY_EXTRUDE
|
575
|
-
#define EXTRUDE_MAXLENGTH
|
574
|
+
#define EXTRUDE_MAXLENGTH 1000
|
576
575
|
|
577
576
|
//===========================================================================
|
578
577
|
//======================== Thermal Runaway Protection =======================
|
@@ -654,13 +653,13 @@
|
|
654
653
|
#endif
|
655
654
|
|
656
655
|
// Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
|
657
|
-
#define X_MIN_ENDSTOP_INVERTING
|
658
|
-
#define Y_MIN_ENDSTOP_INVERTING
|
659
|
-
#define Z_MIN_ENDSTOP_INVERTING
|
656
|
+
#define X_MIN_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.
|
657
|
+
#define Y_MIN_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.
|
658
|
+
#define Z_MIN_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.
|
660
659
|
#define X_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
|
661
660
|
#define Y_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
|
662
661
|
#define Z_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
|
663
|
-
#define Z_MIN_PROBE_ENDSTOP_INVERTING
|
662
|
+
#define Z_MIN_PROBE_ENDSTOP_INVERTING true // Set to true to invert the logic of the probe.
|
664
663
|
|
665
664
|
/**
|
666
665
|
* Stepper Drivers
|
@@ -678,15 +677,15 @@
|
|
678
677
|
* TMC5130, TMC5130_STANDALONE, TMC5160, TMC5160_STANDALONE
|
679
678
|
* :['A4988', 'A5984', 'DRV8825', 'LV8729', 'L6470', 'L6474', 'POWERSTEP01', 'TB6560', 'TB6600', 'TMC2100', 'TMC2130', 'TMC2130_STANDALONE', 'TMC2160', 'TMC2160_STANDALONE', 'TMC2208', 'TMC2208_STANDALONE', 'TMC2209', 'TMC2209_STANDALONE', 'TMC26X', 'TMC26X_STANDALONE', 'TMC2660', 'TMC2660_STANDALONE', 'TMC5130', 'TMC5130_STANDALONE', 'TMC5160', 'TMC5160_STANDALONE']
|
680
679
|
*/
|
681
|
-
|
682
|
-
|
683
|
-
|
680
|
+
#define X_DRIVER_TYPE A4988
|
681
|
+
#define Y_DRIVER_TYPE A4988
|
682
|
+
#define Z_DRIVER_TYPE A4988
|
684
683
|
//#define X2_DRIVER_TYPE A4988
|
685
684
|
//#define Y2_DRIVER_TYPE A4988
|
686
685
|
//#define Z2_DRIVER_TYPE A4988
|
687
686
|
//#define Z3_DRIVER_TYPE A4988
|
688
687
|
//#define Z4_DRIVER_TYPE A4988
|
689
|
-
|
688
|
+
#define E0_DRIVER_TYPE A4988
|
690
689
|
//#define E1_DRIVER_TYPE A4988
|
691
690
|
//#define E2_DRIVER_TYPE A4988
|
692
691
|
//#define E3_DRIVER_TYPE A4988
|
@@ -697,7 +696,7 @@
|
|
697
696
|
|
698
697
|
// Enable this feature if all enabled endstop pins are interrupt-capable.
|
699
698
|
// This will remove the need to poll the interrupt pins, saving many CPU cycles.
|
700
|
-
|
699
|
+
#define ENDSTOP_INTERRUPTS_FEATURE
|
701
700
|
|
702
701
|
/**
|
703
702
|
* Endstop Noise Threshold
|
@@ -741,14 +740,14 @@
|
|
741
740
|
* Override with M92
|
742
741
|
* X, Y, Z, E0 [, E1[, E2...]]
|
743
742
|
*/
|
744
|
-
#define DEFAULT_AXIS_STEPS_PER_UNIT {
|
743
|
+
#define DEFAULT_AXIS_STEPS_PER_UNIT { 160, 160, 800, 185 }
|
745
744
|
|
746
745
|
/**
|
747
746
|
* Default Max Feed Rate (mm/s)
|
748
747
|
* Override with M203
|
749
748
|
* X, Y, Z, E0 [, E1[, E2...]]
|
750
749
|
*/
|
751
|
-
#define DEFAULT_MAX_FEEDRATE {
|
750
|
+
#define DEFAULT_MAX_FEEDRATE { 200, 200, 4, 100 }
|
752
751
|
|
753
752
|
//#define LIMITED_MAX_FR_EDITING // Limit edit via M203 or LCD to DEFAULT_MAX_FEEDRATE * 2
|
754
753
|
#if ENABLED(LIMITED_MAX_FR_EDITING)
|
@@ -761,7 +760,7 @@
|
|
761
760
|
* Override with M201
|
762
761
|
* X, Y, Z, E0 [, E1[, E2...]]
|
763
762
|
*/
|
764
|
-
#define DEFAULT_MAX_ACCELERATION {
|
763
|
+
#define DEFAULT_MAX_ACCELERATION { 1000, 1000, 100, 1000 }
|
765
764
|
|
766
765
|
//#define LIMITED_MAX_ACCEL_EDITING // Limit edit via M201 or LCD to DEFAULT_MAX_ACCELERATION * 2
|
767
766
|
#if ENABLED(LIMITED_MAX_ACCEL_EDITING)
|
@@ -776,9 +775,9 @@
|
|
776
775
|
* M204 R Retract Acceleration
|
777
776
|
* M204 T Travel Acceleration
|
778
777
|
*/
|
779
|
-
#define DEFAULT_ACCELERATION
|
780
|
-
#define DEFAULT_RETRACT_ACCELERATION
|
781
|
-
#define DEFAULT_TRAVEL_ACCELERATION
|
778
|
+
#define DEFAULT_ACCELERATION 1000 // X, Y, Z and E acceleration for printing moves
|
779
|
+
#define DEFAULT_RETRACT_ACCELERATION 1000 // E acceleration for retracts
|
780
|
+
#define DEFAULT_TRAVEL_ACCELERATION 1000 // X, Y, Z acceleration for travel (non printing) moves
|
782
781
|
|
783
782
|
/**
|
784
783
|
* Default Jerk limits (mm/s)
|
@@ -788,11 +787,11 @@
|
|
788
787
|
* When changing speed and direction, if the difference is less than the
|
789
788
|
* value set here, it may happen instantaneously.
|
790
789
|
*/
|
791
|
-
|
790
|
+
#define CLASSIC_JERK
|
792
791
|
#if ENABLED(CLASSIC_JERK)
|
793
|
-
#define DEFAULT_XJERK
|
794
|
-
#define DEFAULT_YJERK
|
795
|
-
#define DEFAULT_ZJERK 0.
|
792
|
+
#define DEFAULT_XJERK 15.0
|
793
|
+
#define DEFAULT_YJERK 15.0
|
794
|
+
#define DEFAULT_ZJERK 0.4
|
796
795
|
|
797
796
|
//#define TRAVEL_EXTRA_XYJERK 0.0 // Additional jerk allowance for all travel moves
|
798
797
|
|
@@ -825,7 +824,7 @@
|
|
825
824
|
*
|
826
825
|
* See https://github.com/synthetos/TinyG/wiki/Jerk-Controlled-Motion-Explained
|
827
826
|
*/
|
828
|
-
|
827
|
+
#define S_CURVE_ACCELERATION
|
829
828
|
|
830
829
|
//===========================================================================
|
831
830
|
//============================= Z Probe Options =============================
|
@@ -875,7 +874,7 @@
|
|
875
874
|
* Use G29 repeatedly, adjusting the Z height at each point with movement commands
|
876
875
|
* or (with LCD_BED_LEVELING) the LCD controller.
|
877
876
|
*/
|
878
|
-
|
877
|
+
#define PROBE_MANUALLY
|
879
878
|
//#define MANUAL_PROBE_START_Z 0.2
|
880
879
|
|
881
880
|
/**
|
@@ -990,7 +989,7 @@
|
|
990
989
|
|
991
990
|
// Most probes should stay away from the edges of the bed, but
|
992
991
|
// with NOZZLE_AS_PROBE this can be negative for a wider probing area.
|
993
|
-
#define PROBING_MARGIN
|
992
|
+
#define PROBING_MARGIN 5
|
994
993
|
|
995
994
|
// X and Y axis travel speed (mm/min) between probes
|
996
995
|
#define XY_PROBE_SPEED (133*60)
|
@@ -1030,9 +1029,9 @@
|
|
1030
1029
|
#define Z_CLEARANCE_DEPLOY_PROBE 10 // Z Clearance for Deploy/Stow
|
1031
1030
|
#define Z_CLEARANCE_BETWEEN_PROBES 5 // Z Clearance between probe points
|
1032
1031
|
#define Z_CLEARANCE_MULTI_PROBE 5 // Z Clearance between multiple probes
|
1033
|
-
|
1032
|
+
#define Z_AFTER_PROBING 5 // Z position after probing is done
|
1034
1033
|
|
1035
|
-
#define Z_PROBE_LOW_POINT -
|
1034
|
+
#define Z_PROBE_LOW_POINT -3 // Farthest distance below the trigger-point to go before stopping
|
1036
1035
|
|
1037
1036
|
// For M851 give a range for adjusting the Z probe offset
|
1038
1037
|
#define Z_PROBE_OFFSET_RANGE_MIN -20
|
@@ -1087,13 +1086,13 @@
|
|
1087
1086
|
|
1088
1087
|
// Invert the stepper direction. Change (or reverse the motor connector) if an axis goes the wrong way.
|
1089
1088
|
#define INVERT_X_DIR false
|
1090
|
-
#define INVERT_Y_DIR
|
1091
|
-
#define INVERT_Z_DIR
|
1089
|
+
#define INVERT_Y_DIR false
|
1090
|
+
#define INVERT_Z_DIR true
|
1092
1091
|
|
1093
1092
|
// @section extruder
|
1094
1093
|
|
1095
1094
|
// For direct drive extruder v9 set to true, for geared extruder set to false.
|
1096
|
-
#define INVERT_E0_DIR
|
1095
|
+
#define INVERT_E0_DIR true
|
1097
1096
|
#define INVERT_E1_DIR false
|
1098
1097
|
#define INVERT_E2_DIR false
|
1099
1098
|
#define INVERT_E3_DIR false
|
@@ -1106,12 +1105,12 @@
|
|
1106
1105
|
|
1107
1106
|
//#define NO_MOTION_BEFORE_HOMING // Inhibit movement until all axes have been homed
|
1108
1107
|
|
1109
|
-
|
1108
|
+
#define UNKNOWN_Z_NO_RAISE // Don't raise Z (lower the bed) if Z is "unknown." For beds that fall when Z is powered off.
|
1110
1109
|
|
1111
|
-
|
1110
|
+
#define Z_HOMING_HEIGHT 4 // (mm) Minimal Z height before homing (G28) for Z clearance above the bed, clamps, ...
|
1112
1111
|
// Be sure to have this much clearance over your Z_MAX_POS to prevent grinding.
|
1113
1112
|
|
1114
|
-
|
1113
|
+
#define Z_AFTER_HOMING 10 // (mm) Height to move to after homing Z
|
1115
1114
|
|
1116
1115
|
// Direction of endstops when homing; 1=MAX, -1=MIN
|
1117
1116
|
// :[-1,1]
|
@@ -1122,8 +1121,8 @@
|
|
1122
1121
|
// @section machine
|
1123
1122
|
|
1124
1123
|
// The size of the print bed
|
1125
|
-
#define X_BED_SIZE
|
1126
|
-
#define Y_BED_SIZE
|
1124
|
+
#define X_BED_SIZE 180
|
1125
|
+
#define Y_BED_SIZE 180
|
1127
1126
|
|
1128
1127
|
// Travel limits (mm) after homing, corresponding to endstop positions.
|
1129
1128
|
#define X_MIN_POS 0
|
@@ -1131,7 +1130,7 @@
|
|
1131
1130
|
#define Z_MIN_POS 0
|
1132
1131
|
#define X_MAX_POS X_BED_SIZE
|
1133
1132
|
#define Y_MAX_POS Y_BED_SIZE
|
1134
|
-
#define Z_MAX_POS
|
1133
|
+
#define Z_MAX_POS 180
|
1135
1134
|
|
1136
1135
|
/**
|
1137
1136
|
* Software Endstops
|
@@ -1173,7 +1172,7 @@
|
|
1173
1172
|
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
1174
1173
|
#define FIL_RUNOUT_ENABLED_DEFAULT true // Enable the sensor on startup. Override with M412 followed by M500.
|
1175
1174
|
#define NUM_RUNOUT_SENSORS 1 // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
|
1176
|
-
#define FIL_RUNOUT_STATE
|
1175
|
+
#define FIL_RUNOUT_STATE HIGH // Pin state indicating that filament is NOT present.
|
1177
1176
|
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
|
1178
1177
|
//#define FIL_RUNOUT_PULLDOWN // Use internal pulldown for filament runout pins.
|
1179
1178
|
|
@@ -1236,13 +1235,13 @@
|
|
1236
1235
|
//#define AUTO_BED_LEVELING_LINEAR
|
1237
1236
|
//#define AUTO_BED_LEVELING_BILINEAR
|
1238
1237
|
//#define AUTO_BED_LEVELING_UBL
|
1239
|
-
|
1238
|
+
#define MESH_BED_LEVELING
|
1240
1239
|
|
1241
1240
|
/**
|
1242
1241
|
* Normally G28 leaves leveling disabled on completion. Enable
|
1243
1242
|
* this option to have G28 restore the prior leveling state.
|
1244
1243
|
*/
|
1245
|
-
|
1244
|
+
#define RESTORE_LEVELING_AFTER_G28
|
1246
1245
|
|
1247
1246
|
/**
|
1248
1247
|
* Enable detailed logging of G28, G29, M48, etc.
|
@@ -1341,7 +1340,7 @@
|
|
1341
1340
|
* Add a bed leveling sub-menu for ABL or MBL.
|
1342
1341
|
* Include a guided procedure if manual probing is enabled.
|
1343
1342
|
*/
|
1344
|
-
|
1343
|
+
#define LCD_BED_LEVELING
|
1345
1344
|
|
1346
1345
|
#if ENABLED(LCD_BED_LEVELING)
|
1347
1346
|
#define MESH_EDIT_Z_STEP 0.025 // (mm) Step size while manually probing Z axis.
|
@@ -1350,13 +1349,13 @@
|
|
1350
1349
|
#endif
|
1351
1350
|
|
1352
1351
|
// Add a menu item to move between bed corners for manual bed adjustment
|
1353
|
-
|
1352
|
+
#define LEVEL_BED_CORNERS
|
1354
1353
|
|
1355
1354
|
#if ENABLED(LEVEL_BED_CORNERS)
|
1356
1355
|
#define LEVEL_CORNERS_INSET_LFRB { 30, 30, 30, 30 } // (mm) Left, Front, Right, Back insets
|
1357
1356
|
#define LEVEL_CORNERS_HEIGHT 0.0 // (mm) Z height of nozzle at leveling points
|
1358
1357
|
#define LEVEL_CORNERS_Z_HOP 4.0 // (mm) Z height of nozzle between leveling points
|
1359
|
-
|
1358
|
+
#define LEVEL_CENTER_TOO // Move to the center after the last corner
|
1360
1359
|
#endif
|
1361
1360
|
|
1362
1361
|
/**
|
@@ -1393,7 +1392,7 @@
|
|
1393
1392
|
#endif
|
1394
1393
|
|
1395
1394
|
// Homing speeds (mm/min)
|
1396
|
-
#define HOMING_FEEDRATE_XY (
|
1395
|
+
#define HOMING_FEEDRATE_XY (30*60)
|
1397
1396
|
#define HOMING_FEEDRATE_Z (4*60)
|
1398
1397
|
|
1399
1398
|
// Validate that endstops are triggered on homing moves
|
@@ -1471,12 +1470,12 @@
|
|
1471
1470
|
* M501 - Read settings from EEPROM. (i.e., Throw away unsaved changes)
|
1472
1471
|
* M502 - Revert settings to "factory" defaults. (Follow with M500 to init the EEPROM.)
|
1473
1472
|
*/
|
1474
|
-
|
1473
|
+
#define EEPROM_SETTINGS // Persistent storage with M500 and M501
|
1475
1474
|
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
1476
1475
|
#define EEPROM_CHITCHAT // Give feedback on EEPROM commands. Disable to save PROGMEM.
|
1477
1476
|
#define EEPROM_BOOT_SILENT // Keep M503 quiet and only give errors during first load
|
1478
1477
|
#if ENABLED(EEPROM_SETTINGS)
|
1479
|
-
|
1478
|
+
#define EEPROM_AUTO_INIT // Init EEPROM automatically on any errors.
|
1480
1479
|
#endif
|
1481
1480
|
|
1482
1481
|
//
|
@@ -1503,13 +1502,13 @@
|
|
1503
1502
|
|
1504
1503
|
// Preheat Constants
|
1505
1504
|
#define PREHEAT_1_LABEL "PLA"
|
1506
|
-
#define PREHEAT_1_TEMP_HOTEND
|
1507
|
-
#define PREHEAT_1_TEMP_BED
|
1505
|
+
#define PREHEAT_1_TEMP_HOTEND 200
|
1506
|
+
#define PREHEAT_1_TEMP_BED 60
|
1508
1507
|
#define PREHEAT_1_FAN_SPEED 0 // Value from 0 to 255
|
1509
1508
|
|
1510
|
-
#define PREHEAT_2_LABEL "
|
1511
|
-
#define PREHEAT_2_TEMP_HOTEND
|
1512
|
-
#define PREHEAT_2_TEMP_BED
|
1509
|
+
#define PREHEAT_2_LABEL "PTG"
|
1510
|
+
#define PREHEAT_2_TEMP_HOTEND 235
|
1511
|
+
#define PREHEAT_2_TEMP_BED 80
|
1513
1512
|
#define PREHEAT_2_FAN_SPEED 0 // Value from 0 to 255
|
1514
1513
|
|
1515
1514
|
/**
|
@@ -1523,7 +1522,7 @@
|
|
1523
1522
|
* P1 Raise the nozzle always to Z-park height.
|
1524
1523
|
* P2 Raise the nozzle by Z-park amount, limited to Z_MAX_POS.
|
1525
1524
|
*/
|
1526
|
-
|
1525
|
+
#define NOZZLE_PARK_FEATURE
|
1527
1526
|
|
1528
1527
|
#if ENABLED(NOZZLE_PARK_FEATURE)
|
1529
1528
|
// Specify a park position as { X, Y, Z_raise }
|
@@ -1724,7 +1723,7 @@
|
|
1724
1723
|
* SD Card support is disabled by default. If your controller has an SD slot,
|
1725
1724
|
* you must uncomment the following option or it won't work.
|
1726
1725
|
*/
|
1727
|
-
|
1726
|
+
#define SDSUPPORT
|
1728
1727
|
|
1729
1728
|
/**
|
1730
1729
|
* SD CARD: SPI SPEED
|
@@ -1732,7 +1731,7 @@
|
|
1732
1731
|
* Enable one of the following items for a slower SPI transfer speed.
|
1733
1732
|
* This may be required to resolve "volume init" errors.
|
1734
1733
|
*/
|
1735
|
-
|
1734
|
+
#define SPI_SPEED SPI_HALF_SPEED
|
1736
1735
|
//#define SPI_SPEED SPI_QUARTER_SPEED
|
1737
1736
|
//#define SPI_SPEED SPI_EIGHTH_SPEED
|
1738
1737
|
|
@@ -1741,7 +1740,7 @@
|
|
1741
1740
|
*
|
1742
1741
|
* Use CRC checks and retries on the SD communication.
|
1743
1742
|
*/
|
1744
|
-
|
1743
|
+
#define SD_CHECK_AND_RETRY
|
1745
1744
|
|
1746
1745
|
/**
|
1747
1746
|
* LCD Menu Items
|
@@ -1804,7 +1803,7 @@
|
|
1804
1803
|
//
|
1805
1804
|
// Add individual axis homing items (Home X, Home Y, and Home Z) to the LCD menu.
|
1806
1805
|
//
|
1807
|
-
|
1806
|
+
#define INDIVIDUAL_AXIS_HOMING_MENU
|
1808
1807
|
|
1809
1808
|
//
|
1810
1809
|
// SPEAKER/BUZZER
|
@@ -2220,7 +2219,7 @@
|
|
2220
2219
|
* Resolution: TFT_WIDTH and TFT_HEIGHT
|
2221
2220
|
* Interface: TFT_INTERFACE_FSMC or TFT_INTERFACE_SPI
|
2222
2221
|
*/
|
2223
|
-
|
2222
|
+
#define MKS_ROBIN_TFT24
|
2224
2223
|
|
2225
2224
|
/**
|
2226
2225
|
* TFT UI - User Interface Selection. Enable one of the following options:
|
@@ -2233,7 +2232,7 @@
|
|
2233
2232
|
* root of your SD card, together with the compiled firmware.
|
2234
2233
|
*/
|
2235
2234
|
//#define TFT_CLASSIC_UI
|
2236
|
-
|
2235
|
+
#define TFT_COLOR_UI
|
2237
2236
|
//#define TFT_LVGL_UI
|
2238
2237
|
|
2239
2238
|
/**
|
@@ -2244,7 +2243,7 @@
|
|
2244
2243
|
* TFT_ROTATE_270, TFT_ROTATE_270_MIRROR_X, TFT_ROTATE_270_MIRROR_Y,
|
2245
2244
|
* TFT_MIRROR_X, TFT_MIRROR_Y, TFT_NO_ROTATION
|
2246
2245
|
*/
|
2247
|
-
|
2246
|
+
#define TFT_ROTATION TFT_ROTATE_180
|
2248
2247
|
|
2249
2248
|
//=============================================================================
|
2250
2249
|
//============================ Other Controllers ============================
|
@@ -2258,17 +2257,25 @@
|
|
2258
2257
|
//
|
2259
2258
|
// ADS7843/XPT2046 ADC Touchscreen such as ILI9341 2.8
|
2260
2259
|
//
|
2261
|
-
|
2260
|
+
#define TOUCH_SCREEN
|
2262
2261
|
#if ENABLED(TOUCH_SCREEN)
|
2263
2262
|
#define BUTTON_DELAY_EDIT 50 // (ms) Button repeat delay for edit screens
|
2264
2263
|
#define BUTTON_DELAY_MENU 250 // (ms) Button repeat delay for menus
|
2265
2264
|
|
2266
2265
|
#define TOUCH_SCREEN_CALIBRATION
|
2267
2266
|
|
2268
|
-
|
2269
|
-
|
2270
|
-
|
2271
|
-
|
2267
|
+
/*
|
2268
|
+
// This works
|
2269
|
+
#define XPT2046_X_CALIBRATION 12649
|
2270
|
+
#define XPT2046_Y_CALIBRATION -9791
|
2271
|
+
#define XPT2046_X_OFFSET -53
|
2272
|
+
#define XPT2046_Y_OFFSET 272
|
2273
|
+
*/
|
2274
|
+
|
2275
|
+
#define XPT2046_X_CALIBRATION 12021
|
2276
|
+
#define XPT2046_Y_CALIBRATION -9203
|
2277
|
+
#define XPT2046_X_OFFSET -35
|
2278
|
+
#define XPT2046_Y_OFFSET 264
|
2272
2279
|
#endif
|
2273
2280
|
|
2274
2281
|
//
|