Advertisement
Guest User

pins_GT2560_V4

a guest
Dec 31st, 2020
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.09 KB | None | 0 0
  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. /**
  25. * GT2560 RevB + GT2560 V3.0 + GT2560 V3.1 + GT2560 V4.0 pin assignment
  26. */
  27.  
  28. #if NOT_TARGET(__AVR_ATmega1280__, __AVR_ATmega2560__)
  29. #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
  30. #endif
  31.  
  32. #ifndef BOARD_INFO_NAME
  33. #define BOARD_INFO_NAME "GT2560 V4.0"
  34. #endif
  35.  
  36. //
  37. // Servos
  38. //
  39. #define SERVO0_PIN 11 //13 untested 3Dtouch
  40.  
  41. //
  42. // Limit Switches
  43. //
  44. #ifndef X_STOP_PIN
  45. #ifndef X_MIN_PIN
  46. #define X_MIN_PIN 24
  47. #endif
  48. #ifndef X_MAX_PIN
  49. #define X_MAX_PIN 22
  50. #endif
  51. #endif
  52. #ifndef Y_STOP_PIN
  53. #ifndef Y_MIN_PIN
  54. #define Y_MIN_PIN 28
  55. #endif
  56. #ifndef Y_MAX_PIN
  57. #define Y_MAX_PIN 26
  58. #endif
  59. #endif
  60. #ifndef Z_STOP_PIN
  61. #ifndef Z_MIN_PIN
  62. #define Z_MIN_PIN 30
  63. #endif
  64. #ifndef Z_MAX_PIN
  65. #define Z_MAX_PIN 32
  66. #endif
  67. #endif
  68.  
  69. //
  70. // Z Probe (when not Z_MIN_PIN)
  71. //
  72. #ifndef Z_MIN_PROBE_PIN
  73. #define Z_MIN_PROBE_PIN 32
  74. #endif
  75.  
  76. //
  77. // Runout Sensor
  78. //
  79. #ifndef FIL_RUNOUT_PIN
  80. #define FIL_RUNOUT_PIN 66
  81. #endif
  82. #ifndef FIL_RUNOUT2_PIN
  83. #define FIL_RUNOUT2_PIN 67
  84. #endif
  85.  
  86. //
  87. // Power Recovery
  88. //
  89. #define POWER_LOSS_PIN 69 // Pin to detect power loss
  90. #define POWER_LOSS_STATE HIGH
  91.  
  92. //
  93. // Steppers
  94. //
  95. #define X_STEP_PIN 37
  96. #define X_DIR_PIN 39
  97. #define X_ENABLE_PIN 35
  98.  
  99. #define Y_STEP_PIN 31
  100. #define Y_DIR_PIN 33
  101. #define Y_ENABLE_PIN 29
  102.  
  103. #define Z_STEP_PIN 25
  104. #define Z_DIR_PIN 23
  105. #define Z_ENABLE_PIN 27
  106.  
  107. #define E0_STEP_PIN 46
  108. #define E0_DIR_PIN 44
  109. #define E0_ENABLE_PIN 12
  110.  
  111. #define E1_STEP_PIN 49
  112. #define E1_DIR_PIN 47
  113. #define E1_ENABLE_PIN 48
  114.  
  115. #define E2_STEP_PIN 43
  116. #define E2_DIR_PIN 45
  117. #define E2_ENABLE_PIN 41
  118.  
  119. //
  120. // Temperature Sensors
  121. //
  122. #define TEMP_0_PIN 11 // Analog Input
  123. #define TEMP_1_PIN 9 // Analog Input
  124. #define TEMP_2_PIN -1 // Analog Input
  125. #define TEMP_BED_PIN 10 // Analog Input
  126.  
  127. //
  128. // Heaters / Fans
  129. //
  130. #define HEATER_0_PIN 10
  131. #define HEATER_1_PIN 3
  132. #define HEATER_2_PIN -1
  133. #define HEATER_BED_PIN 4
  134. #define FAN_PIN 9
  135.  
  136.  
  137. //
  138. // Misc. Functions
  139. //
  140. #define SD_DETECT_PIN 38
  141. #define SDSS 53
  142. #define LED_PIN 6 // Use 6 (case light) for external LED. 13 is internal (yellow) LED.
  143. #define PS_ON_PIN 12
  144. #define SUICIDE_PIN 54 // This pin must be enabled at boot to keep power flowing
  145.  
  146. #ifndef CASE_LIGHT_PIN
  147. #define CASE_LIGHT_PIN 6 // 21
  148. #endif
  149.  
  150. //
  151. // LCD Controller
  152. //
  153. #define BEEPER_PIN 18
  154.  
  155. #ifndef LCD_PINS_RS
  156. #define LCD_PINS_RS 20
  157. #endif
  158. #ifndef LCD_PINS_ENABLE
  159. #define LCD_PINS_ENABLE 17
  160. #endif
  161. #ifndef LCD_PINS_D4
  162. #define LCD_PINS_D4 16
  163. #endif
  164. #ifndef LCD_PINS_D5
  165. #define LCD_PINS_D5 21
  166. #endif
  167. #ifndef LCD_PINS_D6
  168. #define LCD_PINS_D6 5
  169. #endif
  170. #ifndef LCD_PINS_D7
  171. #define LCD_PINS_D7 36
  172. #endif
  173.  
  174. #if IS_NEWPANEL
  175. #ifndef BTN_EN1
  176. #define BTN_EN1 16
  177. #endif
  178. #ifndef BTN_EN2
  179. #define BTN_EN2 17
  180. #endif
  181. #ifndef BTN_ENC
  182. #define BTN_ENC 19
  183. #endif
  184. #endif
  185.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement