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.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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 3.0/3.1 pin assignments
  25. *
  26. * Also GT2560 RevB and GT2560 4.0/4.1
  27. */
  28. #define ALLOW_MEGA1280
  29. #include "env_validate.h"
  30. #ifndef BOARD_INFO_NAME
  31. #define BOARD_INFO_NAME "GT2560 3.x"
  32. #endif
  33. //
  34. // Servos
  35. //
  36. #define SERVO0_PIN 11 // 13 untested 3Dtouch
  37. //
  38. // Limit Switches
  39. //
  40. #ifndef X_STOP_PIN
  41. #ifndef X_MIN_PIN
  42. #define X_MIN_PIN 24
  43. #endif
  44. #ifndef X_MAX_PIN
  45. #define X_MAX_PIN 22
  46. #endif
  47. #endif
  48. #ifndef Y_STOP_PIN
  49. #ifndef Y_MIN_PIN
  50. #define Y_MIN_PIN 28
  51. #endif
  52. #ifndef Y_MAX_PIN
  53. #define Y_MAX_PIN 26
  54. #endif
  55. #endif
  56. #ifndef Z_STOP_PIN
  57. #ifndef Z_MIN_PIN
  58. #define Z_MIN_PIN 30
  59. #endif
  60. #ifndef Z_MAX_PIN
  61. #define Z_MAX_PIN 32
  62. #endif
  63. #endif
  64. //
  65. // Z Probe (when not Z_MIN_PIN)
  66. //
  67. #ifndef Z_MIN_PROBE_PIN
  68. #define Z_MIN_PROBE_PIN 32
  69. #endif
  70. //
  71. // Runout Sensor
  72. //
  73. #ifndef FIL_RUNOUT_PIN
  74. #define FIL_RUNOUT_PIN 66
  75. #endif
  76. #ifndef FIL_RUNOUT2_PIN
  77. #define FIL_RUNOUT2_PIN 67
  78. #endif
  79. #ifndef FIL_RUNOUT3_PIN
  80. #define FIL_RUNOUT3_PIN 54
  81. #endif
  82. //
  83. // Power Recovery
  84. //
  85. #define POWER_LOSS_PIN 69 // Pin to detect power loss
  86. #define POWER_LOSS_STATE LOW
  87. //
  88. // Steppers
  89. //
  90. #define X_STEP_PIN 37
  91. #define X_DIR_PIN 39
  92. #define X_ENABLE_PIN 35
  93. #define Y_STEP_PIN 31
  94. #define Y_DIR_PIN 33
  95. #define Y_ENABLE_PIN 29
  96. #define Z_STEP_PIN 25
  97. #define Z_DIR_PIN 23
  98. #define Z_ENABLE_PIN 27
  99. #define E0_STEP_PIN 46
  100. #define E0_DIR_PIN 44
  101. #define E0_ENABLE_PIN 12
  102. #define E1_STEP_PIN 49
  103. #define E1_DIR_PIN 47
  104. #define E1_ENABLE_PIN 48
  105. #define E2_STEP_PIN 43
  106. #define E2_DIR_PIN 45
  107. #define E2_ENABLE_PIN 41
  108. //
  109. // Temperature Sensors
  110. //
  111. #define TEMP_0_PIN 11 // Analog Input
  112. #define TEMP_1_PIN 9 // Analog Input
  113. #define TEMP_2_PIN 8 // Analog Input
  114. #define TEMP_BED_PIN 10 // Analog Input
  115. //
  116. // Heaters / Fans
  117. //
  118. #define HEATER_0_PIN 10
  119. #define HEATER_1_PIN 3
  120. #define HEATER_2_PIN 2
  121. #define HEATER_BED_PIN 4
  122. #define FAN_PIN 9
  123. #define FAN1_PIN 8
  124. #define FAN2_PIN 7
  125. //
  126. // Misc. Functions
  127. //
  128. #define SD_DETECT_PIN 38
  129. #define SDSS 53
  130. #define LED_PIN 13 // Use 6 (case light) for external LED. 13 is internal (yellow) LED.
  131. #define PS_ON_PIN 12
  132. #if NUM_RUNOUT_SENSORS < 3
  133. #define SUICIDE_PIN 54 // This pin must be enabled at boot to keep power flowing
  134. #endif
  135. #ifndef CASE_LIGHT_PIN
  136. #define CASE_LIGHT_PIN 6 // 21
  137. #endif
  138. //
  139. // LCD Controller
  140. //
  141. #define BEEPER_PIN 18
  142. #if ENABLED(YHCB2004)
  143. #ifndef YHCB2004_CLK
  144. #define YHCB2004_CLK 5
  145. #define DIO52 YHCB2004_CLK
  146. #endif
  147. #ifndef YHCB2004_MOSI
  148. #define YHCB2004_MOSI 21
  149. #define DIO50 YHCB2004_MOSI
  150. #endif
  151. #ifndef YHCB2004_MISO
  152. #define YHCB2004_MISO 36
  153. #define DIO51 YHCB2004_MISO
  154. #endif
  155. #elif HAS_WIRED_LCD
  156. #ifndef LCD_PINS_RS
  157. #define LCD_PINS_RS 20
  158. #endif
  159. #ifndef LCD_PINS_ENABLE
  160. #define LCD_PINS_ENABLE 17
  161. #endif
  162. #ifndef LCD_PINS_D4
  163. #define LCD_PINS_D4 16
  164. #endif
  165. #ifndef LCD_PINS_D5
  166. #define LCD_PINS_D5 21
  167. #endif
  168. #ifndef LCD_PINS_D6
  169. #define LCD_PINS_D6 5
  170. #endif
  171. #ifndef LCD_PINS_D7
  172. #define LCD_PINS_D7 36
  173. #endif
  174. #endif
  175. #if ENABLED(YHCB2004)
  176. #ifndef BTN_EN1
  177. #define BTN_EN1 16
  178. #endif
  179. #ifndef BTN_EN2
  180. #define BTN_EN2 17
  181. #endif
  182. #ifndef BTN_ENC
  183. #define BTN_ENC 19
  184. #endif
  185. #elif IS_NEWPANEL
  186. #ifndef BTN_EN1
  187. #define BTN_EN1 42
  188. #endif
  189. #ifndef BTN_EN2
  190. #define BTN_EN2 40
  191. #endif
  192. #ifndef BTN_ENC
  193. #define BTN_ENC 19
  194. #endif
  195. #endif