|
|
|
@ -104,7 +104,7 @@
|
|
|
|
|
*
|
|
|
|
|
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
|
|
|
|
|
*/
|
|
|
|
|
#define SERIAL_PORT 1 // fzl:由于libmaple 0 用的是USB,1才是串口 old:0
|
|
|
|
|
#define SERIAL_PORT 1 // libmaple 0 for USB ,1 for serial
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Select a secondary serial port on the board to use for communication with the host.
|
|
|
|
@ -148,7 +148,7 @@
|
|
|
|
|
#define EXTRUDERS 1
|
|
|
|
|
|
|
|
|
|
// Generally expected filament diameter (1.75, 2.85, 3.0, ...). Used for Volumetric, Filament Width Sensor, etc.
|
|
|
|
|
#define DEFAULT_NOMINAL_FILAMENT_DIA 3.0
|
|
|
|
|
#define DEFAULT_NOMINAL_FILAMENT_DIA 1.75
|
|
|
|
|
|
|
|
|
|
// For Cyclops or any "multi-extruder" that shares a single nozzle.
|
|
|
|
|
//#define SINGLENOZZLE
|
|
|
|
@ -466,10 +466,15 @@
|
|
|
|
|
|
|
|
|
|
// If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
|
|
|
|
|
|
|
|
|
|
// Makerlab J-head
|
|
|
|
|
#define DEFAULT_Kp 21.73
|
|
|
|
|
#define DEFAULT_Ki 1.54
|
|
|
|
|
#define DEFAULT_Kd 76.55
|
|
|
|
|
|
|
|
|
|
// Ultimaker
|
|
|
|
|
#define DEFAULT_Kp 22.2
|
|
|
|
|
#define DEFAULT_Ki 1.08
|
|
|
|
|
#define DEFAULT_Kd 114
|
|
|
|
|
//#define DEFAULT_Kp 22.2
|
|
|
|
|
//#define DEFAULT_Ki 1.08
|
|
|
|
|
//#define DEFAULT_Kd 114
|
|
|
|
|
|
|
|
|
|
// MakerGear
|
|
|
|
|
//#define DEFAULT_Kp 7.0
|
|
|
|
@ -629,9 +634,9 @@
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
// Mechanical endstop with COM to ground and NC to Signal uses "false" here (most common setup).
|
|
|
|
|
#define X_MIN_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.
|
|
|
|
|
#define Y_MIN_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.
|
|
|
|
|
#define Z_MIN_ENDSTOP_INVERTING true // Set to true to invert the logic of the endstop.
|
|
|
|
|
#define X_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
|
|
|
|
|
#define Y_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
|
|
|
|
|
#define Z_MIN_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
|
|
|
|
|
#define X_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
|
|
|
|
|
#define Y_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
|
|
|
|
|
#define Z_MAX_ENDSTOP_INVERTING false // Set to true to invert the logic of the endstop.
|
|
|
|
@ -971,10 +976,10 @@
|
|
|
|
|
|
|
|
|
|
// For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
|
|
|
|
|
// :{ 0:'Low', 1:'High' }
|
|
|
|
|
#define X_ENABLE_ON 1
|
|
|
|
|
#define Y_ENABLE_ON 1
|
|
|
|
|
#define Z_ENABLE_ON 1
|
|
|
|
|
#define E_ENABLE_ON 1 // For all extruders
|
|
|
|
|
#define X_ENABLE_ON 0
|
|
|
|
|
#define Y_ENABLE_ON 0
|
|
|
|
|
#define Z_ENABLE_ON 0
|
|
|
|
|
#define E_ENABLE_ON 0 // For all extruders
|
|
|
|
|
|
|
|
|
|
// Disables axis stepper immediately when it's not being used.
|
|
|
|
|
// WARNING: When motors turn off there is a chance of losing position accuracy!
|
|
|
|
@ -993,14 +998,14 @@
|
|
|
|
|
// @section machine
|
|
|
|
|
|
|
|
|
|
// Invert the stepper direction. Change (or reverse the motor connector) if an axis goes the wrong way.
|
|
|
|
|
#define INVERT_X_DIR false
|
|
|
|
|
#define INVERT_Y_DIR false
|
|
|
|
|
#define INVERT_Z_DIR true
|
|
|
|
|
#define INVERT_X_DIR true
|
|
|
|
|
#define INVERT_Y_DIR true
|
|
|
|
|
#define INVERT_Z_DIR false
|
|
|
|
|
|
|
|
|
|
// @section extruder
|
|
|
|
|
|
|
|
|
|
// For direct drive extruder v9 set to true, for geared extruder set to false.
|
|
|
|
|
#define INVERT_E0_DIR false
|
|
|
|
|
#define INVERT_E0_DIR true
|
|
|
|
|
#define INVERT_E1_DIR false
|
|
|
|
|
#define INVERT_E2_DIR false
|
|
|
|
|
#define INVERT_E3_DIR false
|
|
|
|
@ -1025,8 +1030,8 @@
|
|
|
|
|
// @section machine
|
|
|
|
|
|
|
|
|
|
// The size of the print bed
|
|
|
|
|
#define X_BED_SIZE 200
|
|
|
|
|
#define Y_BED_SIZE 200
|
|
|
|
|
#define X_BED_SIZE 235
|
|
|
|
|
#define Y_BED_SIZE 235
|
|
|
|
|
|
|
|
|
|
// Travel limits (mm) after homing, corresponding to endstop positions.
|
|
|
|
|
#define X_MIN_POS 0
|
|
|
|
@ -1034,7 +1039,7 @@
|
|
|
|
|
#define Z_MIN_POS 0
|
|
|
|
|
#define X_MAX_POS X_BED_SIZE
|
|
|
|
|
#define Y_MAX_POS Y_BED_SIZE
|
|
|
|
|
#define Z_MAX_POS 200
|
|
|
|
|
#define Z_MAX_POS 260
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Software Endstops
|
|
|
|
@ -1393,7 +1398,7 @@
|
|
|
|
|
* M501 - Read settings from EEPROM. (i.e., Throw away unsaved changes)
|
|
|
|
|
* M502 - Revert settings to "factory" defaults. (Follow with M500 to init the EEPROM.)
|
|
|
|
|
*/
|
|
|
|
|
//#define EEPROM_SETTINGS // Persistent storage with M500 and M501
|
|
|
|
|
#define EEPROM_SETTINGS // Persistent storage with M500 and M501
|
|
|
|
|
//#define DISABLE_M503 // Saves ~2700 bytes of PROGMEM. Disable for release!
|
|
|
|
|
#define EEPROM_CHITCHAT // Give feedback on EEPROM commands. Disable to save PROGMEM.
|
|
|
|
|
#if ENABLED(EEPROM_SETTINGS)
|
|
|
|
@ -1922,7 +1927,7 @@
|
|
|
|
|
//
|
|
|
|
|
//#define FYSETC_MINI_12864_X_X // Type C/D/E/F. No tunable RGB Backlight by default
|
|
|
|
|
//#define FYSETC_MINI_12864_1_2 // Type C/D/E/F. Simple RGB Backlight (always on)
|
|
|
|
|
//#define FYSETC_MINI_12864_2_0 // Type A/B. Discreet RGB Backlight
|
|
|
|
|
#define FYSETC_MINI_12864_2_0 // Type A/B. Discreet RGB Backlight
|
|
|
|
|
//#define FYSETC_MINI_12864_2_1 // Type A/B. Neopixel RGB Backlight
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
@ -2117,14 +2122,14 @@
|
|
|
|
|
* LED Type. Enable only one of the following two options.
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
//#define RGB_LED
|
|
|
|
|
#define RGB_LED
|
|
|
|
|
//#define RGBW_LED
|
|
|
|
|
|
|
|
|
|
#if EITHER(RGB_LED, RGBW_LED)
|
|
|
|
|
//#define RGB_LED_R_PIN 34
|
|
|
|
|
//#define RGB_LED_G_PIN 43
|
|
|
|
|
//#define RGB_LED_B_PIN 35
|
|
|
|
|
//#define RGB_LED_W_PIN -1
|
|
|
|
|
#define RGB_LED_R_PIN PB0
|
|
|
|
|
#define RGB_LED_G_PIN PB6
|
|
|
|
|
#define RGB_LED_B_PIN PB7
|
|
|
|
|
#define RGB_LED_W_PIN -1
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
// Support for Adafruit Neopixel LED driver
|
|
|
|
@ -2181,3 +2186,9 @@
|
|
|
|
|
|
|
|
|
|
// Allow servo angle to be edited and saved to EEPROM
|
|
|
|
|
//#define EDITABLE_SERVO_ANGLES
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Sometimes after inserting the SD card settings get lost.
|
|
|
|
|
* This option reloads settings when the SD card is inserted.
|
|
|
|
|
*/
|
|
|
|
|
#define SD_RELOAD_SETTINGS
|
|
|
|
|