My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

pins.h 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. /**
  2. * pins.h
  3. */
  4. #ifndef PINS_H
  5. #define PINS_H
  6. // Preset optional pins
  7. #define X_MS1_PIN -1
  8. #define X_MS2_PIN -1
  9. #define Y_MS1_PIN -1
  10. #define Y_MS2_PIN -1
  11. #define Z_MS1_PIN -1
  12. #define Z_MS2_PIN -1
  13. #define E0_MS1_PIN -1
  14. #define E0_MS2_PIN -1
  15. #define E1_MS1_PIN -1
  16. #define E1_MS2_PIN -1
  17. #define DIGIPOTSS_PIN -1
  18. #define HEATER_3_PIN -1
  19. #define TEMP_3_PIN -1
  20. #if MB(GEN7_CUSTOM)
  21. #include "pins_GEN7_CUSTOM.h"
  22. #elif MB(GEN7_12)
  23. #include "pins_GEN7_12.h"
  24. #elif MB(GEN7_13)
  25. #include "pins_GEN7_13.h"
  26. #elif MB(GEN7_14)
  27. #include "pins_GEN7_14.h"
  28. #elif MB(CHEAPTRONIC)
  29. #include "pins_CHEAPTRONIC.h"
  30. #elif MB(SETHI)
  31. #include "pins_SETHI.h"
  32. #elif MB(RAMPS_OLD)
  33. #include "pins_RAMPS_OLD.h"
  34. #elif MB(RAMPS_13_EFB) || MB(RAMPS_13_EEB) || MB(RAMPS_13_EFF) || MB(RAMPS_13_EEF)
  35. #include "pins_RAMPS_13.h"
  36. #elif MB(DUEMILANOVE_328P)
  37. #include "pins_DUEMILANOVE_328P.h"
  38. #elif MB(GEN6)
  39. #include "pins_GEN6.h"
  40. #elif MB(GEN6_DELUXE)
  41. #include "pins_GEN6_DELUXE.h"
  42. #elif MB(SANGUINOLOLU_11)
  43. #include "pins_SANGUINOLOLU_11.h"
  44. #elif MB(SANGUINOLOLU_12)
  45. #include "pins_SANGUINOLOLU_12.h"
  46. #elif MB(MELZI)
  47. #include "pins_MELZI.h"
  48. #elif MB(STB_11)
  49. #include "pins_STB_11.h"
  50. #elif MB(AZTEEG_X1)
  51. #include "pins_AZTEEG_X1.h"
  52. #elif MB(MELZI_1284)
  53. #include "pins_MELZI_1284.h"
  54. #elif MB(AZTEEG_X3)
  55. #include "pins_AZTEEG_X3.h"
  56. #elif MB(AZTEEG_X3_PRO)
  57. #include "pins_AZTEEG_X3_PRO.h"
  58. #elif MB(ULTIMAKER)
  59. #include "pins_ULTIMAKER.h"
  60. #elif MB(ULTIMAKER_OLD)
  61. #include "pins_ULTIMAKER_OLD.h"
  62. #elif MB(ULTIMAIN_2)
  63. #include "pins_ULTIMAIN_2.h"
  64. #elif MB(3DRAG)
  65. #include "pins_3DRAG.h"
  66. #elif MB(K8200)
  67. #include "pins_K8200.h"
  68. #elif MB(TEENSYLU)
  69. #include "pins_TEENSYLU.h"
  70. #elif MB(RUMBA)
  71. #include "pins_RUMBA.h"
  72. #elif MB(PRINTRBOARD)
  73. #include "pins_PRINTRBOARD.h"
  74. #elif MB(BRAINWAVE)
  75. #include "pins_BRAINWAVE.h"
  76. #elif MB(SAV_MKI)
  77. #include "pins_SAV_MKI.h"
  78. #elif MB(TEENSY2)
  79. #include "pins_TEENSY2.h"
  80. #elif MB(GEN3_PLUS)
  81. #include "pins_GEN3_PLUS.h"
  82. #elif MB(GEN3_MONOLITHIC)
  83. #include "pins_GEN3_MONOLITHIC.h"
  84. #elif MB(MEGATRONICS)
  85. #include "pins_MEGATRONICS.h"
  86. #elif MB(MEGATRONICS_1)
  87. #include "pins_MEGATRONICS_1.h"
  88. #elif MB(MEGATRONICS_2)
  89. #include "pins_MEGATRONICS_2.h"
  90. #elif MB(MEGATRONICS_3)
  91. #include "pins_MEGATRONICS_3.h"
  92. #elif MB(OMCA_A)
  93. #include "pins_OMCA_A.h"
  94. #elif MB(OMCA)
  95. #include "pins_OMCA.h"
  96. #elif MB(RAMBO)
  97. #include "pins_RAMBO.h"
  98. #elif MB(ELEFU_3)
  99. #include "pins_ELEFU_3.h"
  100. #elif MB(5DPRINT)
  101. #include "pins_5DPRINT.h"
  102. #elif MB(LEAPFROG)
  103. #include "pins_LEAPFROG.h"
  104. #elif MB(WITBOX)
  105. #include "pins_WITBOX.h"
  106. #elif MB(HEPHESTOS)
  107. #include "pins_HEPHESTOS.h"
  108. #elif MB(BAM_DICE)
  109. #include "pins_RAMPS_13.h"
  110. #elif MB(BAM_DICE_DUE)
  111. #include "pins_BAM_DICE_DUE.h"
  112. #elif MB(FELIX2)
  113. #include "pins_FELIX2.h"
  114. #elif MB(99)
  115. #include "pins_99.h"
  116. #else
  117. #error Unknown MOTHERBOARD value set in Configuration.h
  118. #endif
  119. // List of pins which to ignore when asked to change by gcode, 0 and 1 are RX and TX, do not mess with those!
  120. #define _E0_PINS E0_STEP_PIN, E0_DIR_PIN, E0_ENABLE_PIN, HEATER_0_PIN, analogInputToDigitalPin(TEMP_0_PIN),
  121. #define _E1_PINS
  122. #define _E2_PINS
  123. #define _E3_PINS
  124. #if EXTRUDERS > 1
  125. #undef _E1_PINS
  126. #define _E1_PINS E1_STEP_PIN, E1_DIR_PIN, E1_ENABLE_PIN, HEATER_1_PIN, analogInputToDigitalPin(TEMP_1_PIN),
  127. #if EXTRUDERS > 2
  128. #undef _E2_PINS
  129. #define _E2_PINS E2_STEP_PIN, E2_DIR_PIN, E2_ENABLE_PIN, HEATER_2_PIN, analogInputToDigitalPin(TEMP_2_PIN),
  130. #if EXTRUDERS > 3
  131. #undef _E3_PINS
  132. #define _E3_PINS E3_STEP_PIN, E3_DIR_PIN, E3_ENABLE_PIN, HEATER_3_PIN, analogInputToDigitalPin(TEMP_3_PIN),
  133. #endif
  134. #endif
  135. #endif
  136. #ifdef X_STOP_PIN
  137. #if X_HOME_DIR < 0
  138. #define X_MIN_PIN X_STOP_PIN
  139. #define X_MAX_PIN -1
  140. #else
  141. #define X_MIN_PIN -1
  142. #define X_MAX_PIN X_STOP_PIN
  143. #endif
  144. #endif
  145. #ifdef Y_STOP_PIN
  146. #if Y_HOME_DIR < 0
  147. #define Y_MIN_PIN Y_STOP_PIN
  148. #define Y_MAX_PIN -1
  149. #else
  150. #define Y_MIN_PIN -1
  151. #define Y_MAX_PIN Y_STOP_PIN
  152. #endif
  153. #endif
  154. #ifdef Z_STOP_PIN
  155. #if Z_HOME_DIR < 0
  156. #define Z_MIN_PIN Z_STOP_PIN
  157. #define Z_MAX_PIN -1
  158. #else
  159. #define Z_MIN_PIN -1
  160. #define Z_MAX_PIN Z_STOP_PIN
  161. #endif
  162. #endif
  163. #ifdef DISABLE_MAX_ENDSTOPS
  164. #undef X_MAX_PIN
  165. #undef Y_MAX_PIN
  166. #undef Z_MAX_PIN
  167. #define X_MAX_PIN -1
  168. #define Y_MAX_PIN -1
  169. #define Z_MAX_PIN -1
  170. #endif
  171. #ifdef DISABLE_MIN_ENDSTOPS
  172. #undef X_MIN_PIN
  173. #undef Y_MIN_PIN
  174. #undef Z_MIN_PIN
  175. #define X_MIN_PIN -1
  176. #define Y_MIN_PIN -1
  177. #define Z_MIN_PIN -1
  178. #endif
  179. #if defined (DISABLE_Z_PROBE_ENDSTOP) || ! defined (Z_PROBE_ENDSTOP) // Allow code to compile regardless of Z_PROBE_ENDSTOP setting.
  180. #define Z_PROBE_PIN -1
  181. #endif
  182. #ifdef DISABLE_XMAX_ENDSTOP
  183. #undef X_MAX_PIN
  184. #define X_MAX_PIN -1
  185. #endif
  186. #ifdef DISABLE_XMIN_ENDSTOP
  187. #undef X_MIN_PIN
  188. #define X_MIN_PIN -1
  189. #endif
  190. #ifdef DISABLE_YMAX_ENDSTOP
  191. #define Y_MAX_PIN -1
  192. #endif
  193. #ifdef DISABLE_YMIN_ENDSTOP
  194. #undef Y_MIN_PIN
  195. #define Y_MIN_PIN -1
  196. #endif
  197. #ifdef DISABLE_ZMAX_ENDSTOP
  198. #undef Z_MAX_PIN
  199. #define Z_MAX_PIN -1
  200. #endif
  201. #ifdef DISABLE_ZMIN_ENDSTOP
  202. #undef Z_MIN_PIN
  203. #define Z_MIN_PIN -1
  204. #endif
  205. #define SENSITIVE_PINS { 0, 1, X_STEP_PIN, X_DIR_PIN, X_ENABLE_PIN, X_MIN_PIN, X_MAX_PIN, Y_STEP_PIN, Y_DIR_PIN, Y_ENABLE_PIN, Y_MIN_PIN, Y_MAX_PIN, Z_STEP_PIN, Z_DIR_PIN, Z_ENABLE_PIN, Z_MIN_PIN, Z_MAX_PIN, Z_PROBE_PIN, PS_ON_PIN, \
  206. HEATER_BED_PIN, FAN_PIN, \
  207. _E0_PINS _E1_PINS _E2_PINS _E3_PINS \
  208. analogInputToDigitalPin(TEMP_BED_PIN) \
  209. }
  210. #define HAS_DIGIPOTSS (DIGIPOTSS_PIN >= 0)
  211. #endif //__PINS_H