My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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