Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.12 KB | None | 0 0
  1. MK4duo Firmware for 3D Printer, Laser and CNC
  2. *
  3. * Based on Marlin, Sprinter and grbl
  4. * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
  5. * Copyright (C) 2013 Alberto Cotronei @MagoKimbra
  6. *
  7. * This program is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation, either version 3 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. *
  20. */
  21.  
  22. /**
  23. * Configuration_Pins.h
  24. *
  25. * This configuration file contains all Pins.
  26. *
  27. */
  28.  
  29. #ifndef _CONFIGURATION_PINS_H_
  30. #define _CONFIGURATION_PINS_H_
  31.  
  32. //=================================== BASIC ==================================
  33.  
  34. // X axis pins
  35. #define X_STEP_PIN ORIG_X_STEP_PIN
  36. #define X_DIR_PIN ORIG_X_DIR_PIN
  37. #define X_ENABLE_PIN ORIG_X_ENABLE_PIN
  38. #define X_CS_PIN ORIG_X_CS_PIN
  39.  
  40. // X2 axis pins
  41. #if ENABLED(DUAL_X_CARRIAGE) || ENABLED(X_TWO_STEPPER)
  42. #define X2_STEP_PIN ORIG_E1_STEP_PIN
  43. #define X2_DIR_PIN ORIG_E1_DIR_PIN
  44. #define X2_ENABLE_PIN ORIG_E1_ENABLE_PIN
  45. #define X2_CS_PIN ORIG_E1_CS_PIN
  46. #endif
  47.  
  48. // Y axis pins
  49. #define Y_STEP_PIN ORIG_Y_STEP_PIN
  50. #define Y_DIR_PIN ORIG_Y_DIR_PIN
  51. #define Y_ENABLE_PIN ORIG_Y_ENABLE_PIN
  52. #define Y_CS_PIN ORIG_Y_CS_PIN
  53.  
  54. // Y2 axis pins
  55. #if ENABLED(Y_TWO_STEPPER)
  56. #define Y2_STEP_PIN ORIG_E1_STEP_PIN
  57. #define Y2_DIR_PIN ORIG_E1_DIR_PIN
  58. #define Y2_ENABLE_PIN ORIG_E1_ENABLE_PIN
  59. #define Y2_CS_PIN ORIG_E1_CS_PIN
  60. #endif
  61.  
  62. // Z axis pins
  63. #define Z_STEP_PIN ORIG_Z_STEP_PIN
  64. #define Z_DIR_PIN ORIG_Z_DIR_PIN
  65. #define Z_ENABLE_PIN ORIG_Z_ENABLE_PIN
  66. #define Z_CS_PIN ORIG_Z_CS_PIN
  67.  
  68. // Z2 axis pins
  69. #if ENABLED(Z_TWO_STEPPER) || ENABLED(Z_THREE_STEPPER) || ENABLED(Z_FOUR_STEPPER)
  70. #define Z2_STEP_PIN ORIG_E1_STEP_PIN
  71. #define Z2_DIR_PIN ORIG_E1_DIR_PIN
  72. #define Z2_ENABLE_PIN ORIG_E1_ENABLE_PIN
  73. #define Z2_CS_PIN ORIG_E1_CS_PIN
  74. #endif
  75.  
  76. // Z3 axis pins
  77. #if ENABLED(Z_THREE_STEPPER) || ENABLED(Z_FOUR_STEPPER)
  78. #define Z3_STEP_PIN ORIG_E2_STEP_PIN
  79. #define Z3_DIR_PIN ORIG_E2_DIR_PIN
  80. #define Z3_ENABLE_PIN ORIG_E2_ENABLE_PIN
  81. #endif
  82.  
  83. // Z4 axis pins
  84. #if ENABLED(Z_FOUR_STEPPER)
  85. #define Z4_STEP_PIN ORIG_E3_STEP_PIN
  86. #define Z4_DIR_PIN ORIG_E3_DIR_PIN
  87. #define Z4_ENABLE_PIN ORIG_E3_ENABLE_PIN
  88. #endif
  89.  
  90. // E axis pins
  91. #if DRIVER_EXTRUDERS > 0
  92. #define E0_STEP_PIN ORIG_E0_STEP_PIN
  93. #define E0_DIR_PIN ORIG_E0_DIR_PIN
  94. #define E0_ENABLE_PIN ORIG_E0_ENABLE_PIN
  95. #define E0_CS_PIN ORIG_E0_CS_PIN
  96. #define SOL0_PIN ORIG_SOL0_PIN
  97. #define E0_ENC_PIN NoPin
  98. #endif
  99.  
  100. #if DRIVER_EXTRUDERS > 1
  101. #define E1_STEP_PIN ORIG_E1_STEP_PIN
  102. #define E1_DIR_PIN ORIG_E1_DIR_PIN
  103. #define E1_ENABLE_PIN ORIG_E1_ENABLE_PIN
  104. #define E1_CS_PIN ORIG_E1_CS_PIN
  105. #define SOL1_PIN ORIG_SOL1_PIN
  106. #define E1_ENC_PIN NoPin
  107. #endif
  108.  
  109. #if DRIVER_EXTRUDERS > 2
  110. #define E2_STEP_PIN ORIG_E2_STEP_PIN
  111. #define E2_DIR_PIN ORIG_E2_DIR_PIN
  112. #define E2_ENABLE_PIN ORIG_E2_ENABLE_PIN
  113. #define E2_CS_PIN ORIG_E2_CS_PIN
  114. #define SOL2_PIN ORIG_SOL2_PIN
  115. #define E2_ENC_PIN NoPin
  116. #endif
  117.  
  118. #if DRIVER_EXTRUDERS > 3
  119. #define E3_STEP_PIN ORIG_E3_STEP_PIN
  120. #define E3_DIR_PIN ORIG_E3_DIR_PIN
  121. #define E3_ENABLE_PIN ORIG_E3_ENABLE_PIN
  122. #define E3_CS_PIN ORIG_E3_CS_PIN
  123. #define SOL3_PIN ORIG_SOL3_PIN
  124. #define E3_ENC_PIN NoPin
  125. #endif
  126.  
  127. #if DRIVER_EXTRUDERS > 4
  128. #define E4_STEP_PIN ORIG_E4_STEP_PIN
  129. #define E4_DIR_PIN ORIG_E4_DIR_PIN
  130. #define E4_ENABLE_PIN ORIG_E4_ENABLE_PIN
  131. #define E4_CS_PIN ORIG_E4_CS_PIN
  132. #define SOL4_PIN ORIG_SOL4_PIN
  133. #define E4_ENC_PIN NoPin
  134. #endif
  135.  
  136. #if DRIVER_EXTRUDERS > 5
  137. #define E5_STEP_PIN ORIG_E5_STEP_PIN
  138. #define E5_DIR_PIN ORIG_E5_DIR_PIN
  139. #define E5_ENABLE_PIN ORIG_E5_ENABLE_PIN
  140. #define E5_CS_PIN ORIG_E5_CS_PIN
  141. #define SOL5_PIN ORIG_SOL5_PIN
  142. #define E5_ENC_PIN NoPin
  143. #endif
  144.  
  145. // ENDSTOP pin
  146. #define X_MIN_PIN ORIG_X_MIN_PIN
  147. #define X_MAX_PIN ORIG_X_MAX_PIN
  148. #define Y_MIN_PIN ORIG_Y_MIN_PIN
  149. #define Y_MAX_PIN NoPin //ORIG_Y_MAX_PIN
  150. #define Z_MIN_PIN ORIG_Y_MAX_PIN //ORIG_Z_MIN_PIN
  151. #define Z_MAX_PIN NoPin //ORIG_YZ_MAX_PIN
  152. #define Z2_MIN_PIN NoPin
  153. #define Z2_MAX_PIN NoPin
  154. #define Z3_MIN_PIN NoPin
  155. #define Z3_MAX_PIN NoPin
  156. #define Z4_MIN_PIN NoPin
  157. #define Z4_MAX_PIN NoPin
  158. #define E_MIN_PIN NoPin
  159. #define Z_PROBE_PIN NoPin
  160.  
  161. // HEATER pin
  162. #define HEATER_0_PIN ORIG_HEATER_0_PIN
  163. #define HEATER_1_PIN ORIG_HEATER_1_PIN
  164. #define HEATER_2_PIN ORIG_HEATER_2_PIN
  165. #define HEATER_3_PIN ORIG_HEATER_3_PIN
  166. #define HEATER_BED_PIN ORIG_HEATER_BED_PIN
  167. #define HEATER_CHAMBER_PIN NoPin
  168. #define HEATER_COOLER_PIN NoPin
  169.  
  170. // TEMP pin
  171. #define TEMP_0_PIN ORIG_TEMP_0_PIN
  172. #define TEMP_1_PIN ORIG_TEMP_1_PIN
  173. #define TEMP_2_PIN ORIG_TEMP_2_PIN
  174. #define TEMP_3_PIN ORIG_TEMP_3_PIN
  175. #define TEMP_BED_PIN ORIG_TEMP_BED_PIN
  176. #define TEMP_CHAMBER_PIN NoPin
  177. #define TEMP_COOLER_PIN NoPin
  178.  
  179. // FAN pin
  180. #define FAN0_PIN 4
  181. #define FAN1_PIN ORIG_FAN1_PIN
  182. #define FAN2_PIN ORIG_FAN2_PIN
  183. #define FAN3_PIN ORIG_FAN3_PIN
  184. #define FAN4_PIN ORIG_FAN4_PIN
  185. #define FAN5_PIN ORIG_FAN5_PIN
  186.  
  187. // PS ON pin
  188. #define PS_ON_PIN ORIG_PS_ON_PIN
  189.  
  190. // BEEPER pin
  191. #define BEEPER_PIN ORIG_BEEPER_PIN
  192.  
  193. //============================================================================
  194.  
  195. //================================= FEATURE ==================================
  196.  
  197. #if ENABLED(MKR4)
  198. #define E0E1_CHOICE_PIN 5
  199. #define E0E2_CHOICE_PIN 5
  200. #define E1E3_CHOICE_PIN 6
  201. #elif ENABLED(MKR6) || ENABLED(MKR12)
  202. #define EX1_CHOICE_PIN -1
  203. #define EX2_CHOICE_PIN -1
  204. #endif
  205.  
  206. #if ENABLED(LASER)
  207. #define LASER_PWR_PIN 42
  208. #define LASER_PWM_PIN ORIG_LASER_PWM_PIN
  209. #if ENABLED(LASER_PERIPHERALS)
  210. #define LASER_PERIPHERALS_PIN NoPin
  211. #define LASER_PERIPHERALS_STATUS_PIN NoPin
  212. #endif
  213. #endif
  214.  
  215. #if ENABLED(CNCROUTER)
  216. #define CNCROUTER_PIN NoPin
  217. #endif
  218.  
  219. #if ENABLED(FILAMENT_RUNOUT_SENSOR)
  220. #define FIL_RUNOUT_PIN NoPin
  221. #define FIL_RUNOUT_DAV_PIN NoPin
  222. #endif
  223.  
  224. #if ENABLED(FILAMENT_SENSOR)
  225. #define FILWIDTH_PIN NoPin
  226. #endif
  227.  
  228. #if ENABLED(FLOWMETER_SENSOR)
  229. #define FLOWMETER_PIN NoPin
  230. #endif
  231.  
  232. #if ENABLED(POWER_CONSUMPTION)
  233. #define POWER_CONSUMPTION_PIN NoPin
  234. #endif
  235.  
  236. #if ENABLED(PHOTOGRAPH)
  237. #define PHOTOGRAPH_PIN NoPin
  238. #endif
  239.  
  240. #if ENABLED(CHDK)
  241. #define CHDK_PIN NoPin
  242. #endif
  243.  
  244. #if ENABLED(CASE_LIGHT)
  245. #define CASE_LIGHT_PIN NoPin
  246. #endif
  247.  
  248. #if ENABLED(DOOR_OPEN)
  249. #define DOOR_PIN NoPin
  250. #endif
  251.  
  252. #if ENABLED(POWER_CHECK)
  253. #define POWER_CHECK_PIN NoPin
  254. #endif
  255.  
  256. #if ENABLED(Z_PROBE_SLED)
  257. #define SLED_PIN NoPin
  258. #endif
  259.  
  260. #if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
  261. #define RGB_LED_R_PIN NoPin
  262. #define RGB_LED_G_PIN NoPin
  263. #define RGB_LED_B_PIN NoPin
  264. #define RGB_LED_W_PIN NoPin
  265. #endif
  266.  
  267. #if ENABLED(NEOPIXEL_LED)
  268. #define NEOPIXEL_PIN NoPin
  269. #endif
  270.  
  271. #if ENABLED(DHT_SENSOR)
  272. #define DHT_DATA_PIN NoPin
  273. #endif
  274.  
  275. //============================================================================
  276.  
  277. #endif /* _CONFIGURATION_PINS_H_ */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement