Advertisement
Merevoli

Configuration.h

Apr 11th, 2022
888
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 9.69 KB | None | 0 0
  1. #ifndef CONFIGURATION_H
  2. #define CONFIGURATION_H
  3. #define CONFIGURATION_H_VERSION 010109
  4. #define STRING_CONFIG_H_AUTHOR "(TIEN_DAT_<3)"
  5. #define SHOW_BOOTSCREEN
  6. #define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION
  7. #define STRING_SPLASH_LINE2 WEBSITE_URL        
  8. #define SERIAL_PORT 0
  9. #define BAUDRATE 250000
  10.  
  11. #ifndef MOTHERBOARD
  12.   #define MOTHERBOARD BOARD_RAMPS_14_EFB
  13. #endif
  14.  
  15. #define EXTRUDERS 1
  16. #define DEFAULT_NOMINAL_FILAMENT_DIA 1.75
  17.  
  18. #if ENABLED(MK2_MULTIPLEXER)
  19. #endif
  20.  
  21. #if ENABLED(SWITCHING_EXTRUDER)
  22.   #define SWITCHING_EXTRUDER_SERVO_NR 0
  23.   #define SWITCHING_EXTRUDER_SERVO_ANGLES { 0, 90 }
  24.   #if EXTRUDERS > 3
  25.     #define SWITCHING_EXTRUDER_E23_SERVO_NR 1
  26.   #endif
  27. #endif
  28.  
  29. #if ENABLED(SWITCHING_NOZZLE)
  30.   #define SWITCHING_NOZZLE_SERVO_NR 0
  31.   #define SWITCHING_NOZZLE_SERVO_ANGLES { 0, 90 }  
  32. #endif
  33.  
  34. #if ENABLED(PARKING_EXTRUDER)
  35.   #define PARKING_EXTRUDER_SOLENOIDS_INVERT          
  36.   #define PARKING_EXTRUDER_SOLENOIDS_PINS_ACTIVE LOW  
  37.   #define PARKING_EXTRUDER_SOLENOIDS_DELAY 250        
  38.   #define PARKING_EXTRUDER_PARKING_X { -78, 184 }    
  39.   #define PARKING_EXTRUDER_GRAB_DISTANCE 1            
  40.   #define PARKING_EXTRUDER_SECURITY_RAISE 5          
  41.   #define HOTEND_OFFSET_Z { 0.0, 1.3 }                
  42. #endif
  43.  
  44. #if ENABLED(MIXING_EXTRUDER)
  45.   #define MIXING_STEPPERS 2        
  46.   #define MIXING_VIRTUAL_TOOLS 16  
  47. #endif
  48.  
  49. #define POWER_SUPPLY 0
  50.  
  51. #if POWER_SUPPLY > 0
  52.   #if ENABLED(AUTO_POWER_CONTROL)
  53.     #define AUTO_POWER_FANS          
  54.     #define AUTO_POWER_E_FANS
  55.     #define AUTO_POWER_CONTROLLERFAN
  56.     #define POWER_TIMEOUT 30
  57.   #endif
  58. #endif
  59.  
  60. #define TEMP_SENSOR_0 1
  61. #define TEMP_SENSOR_1 0
  62. #define TEMP_SENSOR_2 0
  63. #define TEMP_SENSOR_3 0
  64. #define TEMP_SENSOR_4 0
  65. #define TEMP_SENSOR_BED 1
  66. #define TEMP_SENSOR_CHAMBER 0
  67. #define DUMMY_THERMISTOR_998_VALUE 25
  68. #define DUMMY_THERMISTOR_999_VALUE 100
  69. #define MAX_REDUNDANT_TEMP_SENSOR_DIFF 10
  70. #define TEMP_RESIDENCY_TIME 10  
  71. #define TEMP_HYSTERESIS 3      
  72. #define TEMP_WINDOW     1      
  73. #define TEMP_BED_RESIDENCY_TIME 10  
  74. #define TEMP_BED_HYSTERESIS 3      
  75. #define TEMP_BED_WINDOW     1      
  76. #define HEATER_0_MINTEMP 5
  77. #define HEATER_1_MINTEMP 5
  78. #define HEATER_2_MINTEMP 5
  79. #define HEATER_3_MINTEMP 5
  80. #define HEATER_4_MINTEMP 5
  81. #define BED_MINTEMP 5
  82. #define HEATER_0_MAXTEMP 275
  83. #define HEATER_1_MAXTEMP 275
  84. #define HEATER_2_MAXTEMP 275
  85. #define HEATER_3_MAXTEMP 275
  86. #define HEATER_4_MAXTEMP 275
  87. #define BED_MAXTEMP 150
  88. #define PIDTEMP
  89. #define BANG_MAX 255    
  90. #define PID_MAX BANG_MAX
  91. #define PID_K1 0.95      
  92. #if ENABLED(PIDTEMP)
  93.   #define PID_FUNCTIONAL_RANGE 10
  94.   #define DEFAULT_Kp 22.2
  95.   #define DEFAULT_Ki 1.08
  96.   #define DEFAULT_Kd 114
  97. #endif
  98.  
  99. #define MAX_BED_POWER 255
  100.  
  101. #if ENABLED(PIDTEMPBED)
  102.   #define DEFAULT_bedKp 10.00
  103.   #define DEFAULT_bedKi .023
  104.   #define DEFAULT_bedKd 305.4
  105. #endif
  106.  
  107.  
  108. #define PREVENT_COLD_EXTRUSION
  109. #define EXTRUDE_MINTEMP 170
  110. #define PREVENT_LENGTHY_EXTRUDE
  111. #define EXTRUDE_MAXLENGTH 200
  112. #define THERMAL_PROTECTION_HOTENDS
  113. #define THERMAL_PROTECTION_BED    
  114. #define USE_XMIN_PLUG
  115. #define USE_YMIN_PLUG
  116. #define USE_ZMIN_PLUG
  117. #define ENDSTOPPULLUPS
  118. #if DISABLED(ENDSTOPPULLUPS)
  119. #endif
  120.  
  121. #define X_MIN_ENDSTOP_INVERTING true
  122. #define Y_MIN_ENDSTOP_INVERTING true
  123. #define Z_MIN_ENDSTOP_INVERTING true
  124. #define X_MAX_ENDSTOP_INVERTING true
  125. #define Y_MAX_ENDSTOP_INVERTING true
  126. #define Z_MAX_ENDSTOP_INVERTING true
  127. #define Z_MIN_PROBE_ENDSTOP_INVERTING true
  128. #define DEFAULT_AXIS_STEPS_PER_UNIT   { 200, 200, 800, 168 }
  129. #define DEFAULT_MAX_FEEDRATE          { 300, 300, 5, 25 }
  130. #define DEFAULT_MAX_ACCELERATION      { 3000, 3000, 100, 10000 }
  131. #define DEFAULT_ACCELERATION          3000    
  132. #define DEFAULT_RETRACT_ACCELERATION  3000    
  133. #define DEFAULT_TRAVEL_ACCELERATION   3000    
  134. #define DEFAULT_XJERK                 10.0
  135. #define DEFAULT_YJERK                 10.0
  136. #define DEFAULT_ZJERK                  0.3
  137. #define DEFAULT_EJERK                  5.0
  138. #define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
  139.  
  140. #if ENABLED(PROBING_HEATERS_OFF)
  141. #endif
  142.  
  143. #define X_PROBE_OFFSET_FROM_EXTRUDER 10  
  144. #define Y_PROBE_OFFSET_FROM_EXTRUDER 10  
  145. #define Z_PROBE_OFFSET_FROM_EXTRUDER 0  
  146. #define MIN_PROBE_EDGE 10
  147. #define XY_PROBE_SPEED 8000
  148. #define Z_PROBE_SPEED_FAST HOMING_FEEDRATE_Z
  149. #define Z_PROBE_SPEED_SLOW (Z_PROBE_SPEED_FAST / 2)
  150. #define Z_CLEARANCE_DEPLOY_PROBE   10
  151. #define Z_CLEARANCE_BETWEEN_PROBES  5
  152. #define Z_CLEARANCE_MULTI_PROBE     5
  153. #define Z_PROBE_LOW_POINT          -2
  154. #define Z_PROBE_OFFSET_RANGE_MIN -20
  155. #define Z_PROBE_OFFSET_RANGE_MAX 20
  156. #define X_ENABLE_ON 0
  157. #define Y_ENABLE_ON 0
  158. #define Z_ENABLE_ON 0
  159. #define E_ENABLE_ON 0
  160. #define DISABLE_X false
  161. #define DISABLE_Y false
  162. #define DISABLE_Z false
  163. #define DISABLE_E false
  164. #define DISABLE_INACTIVE_EXTRUDER true
  165. #define INVERT_X_DIR false
  166. #define INVERT_Y_DIR true
  167. #define INVERT_Z_DIR false
  168. #define INVERT_E0_DIR false
  169. #define INVERT_E1_DIR false
  170. #define INVERT_E2_DIR false
  171. #define INVERT_E3_DIR false
  172. #define INVERT_E4_DIR false
  173. #define X_HOME_DIR -1
  174. #define Y_HOME_DIR -1
  175. #define Z_HOME_DIR -1
  176. #define X_BED_SIZE 200
  177. #define Y_BED_SIZE 200
  178. #define X_MIN_POS 0
  179. #define Y_MIN_POS 0
  180. #define Z_MIN_POS 0
  181. #define X_MAX_POS 214
  182. #define Y_MAX_POS 214
  183. #define Z_MAX_POS 200
  184. #define MIN_SOFTWARE_ENDSTOPS
  185. #if ENABLED(MIN_SOFTWARE_ENDSTOPS)
  186.   #define MIN_SOFTWARE_ENDSTOP_X
  187.   #define MIN_SOFTWARE_ENDSTOP_Y
  188.   #define MIN_SOFTWARE_ENDSTOP_Z
  189. #endif
  190.  
  191. #define MAX_SOFTWARE_ENDSTOPS
  192. #if ENABLED(MAX_SOFTWARE_ENDSTOPS)
  193.   #define MAX_SOFTWARE_ENDSTOP_X
  194.   #define MAX_SOFTWARE_ENDSTOP_Y
  195.   #define MAX_SOFTWARE_ENDSTOP_Z
  196. #endif
  197.  
  198. #if ENABLED(MIN_SOFTWARE_ENDSTOPS) || ENABLED(MAX_SOFTWARE_ENDSTOPS)
  199. #endif
  200.  
  201. #if ENABLED(FILAMENT_RUNOUT_SENSOR)
  202.   #define NUM_RUNOUT_SENSORS   1    
  203.   #define FIL_RUNOUT_INVERTING false
  204.   #define FIL_RUNOUT_PULLUP          
  205.   #define FILAMENT_RUNOUT_SCRIPT "M600"
  206. #endif
  207.  
  208. #if ENABLED(MESH_BED_LEVELING) || ENABLED(AUTO_BED_LEVELING_BILINEAR) || ENABLED(AUTO_BED_LEVELING_UBL)
  209.   #define ENABLE_LEVELING_FADE_HEIGHT
  210.   #define SEGMENT_LEVELED_MOVES
  211.   #define LEVELED_SEGMENT_LENGTH 5.0
  212.  
  213.   #if ENABLED(G26_MESH_VALIDATION)
  214.     #define MESH_TEST_NOZZLE_SIZE    0.4  
  215.     #define MESH_TEST_LAYER_HEIGHT   0.2  
  216.     #define MESH_TEST_HOTEND_TEMP  205.0  
  217.     #define MESH_TEST_BED_TEMP      60.0  
  218.   #endif
  219.  
  220. #endif
  221.  
  222. #if ENABLED(AUTO_BED_LEVELING_LINEAR) || ENABLED(AUTO_BED_LEVELING_BILINEAR)
  223.   #define GRID_MAX_POINTS_X 3
  224.   #define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X
  225.  
  226.   #if ENABLED(AUTO_BED_LEVELING_BILINEAR)
  227.     #if ENABLED(ABL_BILINEAR_SUBDIVISION)
  228.       #define BILINEAR_SUBDIVISIONS 3
  229.     #endif
  230.   #endif
  231.  
  232. #elif ENABLED(AUTO_BED_LEVELING_UBL)
  233.   #define MESH_INSET 1              
  234.   #define GRID_MAX_POINTS_X 10      
  235.   #define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X
  236.   #define UBL_MESH_EDIT_MOVES_Z    
  237.   #define UBL_SAVE_ACTIVE_ON_M500  
  238. #elif ENABLED(MESH_BED_LEVELING)
  239.   #define MESH_INSET 10          
  240.   #define GRID_MAX_POINTS_X 3    
  241.   #define GRID_MAX_POINTS_Y GRID_MAX_POINTS_X
  242. #endif
  243.  
  244. #if ENABLED(AUTO_BED_LEVELING_3POINT) || ENABLED(AUTO_BED_LEVELING_UBL)
  245. #endif
  246.  
  247. #if ENABLED(LCD_BED_LEVELING)
  248.   #define MBL_Z_STEP 0.025    
  249.   #define LCD_PROBE_Z_RANGE 4
  250. #endif
  251.  
  252. #if ENABLED(LEVEL_BED_CORNERS)
  253.   #define LEVEL_CORNERS_INSET 30    
  254.   #define LEVEL_CORNERS_Z_HOP  4.0  
  255. #endif
  256.  
  257. #if ENABLED(Z_SAFE_HOMING)
  258.   #define Z_SAFE_HOMING_X_POINT ((X_BED_SIZE) / 2)    
  259.   #define Z_SAFE_HOMING_Y_POINT ((Y_BED_SIZE) / 2)    
  260. #endif
  261.  
  262. #define HOMING_FEEDRATE_XY (50*60)
  263. #define HOMING_FEEDRATE_Z  (4*60)
  264.  
  265. #if ENABLED(SKEW_CORRECTION)
  266.   #define XY_DIAG_AC 282.8427124746
  267.   #define XY_DIAG_BD 282.8427124746
  268.   #define XY_SIDE_AD 200
  269.   #define XY_SKEW_FACTOR 0.0
  270.  
  271.   #if ENABLED(SKEW_CORRECTION_FOR_Z)
  272.     #define XZ_DIAG_AC 282.8427124746
  273.     #define XZ_DIAG_BD 282.8427124746
  274.     #define YZ_DIAG_AC 282.8427124746
  275.     #define YZ_DIAG_BD 282.8427124746
  276.     #define YZ_SIDE_AD 200
  277.     #define XZ_SKEW_FACTOR 0.0
  278.     #define YZ_SKEW_FACTOR 0.0
  279.   #endif
  280.  
  281. #endif
  282.  
  283. #define EEPROM_CHITCHAT  
  284. #define HOST_KEEPALIVE_FEATURE        
  285. #define DEFAULT_KEEPALIVE_INTERVAL 2  
  286. #define BUSY_WHILE_HEATING            
  287. #define PREHEAT_1_TEMP_HOTEND 180
  288. #define PREHEAT_1_TEMP_BED     70
  289. #define PREHEAT_1_FAN_SPEED     0
  290. #define PREHEAT_2_TEMP_HOTEND 240
  291. #define PREHEAT_2_TEMP_BED    110
  292. #define PREHEAT_2_FAN_SPEED     0
  293.  
  294. #if ENABLED(NOZZLE_PARK_FEATURE)
  295.   #define NOZZLE_PARK_POINT { (X_MIN_POS + 10), (Y_MAX_POS - 10), 20 }
  296.   #define NOZZLE_PARK_XY_FEEDRATE 100  
  297.   #define NOZZLE_PARK_Z_FEEDRATE 5      
  298. #endif
  299.  
  300. #if ENABLED(NOZZLE_CLEAN_FEATURE)
  301.   #define NOZZLE_CLEAN_STROKES  12
  302.   #define NOZZLE_CLEAN_TRIANGLES  3
  303.   #define NOZZLE_CLEAN_START_POINT { 30, 30, (Z_MIN_POS + 1)}
  304.   #define NOZZLE_CLEAN_END_POINT   {100, 60, (Z_MIN_POS + 1)}
  305.   #define NOZZLE_CLEAN_CIRCLE_RADIUS 6.5
  306.   #define NOZZLE_CLEAN_CIRCLE_FN 10
  307.   #define NOZZLE_CLEAN_CIRCLE_MIDDLE NOZZLE_CLEAN_START_POINT
  308.   #define NOZZLE_CLEAN_GOBACK
  309. #endif
  310.  
  311. #define PRINTJOB_TIMER_AUTOSTART
  312. #define LCD_LANGUAGE en
  313. #define DISPLAY_CHARSET_HD44780 JAPANESE
  314. #define REPRAP_DISCOUNT_SMART_CONTROLLER
  315.  
  316. #if ENABLED(SAV_3DGLCD)
  317.   #define U8GLIB_SH1106
  318. #endif
  319.  
  320. #define SOFT_PWM_SCALE 0
  321.  
  322. #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
  323.   #define RGB_LED_R_PIN 34
  324.   #define RGB_LED_G_PIN 43
  325.   #define RGB_LED_B_PIN 35
  326.   #define RGB_LED_W_PIN -1
  327. #endif
  328.  
  329. #if ENABLED(NEOPIXEL_LED)
  330.   #define NEOPIXEL_TYPE   NEO_GRBW
  331.   #define NEOPIXEL_PIN    4        
  332.   #define NEOPIXEL_PIXELS 30      
  333.   #define NEOPIXEL_IS_SEQUENTIAL  
  334.   #define NEOPIXEL_BRIGHTNESS 127  
  335. #endif
  336.  
  337. #if ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED) || ENABLED(PCA9632) || ENABLED(NEOPIXEL_LED)
  338.   #define PRINTER_EVENT_LEDS
  339. #endif
  340.  
  341. #define SERVO_DELAY { 300 }
  342.  
  343. #endif
  344.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement