Advertisement
Guest User

Untitled

a guest
May 9th, 2014
523
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.42 KB | None | 0 0
  1. [quote]
  2. #ifndef CONFIGURATION_H
  3. #define CONFIGURATION_H
  4.  
  5. [color=#7E7E7E]// This configuration file contains the basic settings.[/color]
  6. [color=#7E7E7E]// Advanced settings can be found in Configuration_adv.h[/color]
  7. [color=#7E7E7E]// BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration[/color]
  8.  
  9. [color=#7E7E7E]//===========================================================================[/color]
  10. [color=#7E7E7E]//============================= DELTA Printer ===============================[/color]
  11. [color=#7E7E7E]//===========================================================================[/color]
  12. [color=#7E7E7E]// For a Delta printer replace the configuration files with the files in the[/color]
  13. [color=#7E7E7E]// example_configurations/delta directory.[/color]
  14. [color=#7E7E7E]//[/color]
  15.  
  16. [color=#7E7E7E]// User-specified version info of this build to display in [Pronterface, etc] terminal window during[/color]
  17. [color=#7E7E7E]// startup. Implementation of an idea by Prof Braino to inform user that any changes made to this[/color]
  18. [color=#7E7E7E]// build by the user have been successfully uploaded into firmware.[/color]
  19. #define STRING_VERSION_CONFIG_H __DATE__ [color=#006699]" "[/color] __TIME__ [color=#7E7E7E]// build date and time[/color]
  20. #define STRING_CONFIG_H_AUTHOR [color=#006699]"(none, default config)"[/color] [color=#7E7E7E]// Who made the changes.[/color]
  21.  
  22. [color=#7E7E7E]// SERIAL_PORT selects which serial port should be used for communication with the host.[/color]
  23. [color=#7E7E7E]// This allows the connection of wireless adapters (for instance) to non-default port pins.[/color]
  24. [color=#7E7E7E]// Serial port 0 is still used by the Arduino bootloader regardless of this setting.[/color]
  25. #define SERIAL_PORT 0
  26.  
  27. [color=#7E7E7E]// This determines the communication speed of the printer[/color]
  28. [color=#7E7E7E]// This determines the communication speed of the printer[/color]
  29. #define BAUDRATE 250000
  30.  
  31. [color=#7E7E7E]// This enables the serial port associated to the Bluetooth interface[/color]
  32. [color=#7E7E7E]//#define BTENABLED              // Enable BT interface on AT90USB devices[/color]
  33.  
  34.  
  35. [color=#7E7E7E]//// The following define selects which electronics board you have. Please choose the one that matches your setup[/color]
  36. [color=#7E7E7E]// 10 = Gen7 custom (Alfons3 Version) "https://github.com/Alfons3/Generation_7_Electronics"[/color]
  37. [color=#7E7E7E]// 11 = Gen7 v1.1, v1.2 = 11[/color]
  38. [color=#7E7E7E]// 12 = Gen7 v1.3[/color]
  39. [color=#7E7E7E]// 13 = Gen7 v1.4[/color]
  40. [color=#7E7E7E]// 2  = Cheaptronic v1.0[/color]
  41. [color=#7E7E7E]// 20 = Sethi 3D_1[/color]
  42. [color=#7E7E7E]// 3  = MEGA/RAMPS up to 1.2 = 3[/color]
  43. [color=#7E7E7E]// 33 = RAMPS 1.3 / 1.4 (Power outputs: Extruder, Fan, Bed)[/color]
  44. [color=#7E7E7E]// 34 = RAMPS 1.3 / 1.4 (Power outputs: Extruder0, Extruder1, Bed)[/color]
  45. [color=#7E7E7E]// 35 = RAMPS 1.3 / 1.4 (Power outputs: Extruder, Fan, Fan)[/color]
  46. [color=#7E7E7E]// 4  = Duemilanove w/ ATMega328P pin assignment[/color]
  47. [color=#7E7E7E]// 5  = Gen6[/color]
  48. [color=#7E7E7E]// 51 = Gen6 deluxe[/color]
  49. [color=#7E7E7E]// 6  = Sanguinololu < 1.2[/color]
  50. [color=#7E7E7E]// 62 = Sanguinololu 1.2 and above[/color]
  51. [color=#7E7E7E]// 63 = Melzi[/color]
  52. [color=#7E7E7E]// 64 = STB V1.1[/color]
  53. [color=#7E7E7E]// 65 = Azteeg X1[/color]
  54. [color=#7E7E7E]// 66 = Melzi with ATmega1284 (MaKr3d version)[/color]
  55. [color=#7E7E7E]// 67 = Azteeg X3[/color]
  56. [color=#7E7E7E]// 68 = Azteeg X3 Pro[/color]
  57. [color=#7E7E7E]// 7  = Ultimaker[/color]
  58. [color=#7E7E7E]// 71 = Ultimaker (Older electronics. Pre 1.5.4. This is rare)[/color]
  59. [color=#7E7E7E]// 72 = Ultimainboard 2.x (Uses TEMP_SENSOR 20)[/color]
  60. [color=#7E7E7E]// 77 = 3Drag Controller[/color]
  61. [color=#7E7E7E]// 8  = Teensylu[/color]
  62. [color=#7E7E7E]// 80 = Rumba[/color]
  63. [color=#7E7E7E]// 81 = Printrboard (AT90USB1286)[/color]
  64. [color=#7E7E7E]// 82 = Brainwave (AT90USB646)[/color]
  65. [color=#7E7E7E]// 83 = SAV Mk-I (AT90USB1286)[/color]
  66. [color=#7E7E7E]// 9  = Gen3+[/color]
  67. [color=#7E7E7E]// 70 = Megatronics[/color]
  68. [color=#7E7E7E]// 701= Megatronics v2.0[/color]
  69. [color=#7E7E7E]// 702= Minitronics v1.0[/color]
  70. [color=#7E7E7E]// 90 = Alpha OMCA board[/color]
  71. [color=#7E7E7E]// 91 = Final OMCA board[/color]
  72. [color=#7E7E7E]// 301= Rambo[/color]
  73. [color=#7E7E7E]// 21 = Elefu Ra Board (v3)[/color]
  74. [color=#7E7E7E]// 88 = 5DPrint D8 Driver Board[/color]
  75.  
  76. #ifndef MOTHERBOARD
  77. #define MOTHERBOARD 62
  78. #endif
  79.  
  80. [color=#7E7E7E]// Define this to set a custom name for your generic Mendel,[/color]
  81. [color=#7E7E7E]// #define CUSTOM_MENDEL_NAME "This Mendel"[/color]
  82.  
  83. [color=#7E7E7E]// Define this to set a unique identifier for this printer, (Used by some programs to differentiate between machines)[/color]
  84. [color=#7E7E7E]// You can use an online service to generate a random UUID. (eg http://www.uuidgenerator.net/version4)[/color]
  85. [color=#7E7E7E]// #define MACHINE_UUID "00000000-0000-0000-0000-000000000000"[/color]
  86.  
  87. [color=#7E7E7E]// This defines the number of extruders[/color]
  88. #define EXTRUDERS 1
  89.  
  90. [color=#7E7E7E]//// The following define selects which power supply you have. Please choose the one that matches your setup[/color]
  91. [color=#7E7E7E]// 1 = ATX[/color]
  92. [color=#7E7E7E]// 2 = X-Box 360 203Watts (the blue wire connected to PS_ON and the red wire to VCC)[/color]
  93.  
  94. #define POWER_SUPPLY 1
  95.  
  96. [color=#7E7E7E]// Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.[/color]
  97. [color=#7E7E7E]// #define PS_DEFAULT_OFF[/color]
  98.  
  99. [color=#7E7E7E]//===========================================================================[/color]
  100. [color=#7E7E7E]//=============================Thermal Settings  ============================[/color]
  101. [color=#7E7E7E]//===========================================================================[/color]
  102. [color=#7E7E7E]//[/color]
  103. [color=#7E7E7E]//--NORMAL IS 4.7kohm PULLUP!-- 1kohm pullup can be used on hotend sensor, using correct resistor and table[/color]
  104. [color=#7E7E7E]//[/color]
  105. [color=#7E7E7E]//// Temperature sensor settings:[/color]
  106. [color=#7E7E7E]// -2 is thermocouple with MAX6675 (only for sensor 0)[/color]
  107. [color=#7E7E7E]// -1 is thermocouple with AD595[/color]
  108. [color=#7E7E7E]// 0 is not used[/color]
  109. [color=#7E7E7E]// 1 is 100k thermistor - best choice for EPCOS 100k (4.7k pullup)[/color]
  110. [color=#7E7E7E]// 2 is 200k thermistor - ATC Semitec 204GT-2 (4.7k pullup)[/color]
  111. [color=#7E7E7E]// 3 is Mendel-parts thermistor (4.7k pullup)[/color]
  112. [color=#7E7E7E]// 4 is 10k thermistor !! do not use it for a hotend. It gives bad resolution at high temp. !![/color]
  113. [color=#7E7E7E]// 5 is 100K thermistor - ATC Semitec 104GT-2 (Used in ParCan & J-Head) (4.7k pullup)[/color]
  114. [color=#7E7E7E]// 6 is 100k EPCOS - Not as accurate as table 1 (created using a fluke thermocouple) (4.7k pullup)[/color]
  115. [color=#7E7E7E]// 7 is 100k Honeywell thermistor 135-104LAG-J01 (4.7k pullup)[/color]
  116. [color=#7E7E7E]// 71 is 100k Honeywell thermistor 135-104LAF-J01 (4.7k pullup)[/color]
  117. [color=#7E7E7E]// 8 is 100k 0603 SMD Vishay NTCS0603E3104FXT (4.7k pullup)[/color]
  118. [color=#7E7E7E]// 9 is 100k GE Sensing AL03006-58.2K-97-G1 (4.7k pullup)[/color]
  119. [color=#7E7E7E]// 10 is 100k RS thermistor 198-961 (4.7k pullup)[/color]
  120. [color=#7E7E7E]// 11 is 100k beta 3950 1% thermistor (4.7k pullup)[/color]
  121. [color=#7E7E7E]// 12 is 100k 0603 SMD Vishay NTCS0603E3104FXT (4.7k pullup) (calibrated for Makibox hot bed)[/color]
  122. [color=#7E7E7E]// 20 is the PT100 circuit found in the Ultimainboard V2.x[/color]
  123. [color=#7E7E7E]// 60 is 100k Maker's Tool Works Kapton Bed Thermistor beta=3950[/color]
  124. [color=#7E7E7E]//[/color]
  125. [color=#7E7E7E]//    1k ohm pullup tables - This is not normal, you would have to have changed out your 4.7k for 1k[/color]
  126. [color=#7E7E7E]//                          (but gives greater accuracy and more stable PID)[/color]
  127. [color=#7E7E7E]// 51 is 100k thermistor - EPCOS (1k pullup)[/color]
  128. [color=#7E7E7E]// 52 is 200k thermistor - ATC Semitec 204GT-2 (1k pullup)[/color]
  129. [color=#7E7E7E]// 55 is 100k thermistor - ATC Semitec 104GT-2 (Used in ParCan & J-Head) (1k pullup)[/color]
  130. [color=#7E7E7E]//[/color]
  131. [color=#7E7E7E]// 1047 is Pt1000 with 4k7 pullup[/color]
  132. [color=#7E7E7E]// 1010 is Pt1000 with 1k pullup (non standard)[/color]
  133. [color=#7E7E7E]// 147 is Pt100 with 4k7 pullup[/color]
  134. [color=#7E7E7E]// 110 is Pt100 with 1k pullup (non standard)[/color]
  135.  
  136. #define TEMP_SENSOR_0 5
  137. #define TEMP_SENSOR_1 0
  138. #define TEMP_SENSOR_2 0
  139. #define TEMP_SENSOR_BED 5
  140.  
  141. [color=#7E7E7E]// This makes temp sensor 1 a redundant sensor for sensor 0. If the temperatures difference between these sensors is to high the print will be aborted.[/color]
  142. [color=#7E7E7E]//#define TEMP_SENSOR_1_AS_REDUNDANT[/color]
  143. #define MAX_REDUNDANT_TEMP_SENSOR_DIFF 10
  144.  
  145. [color=#7E7E7E]// Actual temperature must be close to target for this long before M109 returns success[/color]
  146. #define TEMP_RESIDENCY_TIME 10  [color=#7E7E7E]// (seconds)[/color]
  147. #define TEMP_HYSTERESIS 3       [color=#7E7E7E]// (degC) range of +/- temperatures considered "close" to the target one[/color]
  148. #define TEMP_WINDOW     1       [color=#7E7E7E]// (degC) Window around target to start the residency timer x degC early.[/color]
  149.  
  150. [color=#7E7E7E]// The minimal temperature defines the temperature below which the heater will not be enabled It is used[/color]
  151. [color=#7E7E7E]// to check that the wiring to the thermistor is not broken.[/color]
  152. [color=#7E7E7E]// Otherwise this would lead to the heater being powered on all the time.[/color]
  153. #define HEATER_0_MINTEMP 5
  154. #define HEATER_1_MINTEMP 5
  155. #define HEATER_2_MINTEMP 5
  156. #define BED_MINTEMP 5
  157.  
  158. [color=#7E7E7E]// When temperature exceeds max temp, your heater will be switched off.[/color]
  159. [color=#7E7E7E]// This feature exists to protect your hotend from overheating accidentally, but *NOT* from thermistor short/failure![/color]
  160. [color=#7E7E7E]// You should use MINTEMP for thermistor short/failure protection.[/color]
  161. #define HEATER_0_MAXTEMP 275
  162. #define HEATER_1_MAXTEMP 275
  163. #define HEATER_2_MAXTEMP 275
  164. #define BED_MAXTEMP 150
  165.  
  166. [color=#7E7E7E]// If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the[/color]
  167. [color=#7E7E7E]// average current. The value should be an integer and the heat bed will be turned on for 1 interval of[/color]
  168. [color=#7E7E7E]// HEATER_BED_DUTY_CYCLE_DIVIDER intervals.[/color]
  169. [color=#7E7E7E]//#define HEATER_BED_DUTY_CYCLE_DIVIDER 4[/color]
  170.  
  171. [color=#7E7E7E]// If you want the M105 heater power reported in watts, define the BED_WATTS, and (shared for all extruders) EXTRUDER_WATTS[/color]
  172. [color=#7E7E7E]//#define EXTRUDER_WATTS (12.0*12.0/6.7) //  P=I^2/R[/color]
  173. [color=#7E7E7E]//#define BED_WATTS (12.0*12.0/1.1)      // P=I^2/R[/color]
  174.  
  175. [color=#7E7E7E]// PID settings:[/color]
  176. [color=#7E7E7E]// Comment the following line to disable PID and enable bang-bang.[/color]
  177. #define PIDTEMP
  178. #define BANG_MAX 255 [color=#7E7E7E]// limits current to nozzle while in bang-bang mode; 255=full current[/color]
  179. #define PID_MAX 255 [color=#7E7E7E]// limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current[/color]
  180. #ifdef PIDTEMP
  181.   [color=#7E7E7E]//#define PID_DEBUG // Sends debug data to the serial port.[/color]
  182.   [color=#7E7E7E]//#define PID_OPENLOOP 1 // Puts PID in open loop. M104/M140 sets the output power from 0 to PID_MAX[/color]
  183.   #define PID_FUNCTIONAL_RANGE 10 [color=#7E7E7E]// If the temperature difference between the target temperature and the actual temperature[/color]
  184.                                   [color=#7E7E7E]// is more then PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.[/color]
  185.   #define PID_INTEGRAL_DRIVE_MAX 255  [color=#7E7E7E]//limit for the integral term[/color]
  186.   #define K1 0.95 [color=#7E7E7E]//smoothing factor within the PID[/color]
  187.   #define PID_dT ((OVERSAMPLENR * 8.0)/(F_CPU / 64.0 / 256.0)) [color=#7E7E7E]//sampling period of the temperature routine[/color]
  188.  
  189. [color=#7E7E7E]// If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it[/color]
  190. [color=#7E7E7E]// Ultimaker[/color]
  191.     #define  DEFAULT_Kp 22.2
  192.     #define  DEFAULT_Ki 1.08
  193.     #define  DEFAULT_Kd 114
  194.  
  195. [color=#7E7E7E]// MakerGear[/color]
  196. [color=#7E7E7E]//    #define  DEFAULT_Kp 7.0[/color]
  197. [color=#7E7E7E]//    #define  DEFAULT_Ki 0.1[/color]
  198. [color=#7E7E7E]//    #define  DEFAULT_Kd 12[/color]
  199.  
  200. [color=#7E7E7E]// Mendel Parts V9 on 12V[/color]
  201. [color=#7E7E7E]//    #define  DEFAULT_Kp 63.0[/color]
  202. [color=#7E7E7E]//    #define  DEFAULT_Ki 2.25[/color]
  203. [color=#7E7E7E]//    #define  DEFAULT_Kd 440[/color]
  204. #endif [color=#7E7E7E]// PIDTEMP[/color]
  205.  
  206. [color=#7E7E7E]// Bed Temperature Control[/color]
  207. [color=#7E7E7E]// Select PID or bang-bang with PIDTEMPBED. If bang-bang, BED_LIMIT_SWITCHING will enable hysteresis[/color]
  208. [color=#7E7E7E]//[/color]
  209. [color=#7E7E7E]// Uncomment this to enable PID on the bed. It uses the same frequency PWM as the extruder.[/color]
  210. [color=#7E7E7E]// If your PID_dT above is the default, and correct for your hardware/configuration, that means 7.689Hz,[/color]
  211. [color=#7E7E7E]// which is fine for driving a square wave into a resistive load and does not significantly impact you FET heating.[/color]
  212. [color=#7E7E7E]// This also works fine on a Fotek SSR-10DA Solid State Relay into a 250W heater.[/color]
  213. [color=#7E7E7E]// If your configuration is significantly different than this and you don't understand the issues involved, you probably[/color]
  214. [color=#7E7E7E]// shouldn't use bed PID until someone else verifies your hardware works.[/color]
  215. [color=#7E7E7E]// If this is enabled, find your own PID constants below.[/color]
  216. [color=#7E7E7E]//#define PIDTEMPBED[/color]
  217. [color=#7E7E7E]//[/color]
  218. [color=#7E7E7E]//#define BED_LIMIT_SWITCHING[/color]
  219.  
  220. [color=#7E7E7E]// This sets the max power delivered to the bed, and replaces the HEATER_BED_DUTY_CYCLE_DIVIDER option.[/color]
  221. [color=#7E7E7E]// all forms of bed control obey this (PID, bang-bang, bang-bang with hysteresis)[/color]
  222. [color=#7E7E7E]// setting this to anything other than 255 enables a form of PWM to the bed just like HEATER_BED_DUTY_CYCLE_DIVIDER did,[/color]
  223. [color=#7E7E7E]// so you shouldn't use it unless you are OK with PWM on your bed.  (see the comment on enabling PIDTEMPBED)[/color]
  224. #define MAX_BED_POWER 255 [color=#7E7E7E]// limits duty cycle to bed; 255=full current[/color]
  225.  
  226. #ifdef PIDTEMPBED
  227. [color=#7E7E7E]//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)[/color]
  228. [color=#7E7E7E]//from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of .15 (vs .1, 1, 10)[/color]
  229.     #define  DEFAULT_bedKp 10.00
  230.     #define  DEFAULT_bedKi .023
  231.     #define  DEFAULT_bedKd 305.4
  232.  
  233. [color=#7E7E7E]//120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)[/color]
  234. [color=#7E7E7E]//from pidautotune[/color]
  235. [color=#7E7E7E]//    #define  DEFAULT_bedKp 97.1[/color]
  236. [color=#7E7E7E]//    #define  DEFAULT_bedKi 1.41[/color]
  237. [color=#7E7E7E]//    #define  DEFAULT_bedKd 1675.16[/color]
  238.  
  239. [color=#7E7E7E]// FIND YOUR OWN: "M303 E-1 C8 S90" to run autotune on the bed at 90 degreesC for 8 cycles.[/color]
  240. #endif [color=#7E7E7E]// PIDTEMPBED[/color]
  241.  
  242.  
  243.  
  244. [color=#7E7E7E]//this prevents dangerous Extruder moves, i.e. if the temperature is under the limit[/color]
  245. [color=#7E7E7E]//can be software-disabled for whatever purposes by[/color]
  246. #define PREVENT_DANGEROUS_EXTRUDE
  247. [color=#7E7E7E]//if PREVENT_DANGEROUS_EXTRUDE is on, you can still disable (uncomment) very long bits of extrusion separately.[/color]
  248. #define PREVENT_LENGTHY_EXTRUDE
  249.  
  250. #define EXTRUDE_MINTEMP 170
  251. #define EXTRUDE_MAXLENGTH (X_MAX_LENGTH+Y_MAX_LENGTH) [color=#7E7E7E]//prevent extrusion of very large distances.[/color]
  252.  
  253. [color=#7E7E7E]//===========================================================================[/color]
  254. [color=#7E7E7E]//=============================Mechanical Settings===========================[/color]
  255. [color=#7E7E7E]//===========================================================================[/color]
  256.  
  257. [color=#7E7E7E]// Uncomment the following line to enable CoreXY kinematics[/color]
  258. [color=#7E7E7E]// #define COREXY[/color]
  259.  
  260. [color=#7E7E7E]// coarse Endstop Settings[/color]
  261. #define ENDSTOPPULLUPS [color=#7E7E7E]// Comment this out (using // at the start of the line) to disable the endstop pullup resistors[/color]
  262.  
  263. #ifndef ENDSTOPPULLUPS
  264.   [color=#7E7E7E]// fine endstop settings: Individual pullups. will be ignored if ENDSTOPPULLUPS is defined[/color]
  265.   [color=#7E7E7E]// #define ENDSTOPPULLUP_XMAX[/color]
  266.   [color=#7E7E7E]// #define ENDSTOPPULLUP_YMAX[/color]
  267.   [color=#7E7E7E]// #define ENDSTOPPULLUP_ZMAX[/color]
  268.   [color=#7E7E7E]// #define ENDSTOPPULLUP_XMIN[/color]
  269.   [color=#7E7E7E]// #define ENDSTOPPULLUP_YMIN[/color]
  270.   [color=#7E7E7E]// #define ENDSTOPPULLUP_ZMIN[/color]
  271. #endif
  272.  
  273. #ifdef ENDSTOPPULLUPS
  274.   #define ENDSTOPPULLUP_XMAX
  275.   #define ENDSTOPPULLUP_YMAX
  276.   #define ENDSTOPPULLUP_ZMAX
  277.   #define ENDSTOPPULLUP_XMIN
  278.   #define ENDSTOPPULLUP_YMIN
  279.   #define ENDSTOPPULLUP_ZMIN
  280. #endif
  281.  
  282. [color=#7E7E7E]// The pullups are needed if you directly connect a mechanical endswitch between the signal and ground pins.[/color]
  283. [color=#CC6600]const[/color] bool X_MIN_ENDSTOP_INVERTING = [color=#CC6600]false[/color]; [color=#7E7E7E]// set to true to invert the logic of the endstop.[/color]
  284. [color=#CC6600]const[/color] bool Y_MIN_ENDSTOP_INVERTING = [color=#CC6600]false[/color]; [color=#7E7E7E]// set to true to invert the logic of the endstop.[/color]
  285. [color=#CC6600]const[/color] bool Z_MIN_ENDSTOP_INVERTING = [color=#CC6600]false[/color]; [color=#7E7E7E]// set to true to invert the logic of the endstop.[/color]
  286. [color=#CC6600]const[/color] bool X_MAX_ENDSTOP_INVERTING = [color=#CC6600]false[/color]; [color=#7E7E7E]// set to true to invert the logic of the endstop.[/color]
  287. [color=#CC6600]const[/color] bool Y_MAX_ENDSTOP_INVERTING = [color=#CC6600]false[/color]; [color=#7E7E7E]// set to true to invert the logic of the endstop.[/color]
  288. [color=#CC6600]const[/color] bool Z_MAX_ENDSTOP_INVERTING = [color=#CC6600]false[/color]; [color=#7E7E7E]// set to true to invert the logic of the endstop.[/color]
  289. #define DISABLE_MAX_ENDSTOPS
  290. [color=#7E7E7E]//#define DISABLE_MIN_ENDSTOPS[/color]
  291.  
  292. [color=#7E7E7E]// Disable max endstops for compatibility with endstop checking routine[/color]
  293. #if defined(COREXY) && !defined(DISABLE_MAX_ENDSTOPS)
  294.   #define DISABLE_MAX_ENDSTOPS
  295. #endif
  296.  
  297. [color=#7E7E7E]// For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1[/color]
  298. #define X_ENABLE_ON 0
  299. #define Y_ENABLE_ON 0
  300. #define Z_ENABLE_ON 0
  301. #define E_ENABLE_ON 0 [color=#7E7E7E]// For all extruders[/color]
  302.  
  303. [color=#7E7E7E]// Disables axis when it's not being used.[/color]
  304. #define DISABLE_X [color=#CC6600]false[/color]
  305. #define DISABLE_Y [color=#CC6600]false[/color]
  306. #define DISABLE_Z [color=#CC6600]false[/color]
  307. #define DISABLE_E [color=#CC6600]false[/color] [color=#7E7E7E]// For all extruders[/color]
  308.  
  309. #define INVERT_X_DIR [color=#CC6600]false[/color] [color=#7E7E7E]// for Mendel set to false, for Orca set to true[/color]
  310. #define INVERT_Y_DIR [color=#CC6600]false[/color] [color=#7E7E7E]// for Mendel set to true, for Orca set to false[/color]
  311. #define INVERT_Z_DIR [color=#CC6600]false[/color] [color=#7E7E7E]// for Mendel set to false, for Orca set to true[/color]
  312. #define INVERT_E0_DIR [color=#CC6600]true[/color] [color=#7E7E7E]// for direct drive extruder v9 set to true, for geared extruder set to false[/color]
  313. #define INVERT_E1_DIR [color=#CC6600]false[/color] [color=#7E7E7E]// for direct drive extruder v9 set to true, for geared extruder set to false[/color]
  314. #define INVERT_E2_DIR [color=#CC6600]false[/color] [color=#7E7E7E]// for direct drive extruder v9 set to true, for geared extruder set to false[/color]
  315.  
  316. [color=#7E7E7E]// ENDSTOP SETTINGS:[/color]
  317. [color=#7E7E7E]// Sets direction of endstops when homing; 1=MAX, -1=MIN[/color]
  318. #define X_HOME_DIR -1
  319. #define Y_HOME_DIR -1
  320. #define Z_HOME_DIR -1
  321.  
  322. #define min_software_endstops [color=#CC6600]true[/color] [color=#7E7E7E]// If true, axis won't move to coordinates less than HOME_POS.[/color]
  323. #define max_software_endstops [color=#CC6600]true[/color] [color=#7E7E7E]// If true, axis won't move to coordinates greater than the defined lengths below.[/color]
  324.  
  325. [color=#7E7E7E]// Travel limits after homing[/color]
  326. #define X_MAX_POS 200
  327. #define X_MIN_POS 0
  328. #define Y_MAX_POS 182
  329. #define Y_MIN_POS 0
  330. #define Z_MAX_POS 200
  331. #define Z_MIN_POS 0
  332.  
  333. #define X_MAX_LENGTH (X_MAX_POS - X_MIN_POS)
  334. #define Y_MAX_LENGTH (Y_MAX_POS - Y_MIN_POS)
  335. #define Z_MAX_LENGTH (Z_MAX_POS - Z_MIN_POS)
  336. [color=#7E7E7E]//============================= Bed Auto Leveling ===========================[/color]
  337.  
  338. #define ENABLE_AUTO_BED_LEVELING [color=#7E7E7E]// Delete the comment to enable (remove // at the start of the line)[/color]
  339.  
  340. #ifdef ENABLE_AUTO_BED_LEVELING
  341.  
  342. [color=#7E7E7E]// There are 2 different ways to pick the X and Y locations to probe:[/color]
  343.  
  344. [color=#7E7E7E]//  - "grid" mode[/color]
  345. [color=#7E7E7E]//    Probe every point in a rectangular grid[/color]
  346. [color=#7E7E7E]//    You must specify the rectangle, and the density of sample points[/color]
  347. [color=#7E7E7E]//    This mode is preferred because there are more measurements.[/color]
  348. [color=#7E7E7E]//    It used to be called ACCURATE_BED_LEVELING but "grid" is more descriptive[/color]
  349.  
  350. [color=#7E7E7E]//  - "3-point" mode[/color]
  351. [color=#7E7E7E]//    Probe 3 arbitrary points on the bed (that aren't colinear)[/color]
  352. [color=#7E7E7E]//    You must specify the X & Y coordinates of all 3 points[/color]
  353.  
  354.   #define AUTO_BED_LEVELING_GRID
  355.   [color=#7E7E7E]// with AUTO_BED_LEVELING_GRID, the bed is sampled in a[/color]
  356.   [color=#7E7E7E]// AUTO_BED_LEVELING_GRID_POINTSxAUTO_BED_LEVELING_GRID_POINTS grid[/color]
  357.   [color=#7E7E7E]// and least squares solution is calculated[/color]
  358.   [color=#7E7E7E]// Note: this feature occupies 10'206 byte[/color]
  359.   #ifdef AUTO_BED_LEVELING_GRID
  360.   
  361.  
  362.     [color=#7E7E7E]// set the rectangle in which to probe[/color]
  363.     #define LEFT_PROBE_BED_POSITION 25
  364.     #define RIGHT_PROBE_BED_POSITION 150
  365.     #define BACK_PROBE_BED_POSITION 150
  366.     #define FRONT_PROBE_BED_POSITION 25
  367.  
  368.      [color=#7E7E7E]// set the number of grid points per dimension[/color]
  369.      [color=#7E7E7E]// I wouldn't see a reason to go above 3 (=9 probing points on the bed)[/color]
  370.     #define AUTO_BED_LEVELING_GRID_POINTS 3
  371.  
  372.   #else  [color=#7E7E7E]// not AUTO_BED_LEVELING_GRID[/color]
  373.     [color=#7E7E7E]// with no grid, just probe 3 arbitrary points. A simple cross-product[/color]
  374.     [color=#7E7E7E]// is used to esimate the plane of the print bed[/color]
  375.  
  376.       #define ABL_PROBE_PT_1_X 30
  377.       #define ABL_PROBE_PT_1_Y 30
  378.       #define ABL_PROBE_PT_2_X 20
  379.       #define ABL_PROBE_PT_2_Y 170
  380.       #define ABL_PROBE_PT_3_X 100
  381.       #define ABL_PROBE_PT_3_Y 160
  382.       
  383.  
  384.   #endif [color=#7E7E7E]// AUTO_BED_LEVELING_GRID[/color]
  385.  
  386.  
  387.   [color=#7E7E7E]// these are the offsets to the probe relative to the extruder tip (Hotend - Probe)[/color]
  388.   #define X_PROBE_OFFSET_FROM_EXTRUDER -3.0
  389.   #define Y_PROBE_OFFSET_FROM_EXTRUDER 30.6
  390.   #define Z_PROBE_OFFSET_FROM_EXTRUDER -7.40
  391.  
  392.   #define Z_RAISE_BEFORE_HOMING 8       [color=#7E7E7E]// (in mm) Raise Z before homing (G28) for Probe Clearance.[/color]
  393.                                         [color=#7E7E7E]// Be sure you have this distance over your Z_MAX_POS in case[/color]
  394.  
  395.   #define XY_TRAVEL_SPEED 8000         [color=#7E7E7E]// X and Y axis travel speed between probes, in mm/min[/color]
  396.  
  397.   #define Z_RAISE_BEFORE_PROBING 8    [color=#7E7E7E]//How much the extruder will be raised before traveling to the first probing point.[/color]
  398.   #define Z_RAISE_BETWEEN_PROBINGS 3  [color=#7E7E7E]//How much the extruder will be raised when traveling from between next probing points[/color]
  399.  
  400.  
  401.   [color=#7E7E7E]//If defined, the Probe servo will be turned on only during movement and then turned off to avoid jerk[/color]
  402.   [color=#7E7E7E]//The value is the delay to turn the servo off after powered on - depends on the servo speed; 300ms is good value, but you can try lower it.[/color]
  403.   [color=#7E7E7E]// You MUST HAVE the SERVO_ENDSTOPS defined to use here a value higher than zero otherwise your code will not compile.[/color]
  404.  
  405. #define PROBE_SERVO_DEACTIVATION_DELAY 300
  406.  
  407.  
  408. [color=#7E7E7E]//If you have enabled the Bed Auto Leveling and are using the same Z Probe for Z Homing,[/color]
  409. [color=#7E7E7E]//it is highly recommended you let this Z_SAFE_HOMING enabled!!![/color]
  410.  
  411.   #define Z_SAFE_HOMING   [color=#7E7E7E]// This feature is meant to avoid Z homing with probe outside the bed area.[/color]
  412.                           [color=#7E7E7E]// When defined, it will:[/color]
  413.                           [color=#7E7E7E]// - Allow Z homing only after X and Y homing AND stepper drivers still enabled[/color]
  414.                           [color=#7E7E7E]// - If stepper drivers timeout, it will need X and Y homing again before Z homing[/color]
  415.                           [color=#7E7E7E]// - Position the probe in a defined XY point before Z Homing when homing all axis (G28)[/color]
  416.                           [color=#7E7E7E]// - Block Z homing only when the probe is outside bed area.[/color]
  417.  
  418.   #ifdef Z_SAFE_HOMING
  419.  
  420.     #define Z_SAFE_HOMING_X_POINT (X_MAX_LENGTH/2)    [color=#7E7E7E]// X point for Z homing when homing all axis (G28)[/color]
  421.     #define Z_SAFE_HOMING_Y_POINT (Y_MAX_LENGTH/2)    [color=#7E7E7E]// Y point for Z homing when homing all axis (G28)[/color]
  422.  
  423.   #endif
  424.  
  425. #endif [color=#7E7E7E]// ENABLE_AUTO_BED_LEVELING[/color]
  426.  
  427.  
  428. [color=#7E7E7E]// The position of the homing switches[/color]
  429. [color=#7E7E7E]//#define MANUAL_HOME_POSITIONS  // If defined, MANUAL_*_HOME_POS below will be used[/color]
  430. [color=#7E7E7E]//#define BED_CENTER_AT_0_0  // If defined, the center of the bed is at (X=0, Y=0)[/color]
  431.  
  432. [color=#7E7E7E]//Manual homing switch locations:[/color]
  433. [color=#7E7E7E]// For deltabots this means top and center of the Cartesian print volume.[/color]
  434. #define MANUAL_X_HOME_POS 0
  435. #define MANUAL_Y_HOME_POS 0
  436. #define MANUAL_Z_HOME_POS 0
  437. [color=#7E7E7E]//#define MANUAL_Z_HOME_POS 402 // For delta: Distance between nozzle and print surface after homing.[/color]
  438.  
  439. [color=#7E7E7E]//// MOVEMENT SETTINGS[/color]
  440. #define NUM_AXIS 4 [color=#7E7E7E]// The axis order in all axis related arrays is X, Y, Z, E[/color]
  441. #define HOMING_FEEDRATE {60*40, 60*40, 6*40, 0}  [color=#7E7E7E]// set the homing speeds (mm/min)[/color]
  442.  
  443. [color=#7E7E7E]// default settings[/color]
  444.  
  445. #define DEFAULT_AXIS_STEPS_PER_UNIT   {100,100,4000,775}  [color=#7E7E7E]// default steps per unit for Ultimaker[/color]
  446. #define DEFAULT_MAX_FEEDRATE          {500, 500, 2, 25}    [color=#7E7E7E]// (mm/sec)[/color]
  447. #define DEFAULT_MAX_ACCELERATION      {5000,5000,20,5000}    [color=#7E7E7E]// X, Y, Z, E maximum start speed for accelerated moves. E default values are good for Skeinforge 40+, for older versions raise them a lot.[/color]
  448.  
  449. #define DEFAULT_ACCELERATION          3000    [color=#7E7E7E]// X, Y, Z and E max acceleration in mm/s^2 for printing moves[/color]
  450. #define DEFAULT_RETRACT_ACCELERATION  3000   [color=#7E7E7E]// X, Y, Z and E max acceleration in mm/s^2 for retracts[/color]
  451.  
  452. [color=#7E7E7E]// Offset of the extruders (uncomment if using more than one and relying on firmware to position when changing).[/color]
  453. [color=#7E7E7E]// The offset has to be X=0, Y=0 for the extruder 0 hotend (default extruder).[/color]
  454. [color=#7E7E7E]// For the other hotends it is their distance from the extruder 0 hotend.[/color]
  455. [color=#7E7E7E]// #define EXTRUDER_OFFSET_X {0.0, 20.00} // (in mm) for each extruder, offset of the hotend on the X axis[/color]
  456. [color=#7E7E7E]// #define EXTRUDER_OFFSET_Y {0.0, 5.00}  // (in mm) for each extruder, offset of the hotend on the Y axis[/color]
  457.  
  458. [color=#7E7E7E]// The speed change that does not require acceleration (i.e. the software might assume it can be done instantaneously)[/color]
  459. #define DEFAULT_XYJERK                20.0    [color=#7E7E7E]// (mm/sec)[/color]
  460. #define DEFAULT_ZJERK                 0.4     [color=#7E7E7E]// (mm/sec)[/color]
  461. #define DEFAULT_EJERK                 5.0    [color=#7E7E7E]// (mm/sec)[/color]
  462.  
  463. [color=#7E7E7E]//===========================================================================[/color]
  464. [color=#7E7E7E]//=============================Additional Features===========================[/color]
  465. [color=#7E7E7E]//===========================================================================[/color]
  466.  
  467. [color=#7E7E7E]// Custom M code points[/color]
  468. #define CUSTOM_M_CODES
  469. #ifdef CUSTOM_M_CODES
  470.   #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
  471.   #define Z_PROBE_OFFSET_RANGE_MIN -15
  472.   #define Z_PROBE_OFFSET_RANGE_MAX -5
  473. #endif
  474.  
  475.  
  476. [color=#7E7E7E]// EEPROM[/color]
  477. [color=#7E7E7E]// The microcontroller can store settings in the EEPROM, e.g. max velocity...[/color]
  478. [color=#7E7E7E]// M500 - stores parameters in EEPROM[/color]
  479. [color=#7E7E7E]// M501 - reads parameters from EEPROM (if you need reset them after you changed them temporarily).[/color]
  480. [color=#7E7E7E]// M502 - reverts to the default "factory settings".  You still need to store them in EEPROM afterwards if you want to.[/color]
  481. [color=#7E7E7E]//define this to enable EEPROM support[/color]
  482. [color=#7E7E7E]//#define EEPROM_SETTINGS[/color]
  483. [color=#7E7E7E]//to disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:[/color]
  484. [color=#7E7E7E]// please keep turned on if you can.[/color]
  485. [color=#7E7E7E]//#define EEPROM_CHITCHAT[/color]
  486.  
  487. [color=#7E7E7E]// Preheat Constants[/color]
  488. #define PLA_PREHEAT_HOTEND_TEMP 215
  489. #define PLA_PREHEAT_HPB_TEMP 60
  490. #define PLA_PREHEAT_FAN_SPEED 255   [color=#7E7E7E]// Insert Value between 0 and 255[/color]
  491.  
  492. #define ABS_PREHEAT_HOTEND_TEMP 230
  493. #define ABS_PREHEAT_HPB_TEMP 98
  494. #define ABS_PREHEAT_FAN_SPEED 0   [color=#7E7E7E]// Insert Value between 0 and 255[/color]
  495.  
  496. [color=#7E7E7E]//LCD and SD support[/color]
  497. [color=#7E7E7E]//#define ULTRA_LCD  //general LCD support, also 16x2[/color]
  498. [color=#7E7E7E]//#define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)[/color]
  499. [color=#7E7E7E]//#define SDSUPPORT // Enable SD Card Support in Hardware Console[/color]
  500. [color=#7E7E7E]//#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)[/color]
  501. [color=#7E7E7E]//#define SD_CHECK_AND_RETRY // Use CRC checks and retries on the SD communication[/color]
  502. [color=#7E7E7E]//#define ENCODER_PULSES_PER_STEP 1 // Increase if you have a high resolution encoder[/color]
  503. [color=#7E7E7E]//#define ENCODER_STEPS_PER_MENU_ITEM 5 // Set according to ENCODER_PULSES_PER_STEP or your liking[/color]
  504. [color=#7E7E7E]//#define ULTIMAKERCONTROLLER //as available from the Ultimaker online store.[/color]
  505. [color=#7E7E7E]//#define ULTIPANEL  //the UltiPanel as on Thingiverse[/color]
  506. [color=#7E7E7E]//#define LCD_FEEDBACK_FREQUENCY_HZ 1000 // this is the tone frequency the buzzer plays when on UI feedback. ie Screen Click[/color]
  507. [color=#7E7E7E]//#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100 // the duration the buzzer plays the UI feedback sound. ie Screen Click[/color]
  508.  
  509. [color=#7E7E7E]// The MaKr3d Makr-Panel with graphic controller and SD support[/color]
  510. [color=#7E7E7E]// http://reprap.org/wiki/MaKr3d_MaKrPanel[/color]
  511. [color=#7E7E7E]//#define MAKRPANEL[/color]
  512.  
  513. [color=#7E7E7E]// The RepRapDiscount Smart Controller (white PCB)[/color]
  514. [color=#7E7E7E]// http://reprap.org/wiki/RepRapDiscount_Smart_Controller[/color]
  515. [color=#7E7E7E]//#define REPRAP_DISCOUNT_SMART_CONTROLLER[/color]
  516.  
  517. [color=#7E7E7E]// The GADGETS3D G3D LCD/SD Controller (blue PCB)[/color]
  518. [color=#7E7E7E]// http://reprap.org/wiki/RAMPS_1.3/1.4_GADGETS3D_Shield_with_Panel[/color]
  519. [color=#7E7E7E]//#define G3D_PANEL[/color]
  520.  
  521. [color=#7E7E7E]// The RepRapDiscount FULL GRAPHIC Smart Controller (quadratic white PCB)[/color]
  522. [color=#7E7E7E]// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller[/color]
  523. [color=#7E7E7E]//[/color]
  524. [color=#7E7E7E]// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib[/color]
  525. [color=#7E7E7E]//#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER[/color]
  526.  
  527. [color=#7E7E7E]// The RepRapWorld REPRAPWORLD_KEYPAD v1.1[/color]
  528. [color=#7E7E7E]// http://reprapworld.com/?products_details&products_id=202&cPath=1591_1626[/color]
  529. [color=#7E7E7E]//#define REPRAPWORLD_KEYPAD[/color]
  530. [color=#7E7E7E]//#define REPRAPWORLD_KEYPAD_MOVE_STEP 10.0 // how much should be moved when a key is pressed, eg 10.0 means 10mm per click[/color]
  531.  
  532. [color=#7E7E7E]// The Elefu RA Board Control Panel[/color]
  533. [color=#7E7E7E]// http://www.elefu.com/index.php?route=product/product&product_id=53[/color]
  534. [color=#7E7E7E]// REMEMBER TO INSTALL LiquidCrystal_I2C.h in your ARUDINO library folder: https://github.com/kiyoshigawa/LiquidCrystal_I2C[/color]
  535. [color=#7E7E7E]//#define RA_CONTROL_PANEL[/color]
  536.  
  537. [color=#7E7E7E]//automatic expansion[/color]
  538. #if defined (MAKRPANEL)
  539.  #define DOGLCD
  540.  #define SDSUPPORT
  541.  #define ULTIPANEL
  542.  #define NEWPANEL
  543.  #define DEFAULT_LCD_CONTRAST 17
  544. #endif
  545.  
  546. #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
  547.  #define DOGLCD
  548.  #define U8GLIB_ST7920
  549.  #define REPRAP_DISCOUNT_SMART_CONTROLLER
  550. #endif
  551.  
  552. #if defined(ULTIMAKERCONTROLLER) || defined(REPRAP_DISCOUNT_SMART_CONTROLLER) || defined(G3D_PANEL)
  553.  #define ULTIPANEL
  554.  #define NEWPANEL
  555. #endif
  556.  
  557. #if defined(REPRAPWORLD_KEYPAD)
  558.   #define NEWPANEL
  559.   #define ULTIPANEL
  560. #endif
  561. #if defined(RA_CONTROL_PANEL)
  562.  #define ULTIPANEL
  563.  #define NEWPANEL
  564.  #define LCD_I2C_TYPE_PCA8574
  565.  #define LCD_I2C_ADDRESS 0x27   [color=#7E7E7E]// I2C Address of the port expander[/color]
  566. #endif
  567.  
  568. [color=#7E7E7E]//I2C PANELS[/color]
  569.  
  570. [color=#7E7E7E]//#define LCD_I2C_SAINSMART_YWROBOT[/color]
  571. #ifdef LCD_I2C_SAINSMART_YWROBOT
  572.   [color=#7E7E7E]// This uses the LiquidCrystal_I2C library ( https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home )[/color]
  573.   [color=#7E7E7E]// Make sure it is placed in the Arduino libraries directory.[/color]
  574.   #define LCD_I2C_TYPE_PCF8575
  575.   #define LCD_I2C_ADDRESS 0x27   [color=#7E7E7E]// I2C Address of the port expander[/color]
  576.   #define NEWPANEL
  577.   #define ULTIPANEL
  578. #endif
  579.  
  580. [color=#7E7E7E]// PANELOLU2 LCD with status LEDs, separate encoder and click inputs[/color]
  581. #define LCD_I2C_PANELOLU2
  582. #ifdef LCD_I2C_PANELOLU2
  583.   [color=#7E7E7E]// This uses the LiquidTWI2 library v1.2.3 or later ( https://github.com/lincomatic/LiquidTWI2 )[/color]
  584.   [color=#7E7E7E]// Make sure the LiquidTWI2 directory is placed in the Arduino or Sketchbook libraries subdirectory.[/color]
  585.   [color=#7E7E7E]// (v1.2.3 no longer requires you to define PANELOLU in the LiquidTWI2.h library header file)[/color]
  586.   [color=#7E7E7E]// Note: The PANELOLU2 encoder click input can either be directly connected to a pin[/color]
  587.   [color=#7E7E7E]// (if BTN_ENC defined to != -1) or read through I2C (when BTN_ENC == -1).[/color]
  588.   #define LCD_I2C_TYPE_MCP23017
  589.   #define LCD_I2C_ADDRESS 0x20 [color=#7E7E7E]// I2C Address of the port expander[/color]
  590.   #define LCD_USE_I2C_BUZZER [color=#7E7E7E]//comment out to disable buzzer on LCD[/color]
  591.   #define NEWPANEL
  592.   #define ULTIPANEL
  593.  
  594.   #ifndef ENCODER_PULSES_PER_STEP
  595. #define ENCODER_PULSES_PER_STEP 4
  596.   #endif
  597.  
  598.   #ifndef ENCODER_STEPS_PER_MENU_ITEM
  599. #define ENCODER_STEPS_PER_MENU_ITEM 1
  600.   #endif
  601.  
  602.  
  603.   #ifdef LCD_USE_I2C_BUZZER
  604. #define LCD_FEEDBACK_FREQUENCY_HZ 1000
  605. #define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100
  606.   #endif
  607.  
  608. #endif
  609.  
  610. [color=#7E7E7E]// Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs[/color]
  611. [color=#7E7E7E]//#define LCD_I2C_VIKI[/color]
  612. #ifdef LCD_I2C_VIKI
  613.   [color=#7E7E7E]// This uses the LiquidTWI2 library v1.2.3 or later ( https://github.com/lincomatic/LiquidTWI2 )[/color]
  614.   [color=#7E7E7E]// Make sure the LiquidTWI2 directory is placed in the Arduino or Sketchbook libraries subdirectory.[/color]
  615.   [color=#7E7E7E]// Note: The pause/stop/resume LCD button pin should be connected to the Arduino[/color]
  616.   [color=#7E7E7E]// BTN_ENC pin (or set BTN_ENC to -1 if not used)[/color]
  617.   #define LCD_I2C_TYPE_MCP23017
  618.   #define LCD_I2C_ADDRESS 0x20 [color=#7E7E7E]// I2C Address of the port expander[/color]
  619.   #define LCD_USE_I2C_BUZZER [color=#7E7E7E]//comment out to disable buzzer on LCD (requires LiquidTWI2 v1.2.3 or later)[/color]
  620.   #define NEWPANEL
  621.   #define ULTIPANEL
  622. #endif
  623.  
  624. [color=#7E7E7E]// Shift register panels[/color]
  625. [color=#7E7E7E]// ---------------------[/color]
  626. [color=#7E7E7E]// 2 wire Non-latching LCD SR from:[/color]
  627. [color=#7E7E7E]// https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection[/color]
  628. [color=#7E7E7E]//#define SR_LCD[/color]
  629. #ifdef SR_LCD
  630.    #define SR_LCD_2W_NL    [color=#7E7E7E]// Non latching 2 wire shift register[/color]
  631.    [color=#7E7E7E]//#define NEWPANEL[/color]
  632. #endif
  633.  
  634.  
  635. #ifdef ULTIPANEL
  636. [color=#7E7E7E]//  #define NEWPANEL  //enable this if you have a click-encoder panel[/color]
  637.   #define SDSUPPORT
  638.   #define ULTRA_LCD
  639.   #ifdef DOGLCD [color=#7E7E7E]// Change number of lines to match the DOG graphic display[/color]
  640.     #define LCD_WIDTH 20
  641.     #define LCD_HEIGHT 5
  642.   #else
  643.     #define LCD_WIDTH 20
  644.     #define LCD_HEIGHT 4
  645.   #endif
  646. #else [color=#7E7E7E]//no panel but just LCD[/color]
  647.   #ifdef ULTRA_LCD
  648.   #ifdef DOGLCD [color=#7E7E7E]// Change number of lines to match the 128x64 graphics display[/color]
  649.     #define LCD_WIDTH 20
  650.     #define LCD_HEIGHT 5
  651.   #else
  652.     #define LCD_WIDTH 16
  653.     #define LCD_HEIGHT 2
  654.   #endif
  655.   #endif
  656. #endif
  657.  
  658. [color=#7E7E7E]// default LCD contrast for dogm-like LCD displays[/color]
  659. #ifdef DOGLCD
  660. # ifndef DEFAULT_LCD_CONTRAST
  661. #  define DEFAULT_LCD_CONTRAST 32
  662. # endif
  663. #endif
  664.  
  665. [color=#7E7E7E]// Increase the FAN pwm frequency. Removes the PWM noise but increases heating in the FET/Arduino[/color]
  666. [color=#7E7E7E]//#define FAST_PWM_FAN[/color]
  667.  
  668. [color=#7E7E7E]// Temperature status LEDs that display the hotend and bet temperature.[/color]
  669. [color=#7E7E7E]// If all hotends and bed temperature and temperature setpoint are < 54C then the BLUE led is on.[/color]
  670. [color=#7E7E7E]// Otherwise the RED led is on. There is 1C hysteresis.[/color]
  671. [color=#7E7E7E]//#define TEMP_STAT_LEDS[/color]
  672.  
  673. [color=#7E7E7E]// Use software PWM to drive the fan, as for the heaters. This uses a very low frequency[/color]
  674. [color=#7E7E7E]// which is not ass annoying as with the hardware PWM. On the other hand, if this frequency[/color]
  675. [color=#7E7E7E]// is too low, you should also increment SOFT_PWM_SCALE.[/color]
  676. [color=#7E7E7E]//#define FAN_SOFT_PWM[/color]
  677.  
  678. [color=#7E7E7E]// Incrementing this by 1 will double the software PWM frequency,[/color]
  679. [color=#7E7E7E]// affecting heaters, and the fan if FAN_SOFT_PWM is enabled.[/color]
  680. [color=#7E7E7E]// However, control resolution will be halved for each increment;[/color]
  681. [color=#7E7E7E]// at zero value, there are 128 effective control positions.[/color]
  682. #define SOFT_PWM_SCALE 0
  683.  
  684. [color=#7E7E7E]// M240  Triggers a camera by emulating a Canon RC-1 Remote[/color]
  685. [color=#7E7E7E]// Data from: http://www.doc-diy.net/photo/rc-1_hacked/[/color]
  686. [color=#7E7E7E]// #define PHOTOGRAPH_PIN     23[/color]
  687.  
  688. [color=#7E7E7E]// SF send wrong arc g-codes when using Arc Point as fillet procedure[/color]
  689. [color=#7E7E7E]//#define SF_ARC_FIX[/color]
  690.  
  691. [color=#7E7E7E]// Support for the BariCUDA Paste Extruder.[/color]
  692. [color=#7E7E7E]//#define BARICUDA[/color]
  693.  
  694. [color=#7E7E7E]//define BlinkM/CyzRgb Support[/color]
  695. [color=#7E7E7E]//#define BLINKM[/color]
  696.  
  697. [color=#7E7E7E]/*********************************************************************\[/color]
  698. [color=#7E7E7E]* R/C SERVO support[/color]
  699. [color=#7E7E7E]* Sponsored by TrinityLabs, Reworked by codexmas[/color]
  700. [color=#7E7E7E]**********************************************************************/[/color]
  701.  
  702. [color=#7E7E7E]// Number of servos[/color]
  703. [color=#7E7E7E]//[/color]
  704. [color=#7E7E7E]// If you select a configuration below, this will receive a default value and does not need to be set manually[/color]
  705. [color=#7E7E7E]// set it manually if you have more servos than extruders and wish to manually control some[/color]
  706. [color=#7E7E7E]// leaving it undefined or defining as 0 will disable the servo subsystem[/color]
  707. [color=#7E7E7E]// If unsure, leave commented / disabled[/color]
  708. [color=#7E7E7E]//[/color]
  709. #define NUM_SERVOS 1 [color=#7E7E7E]// Servo index starts with 0 for M280 command[/color]
  710.  
  711. [color=#7E7E7E]// Servo Endstops[/color]
  712. [color=#7E7E7E]//[/color]
  713. [color=#7E7E7E]// This allows for servo actuated endstops, primary usage is for the Z Axis to eliminate calibration or bed height changes.[/color]
  714. [color=#7E7E7E]// Use M206 command to correct for switch height offset to actual nozzle height. Store that setting with M500.[/color]
  715. [color=#7E7E7E]//[/color]
  716. #define SERVO_ENDSTOPS {-1, -1, 0} [color=#7E7E7E]// Servo index for X, Y, Z. Disable with -1[/color]
  717. #define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 85,0} [color=#7E7E7E]// X,Y,Z Axis Extend and Retract angles[/color]
  718.  
  719. #include [color=#006699]"Configuration_adv.h"[/color]
  720. #include [color=#006699]"thermistortables.h"[/color]
  721.  
  722. #endif [color=#7E7E7E]//__CONFIGURATION_H[/color]
  723.  
  724. [/quote]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement