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.

pins.h 4.3KB

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