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_GT2560_V3.h 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4. *
  5. * Based on Sprinter and grbl.
  6. * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. /**
  24. * Geeetech GT2560 RevB + GT2560 3.0/3.1 + GT2560 4.0/4.1 pin assignments
  25. */
  26. #define ALLOW_MEGA1280
  27. #include "env_validate.h"
  28. #ifndef BOARD_INFO_NAME
  29. #define BOARD_INFO_NAME "GT2560 RevB/3.x/4.x"
  30. #endif
  31. //
  32. // Servos
  33. //
  34. #define SERVO0_PIN 11 // 13 untested 3Dtouch
  35. //
  36. // Limit Switches
  37. //
  38. #ifndef X_STOP_PIN
  39. #ifndef X_MIN_PIN
  40. #define X_MIN_PIN 24
  41. #endif
  42. #ifndef X_MAX_PIN
  43. #define X_MAX_PIN 22
  44. #endif
  45. #endif
  46. #ifndef Y_STOP_PIN
  47. #ifndef Y_MIN_PIN
  48. #define Y_MIN_PIN 28
  49. #endif
  50. #ifndef Y_MAX_PIN
  51. #define Y_MAX_PIN 26
  52. #endif
  53. #endif
  54. #ifndef Z_STOP_PIN
  55. #ifndef Z_MIN_PIN
  56. #define Z_MIN_PIN 30
  57. #endif
  58. #ifndef Z_MAX_PIN
  59. #define Z_MAX_PIN 32
  60. #endif
  61. #endif
  62. //
  63. // Z Probe (when not Z_MIN_PIN)
  64. //
  65. #ifndef Z_MIN_PROBE_PIN
  66. #define Z_MIN_PROBE_PIN 32
  67. #endif
  68. //
  69. // Runout Sensor
  70. //
  71. #ifndef FIL_RUNOUT_PIN
  72. #define FIL_RUNOUT_PIN 66
  73. #endif
  74. #ifndef FIL_RUNOUT2_PIN
  75. #define FIL_RUNOUT2_PIN 67
  76. #endif
  77. //
  78. // Power Recovery
  79. //
  80. #define POWER_LOSS_PIN 69 // Pin to detect power loss
  81. #define POWER_LOSS_STATE LOW
  82. //
  83. // Steppers
  84. //
  85. #define X_STEP_PIN 37
  86. #define X_DIR_PIN 39
  87. #define X_ENABLE_PIN 35
  88. #define Y_STEP_PIN 31
  89. #define Y_DIR_PIN 33
  90. #define Y_ENABLE_PIN 29
  91. #define Z_STEP_PIN 25
  92. #define Z_DIR_PIN 23
  93. #define Z_ENABLE_PIN 27
  94. #define E0_STEP_PIN 46
  95. #define E0_DIR_PIN 44
  96. #define E0_ENABLE_PIN 12
  97. #define E1_STEP_PIN 49
  98. #define E1_DIR_PIN 47
  99. #define E1_ENABLE_PIN 48
  100. #define E2_STEP_PIN 43
  101. #define E2_DIR_PIN 45
  102. #define E2_ENABLE_PIN 41
  103. //
  104. // Temperature Sensors
  105. //
  106. #define TEMP_0_PIN 11 // Analog Input
  107. #define TEMP_1_PIN 9 // Analog Input
  108. #define TEMP_2_PIN 8 // Analog Input
  109. #define TEMP_BED_PIN 10 // Analog Input
  110. //
  111. // Heaters / Fans
  112. //
  113. #define HEATER_0_PIN 10
  114. #define HEATER_1_PIN 3
  115. #define HEATER_2_PIN 2
  116. #define HEATER_BED_PIN 4
  117. #define FAN_PIN 9
  118. #define FAN1_PIN 8
  119. #define FAN2_PIN 7
  120. //
  121. // Misc. Functions
  122. //
  123. #define SD_DETECT_PIN 38
  124. #define SDSS 53
  125. #define LED_PIN 13 // Use 6 (case light) for external LED. 13 is internal (yellow) LED.
  126. #define PS_ON_PIN 12
  127. #if NUM_RUNOUT_SENSORS < 3
  128. #define SUICIDE_PIN 54 // This pin must be enabled at boot to keep power flowing
  129. #endif
  130. #ifndef CASE_LIGHT_PIN
  131. #define CASE_LIGHT_PIN 6 // 21
  132. #endif
  133. //
  134. // LCD Controller
  135. //
  136. #define BEEPER_PIN 18
  137. #if ENABLED(YHCB2004)
  138. #ifndef YHCB2004_CLK
  139. #define YHCB2004_CLK 5
  140. #endif
  141. #ifndef YHCB2004_MOSI
  142. #define YHCB2004_MOSI 21
  143. #endif
  144. #ifndef YHCB2004_MISO
  145. #define YHCB2004_MISO 36
  146. #endif
  147. #elif HAS_WIRED_LCD
  148. #ifndef LCD_PINS_RS
  149. #define LCD_PINS_RS 20
  150. #endif
  151. #ifndef LCD_PINS_ENABLE
  152. #define LCD_PINS_ENABLE 17
  153. #endif
  154. #ifndef LCD_PINS_D4
  155. #define LCD_PINS_D4 16
  156. #endif
  157. #ifndef LCD_PINS_D5
  158. #define LCD_PINS_D5 21
  159. #endif
  160. #ifndef LCD_PINS_D6
  161. #define LCD_PINS_D6 5
  162. #endif
  163. #ifndef LCD_PINS_D7
  164. #define LCD_PINS_D7 36
  165. #endif
  166. #endif
  167. #if ENABLED(YHCB2004)
  168. #ifndef BTN_EN1
  169. #define BTN_EN1 16
  170. #endif
  171. #ifndef BTN_EN2
  172. #define BTN_EN2 17
  173. #endif
  174. #ifndef BTN_ENC
  175. #define BTN_ENC 19
  176. #endif
  177. #elif IS_NEWPANEL
  178. #ifndef BTN_EN1
  179. #define BTN_EN1 42
  180. #endif
  181. #ifndef BTN_EN2
  182. #define BTN_EN2 40
  183. #endif
  184. #ifndef BTN_ENC
  185. #define BTN_ENC 19
  186. #endif
  187. #endif