Advertisement
Guest User

Untitled

a guest
Oct 5th, 2017
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 12.03 KB | None | 0 0
  1. user@host:~$ cat dev/Marlin-1.1.4/Marlin-1.1.x/Marlin/Configuration.h| sed -r ':a; s%(.*)/\*.*\*/%\1%; ta; /\/\*/ !b; N; ba'|sed -e 's/^[ ]*\/\/.*$//g'|grep -v -e "^$"
  2. #ifndef CONFIGURATION_H
  3. #define CONFIGURATION_H
  4. #define CONFIGURATION_H_VERSION 010100
  5. #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
  6. #define SHOW_BOOTSCREEN
  7. #define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
  8. #define STRING_SPLASH_LINE2 WEBSITE_URL         // will be shown during bootup in line 2
  9. #define SERIAL_PORT 0
  10. #define BAUDRATE 250000
  11. #ifndef MOTHERBOARD
  12.   #define MOTHERBOARD BOARD_RAMPS_13_EFB
  13. #endif
  14. #define EXTRUDERS 1
  15. #if ENABLED(MK2_MULTIPLEXER)
  16. #endif
  17. #if ENABLED(SWITCHING_EXTRUDER)
  18.   #define SWITCHING_EXTRUDER_SERVO_NR 0
  19.   #define SWITCHING_EXTRUDER_SERVO_ANGLES { 0, 90 } // Angles for E0, E1[, E2, E3]
  20.   #if EXTRUDERS > 3
  21.     #define SWITCHING_EXTRUDER_E23_SERVO_NR 1
  22.   #endif
  23. #endif
  24. #if ENABLED(SWITCHING_NOZZLE)
  25.   #define SWITCHING_NOZZLE_SERVO_NR 0
  26.   #define SWITCHING_NOZZLE_SERVO_ANGLES { 0, 90 }   // Angles for E0, E1
  27. #endif
  28. #if ENABLED(MIXING_EXTRUDER)
  29.   #define MIXING_STEPPERS 2        // Number of steppers in your mixing extruder
  30.   #define MIXING_VIRTUAL_TOOLS 16  // Use the Virtual Tool method with M163 and M164
  31. #endif
  32. #define POWER_SUPPLY 0
  33. #if POWER_SUPPLY > 0
  34. #endif
  35. #define TEMP_SENSOR_0 1
  36. #define TEMP_SENSOR_1 0
  37. #define TEMP_SENSOR_2 0
  38. #define TEMP_SENSOR_3 0
  39. #define TEMP_SENSOR_4 0
  40. #define TEMP_SENSOR_BED 11
  41. #define DUMMY_THERMISTOR_998_VALUE 25
  42. #define DUMMY_THERMISTOR_999_VALUE 100
  43. #define MAX_REDUNDANT_TEMP_SENSOR_DIFF 10
  44. #define TEMP_RESIDENCY_TIME 10  // (seconds)
  45. #define TEMP_HYSTERESIS 3       // (degC) range of +/- temperatures considered "close" to the target one
  46. #define TEMP_WINDOW     1       // (degC) Window around target to start the residency timer x degC early.
  47. #define TEMP_BED_RESIDENCY_TIME 10  // (seconds)
  48. #define TEMP_BED_HYSTERESIS 3       // (degC) range of +/- temperatures considered "close" to the target one
  49. #define TEMP_BED_WINDOW     1       // (degC) Window around target to start the residency timer x degC early.
  50. #define HEATER_0_MINTEMP 5
  51. #define HEATER_1_MINTEMP 5
  52. #define HEATER_2_MINTEMP 5
  53. #define HEATER_3_MINTEMP 5
  54. #define HEATER_4_MINTEMP 5
  55. #define BED_MINTEMP 5
  56. #define HEATER_0_MAXTEMP 275
  57. #define HEATER_1_MAXTEMP 275
  58. #define HEATER_2_MAXTEMP 275
  59. #define HEATER_3_MAXTEMP 275
  60. #define HEATER_4_MAXTEMP 275
  61. #define BED_MAXTEMP 150
  62. #define PIDTEMP
  63. #define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
  64. #define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
  65. #if ENABLED(PIDTEMP)
  66.   #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
  67.   #define K1 0.95 //smoothing factor within the PID
  68.   #define  DEFAULT_Kp 22.2
  69.   #define  DEFAULT_Ki 1.08
  70.   #define  DEFAULT_Kd 114
  71.  
  72.  
  73.   #define  DEFAULT_Kp 27.45
  74.   #define  DEFAULT_Ki 2.30
  75.   #define  DEFAULT_Kd 82.08
  76. #endif // PIDTEMP
  77. #define PIDTEMPBED
  78. #define MAX_BED_POWER 255 // limits duty cycle to bed; 255=full current
  79. #if ENABLED(PIDTEMPBED)
  80.  
  81.  
  82. #define  DEFAULT_bedKp 998.21
  83. #define  DEFAULT_bedKi 196.54
  84. #define  DEFAULT_bedKd 1267.48
  85. #endif // PIDTEMPBED
  86. #define PREVENT_COLD_EXTRUSION
  87. #define EXTRUDE_MINTEMP 170
  88. #define PREVENT_LENGTHY_EXTRUDE
  89. #define EXTRUDE_MAXLENGTH 200
  90. #define THERMAL_PROTECTION_HOTENDS // Enable thermal protection for all extruders
  91. #define THERMAL_PROTECTION_BED     // Enable thermal protection for the heated bed
  92. #define USE_XMAX_PLUG
  93. #define USE_YMIN_PLUG
  94. #define USE_ZMIN_PLUG
  95. #define USE_ZMAX_PLUG
  96. #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
  97. #if DISABLED(ENDSTOPPULLUPS)
  98. #endif
  99. #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
  100. #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
  101. #define Z_MIN_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
  102. #define X_MAX_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
  103. #define Y_MAX_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
  104. #define Z_MAX_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
  105. #define Z_MIN_PROBE_ENDSTOP_INVERTING false // set to true to invert the logic of the probe.
  106.  
  107.  
  108. #define DEFAULT_AXIS_STEPS_PER_UNIT   { 80.97002085, 80.166746833, 3900.216249613, 799.06 }
  109. #define DEFAULT_MAX_FEEDRATE          { 100, 100, 3, 25 }
  110. #define DEFAULT_MAX_ACCELERATION      { 2000, 2000, 100, 2000 }
  111. #define DEFAULT_ACCELERATION          1000    // X, Y, Z and E acceleration for printing moves
  112. #define DEFAULT_RETRACT_ACCELERATION  1000    // E acceleration for retracts
  113. #define DEFAULT_TRAVEL_ACCELERATION   2000    // X, Y, Z acceleration for travel (non printing) moves
  114. #define DEFAULT_XJERK                 10.0
  115. #define DEFAULT_YJERK                 10.0
  116. #define DEFAULT_ZJERK                  0.4
  117. #define DEFAULT_EJERK                  5.0
  118. #define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
  119. #define SERVO_ENDSTOPS {-1, -1, 0} // Servo index for X, Y, Z. Disable with -1
  120. #define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
  121. #define Z_SERVO_ANGLES {90,10} // Z Axis Extend and Retract angles
  122. #define BLTOUCH
  123. #if ENABLED(BLTOUCH)
  124. #endif
  125. #define X_PROBE_OFFSET_FROM_EXTRUDER -58  // X offset: -left  +right  [of the nozzle]
  126. #define Y_PROBE_OFFSET_FROM_EXTRUDER 0  // Y offset: -front +behind [the nozzle]
  127. #define Z_PROBE_OFFSET_FROM_EXTRUDER 8.3   // Z offset: -below +above  [the nozzle]
  128. #define XY_PROBE_SPEED 8000
  129. #define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z
  130. #define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
  131. #define Z_CLEARANCE_DEPLOY_PROBE   10 // Z Clearance for Deploy/Stow
  132. #define Z_CLEARANCE_BETWEEN_PROBES  5 // Z Clearance between probe points
  133. #define Z_PROBE_OFFSET_RANGE_MIN -20
  134. #define Z_PROBE_OFFSET_RANGE_MAX 20
  135. #define X_ENABLE_ON 0
  136. #define Y_ENABLE_ON 0
  137. #define Z_ENABLE_ON 0
  138. #define E_ENABLE_ON 0 // For all extruders
  139. #define DISABLE_X false
  140. #define DISABLE_Y false
  141. #define DISABLE_Z false
  142. #define DISABLE_E false // For all extruders
  143. #define DISABLE_INACTIVE_EXTRUDER true // Keep only the active extruder enabled.
  144. #define INVERT_X_DIR false
  145. #define INVERT_Y_DIR true
  146. #define INVERT_Z_DIR false
  147. #define INVERT_E0_DIR true
  148. #define INVERT_E1_DIR false
  149. #define INVERT_E2_DIR false
  150. #define INVERT_E3_DIR false
  151. #define INVERT_E4_DIR false
  152. #define X_HOME_DIR 1
  153. #define Y_HOME_DIR -1
  154. #define Z_HOME_DIR -1
  155. #define X_MIN_POS 0
  156. #define Y_MIN_POS 0
  157. #define Z_MIN_POS 0
  158. #define X_MAX_POS 193
  159. #define Y_MAX_POS 172
  160. #define Z_MAX_POS 102
  161. #define MAX_SOFTWARE_ENDSTOPS
  162. #if ENABLED(FILAMENT_RUNOUT_SENSOR)
  163.   #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
  164.   #define ENDSTOPPULLUP_FIL_RUNOUT // Uncomment to use internal pullup for filament runout pins if the sensor is defined.
  165.   #define FILAMENT_RUNOUT_SCRIPT "M600"
  166. #endif
  167. #define AUTO_BED_LEVELING_BILINEAR
  168. #if ENABLED(MESH_BED_LEVELING) || ENABLED(AUTO_BED_LEVELING_BILINEAR) || ENABLED(AUTO_BED_LEVELING_UBL)
  169.   #define ENABLE_LEVELING_FADE_HEIGHT
  170. #endif
  171. #if ENABLED(AUTO_BED_LEVELING_LINEAR) || ENABLED(AUTO_BED_LEVELING_BILINEAR)
  172.   #define GRID_MAX_POINTS_X 3
  173.   #define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X
  174.  
  175.   #define LEFT_PROBE_BED_POSITION 30
  176.   #define RIGHT_PROBE_BED_POSITION 100
  177.   #define FRONT_PROBE_BED_POSITION 30
  178.   #define BACK_PROBE_BED_POSITION 150
  179.   #define MIN_PROBE_EDGE 10
  180.   #if ENABLED(AUTO_BED_LEVELING_BILINEAR)
  181.     #if ENABLED(ABL_BILINEAR_SUBDIVISION)
  182.       #define BILINEAR_SUBDIVISIONS 3
  183.     #endif
  184.   #endif
  185. #elif ENABLED(AUTO_BED_LEVELING_3POINT)
  186.   #define ABL_PROBE_PT_1_X 15
  187.   #define ABL_PROBE_PT_1_Y 180
  188.   #define ABL_PROBE_PT_2_X 15
  189.   #define ABL_PROBE_PT_2_Y 20
  190.   #define ABL_PROBE_PT_3_X 170
  191.   #define ABL_PROBE_PT_3_Y 20
  192. #elif ENABLED(AUTO_BED_LEVELING_UBL)
  193.   #define UBL_MESH_INSET 1          // Mesh inset margin on print area
  194.   #define GRID_MAX_POINTS_X 10      // Don't use more than 15 points per axis, implementation limited.
  195.   #define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X
  196.   #define UBL_PROBE_PT_1_X 39       // Probing points for 3-Point leveling of the mesh
  197.   #define UBL_PROBE_PT_1_Y 180
  198.   #define UBL_PROBE_PT_2_X 39
  199.   #define UBL_PROBE_PT_2_Y 20
  200.   #define UBL_PROBE_PT_3_X 180
  201.   #define UBL_PROBE_PT_3_Y 20
  202.   #define UBL_G26_MESH_VALIDATION   // Enable G26 mesh validation
  203.   #define UBL_MESH_EDIT_MOVES_Z     // Sophisticated users prefer no movement of nozzle
  204. #elif ENABLED(MESH_BED_LEVELING)
  205.   #define MESH_INSET 10          // Mesh inset margin on print area
  206.   #define GRID_MAX_POINTS_X 3    // Don't use more than 7 points per axis, implementation limited.
  207.   #define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X
  208. #endif // BED_LEVELING
  209. #if ENABLED(LCD_BED_LEVELING)
  210.   #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
  211.   #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
  212. #endif
  213. #define Z_SAFE_HOMING
  214. #if ENABLED(Z_SAFE_HOMING)
  215.   #define Z_SAFE_HOMING_X_POINT ((X_MIN_POS + X_MAX_POS) / 2)    // X point for Z homing when homing all axis (G28).
  216.   #define Z_SAFE_HOMING_Y_POINT ((Y_MIN_POS + Y_MAX_POS) / 2)    // Y point for Z homing when homing all axis (G28).
  217. #endif
  218. #define HOMING_FEEDRATE_XY (20*60)
  219. #define HOMING_FEEDRATE_Z  (2*60)
  220. #define EEPROM_CHITCHAT   // Give feedback on EEPROM commands. Disable to save PROGMEM.
  221. #define HOST_KEEPALIVE_FEATURE        // Disable this if your host doesn't like keepalive messages
  222. #define DEFAULT_KEEPALIVE_INTERVAL 2  // Number of seconds between "busy" messages. Set with M113.
  223. #define PREHEAT_1_TEMP_HOTEND 180
  224. #define PREHEAT_1_TEMP_BED     70
  225. #define PREHEAT_1_FAN_SPEED     0 // Value from 0 to 255
  226. #define PREHEAT_2_TEMP_HOTEND 240
  227. #define PREHEAT_2_TEMP_BED    110
  228. #define PREHEAT_2_FAN_SPEED     0 // Value from 0 to 255
  229. #if ENABLED(NOZZLE_PARK_FEATURE)
  230.   #define NOZZLE_PARK_POINT { (X_MIN_POS + 10), (Y_MAX_POS - 10), 20 }
  231. #endif
  232. #if ENABLED(NOZZLE_CLEAN_FEATURE)
  233.   #define NOZZLE_CLEAN_STROKES  12
  234.   #define NOZZLE_CLEAN_TRIANGLES  3
  235.   #define NOZZLE_CLEAN_START_POINT { 30, 30, (Z_MIN_POS + 1)}
  236.   #define NOZZLE_CLEAN_END_POINT   {100, 60, (Z_MIN_POS + 1)}
  237.   #define NOZZLE_CLEAN_CIRCLE_RADIUS 6.5
  238.   #define NOZZLE_CLEAN_CIRCLE_FN 10
  239.   #define NOZZLE_CLEAN_CIRCLE_MIDDLE NOZZLE_CLEAN_START_POINT
  240.   #define NOZZLE_CLEAN_GOBACK
  241. #endif
  242. #define PRINTJOB_TIMER_AUTOSTART
  243. #define LCD_LANGUAGE en
  244. #define DISPLAY_CHARSET_HD44780 WESTERN
  245. #define ULTRA_LCD   // Character based
  246. #define SDSUPPORT
  247. #define SPEAKER
  248. #define REPRAP_DISCOUNT_SMART_CONTROLLER
  249. #define NEWPANEL
  250. #if ENABLED(SAV_3DGLCD)
  251.   #define U8GLIB_SH1106
  252. #endif
  253. #define SOFT_PWM_SCALE 0
  254. #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
  255.   #define RGB_LED_R_PIN 34
  256.   #define RGB_LED_G_PIN 43
  257.   #define RGB_LED_B_PIN 35
  258.   #define RGB_LED_W_PIN -1
  259. #endif
  260. #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632)
  261.   #define PRINTER_EVENT_LEDS
  262. #endif
  263. #define NUM_SERVOS 3 // Servo index starts with 0 for M280 command
  264. #define SERVO_DELAY 300
  265. #define DEFAULT_NOMINAL_FILAMENT_DIA 3.00   // (mm) Diameter of the filament generally used (3.0 or 1.75mm), also used in the slicer. Used to validate sensor reading.
  266. #if ENABLED(FILAMENT_WIDTH_SENSOR)
  267.   #define FILAMENT_SENSOR_EXTRUDER_NUM 0    // Index of the extruder that has the filament sensor (0,1,2,3)
  268.   #define MEASUREMENT_DELAY_CM        14    // (cm) The distance from the filament sensor to the melting chamber
  269.   #define MEASURED_UPPER_LIMIT         3.30 // (mm) Upper limit used to validate sensor reading
  270.   #define MEASURED_LOWER_LIMIT         1.90 // (mm) Lower limit used to validate sensor reading
  271.   #define MAX_MEASUREMENT_DELAY       20    // (bytes) Buffer size for stored measurements (1 byte per cm). Must be larger than MEASUREMENT_DELAY_CM.
  272.   #define DEFAULT_MEASURED_FILAMENT_DIA DEFAULT_NOMINAL_FILAMENT_DIA // Set measured to nominal initially
  273. #endif
  274. #endif // CONFIGURATION_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement