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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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 <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. /**
  24. * GT2560 RevB + GT2560 V3.0 + GT2560 V3.1 + GT2560 V4.0 pin assignment
  25. */
  26. #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
  27. #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
  28. #endif
  29. #ifndef BOARD_INFO_NAME
  30. #define BOARD_INFO_NAME "GT2560 V3.0"
  31. #endif
  32. //
  33. // Servos
  34. //
  35. #define SERVO0_PIN 11 //13 untested 3Dtouch
  36. //
  37. // Limit Switches
  38. //
  39. #ifndef X_STOP_PIN
  40. #ifndef X_MIN_PIN
  41. #define X_MIN_PIN 24
  42. #endif
  43. #ifndef X_MAX_PIN
  44. #define X_MAX_PIN 22
  45. #endif
  46. #endif
  47. #ifndef Y_STOP_PIN
  48. #ifndef Y_MIN_PIN
  49. #define Y_MIN_PIN 28
  50. #endif
  51. #ifndef Y_MAX_PIN
  52. #define Y_MAX_PIN 26
  53. #endif
  54. #endif
  55. #ifndef Z_STOP_PIN
  56. #ifndef Z_MIN_PIN
  57. #define Z_MIN_PIN 30
  58. #endif
  59. #ifndef Z_MAX_PIN
  60. #define Z_MAX_PIN 32
  61. #endif
  62. #endif
  63. //
  64. // Z Probe (when not Z_MIN_PIN)
  65. //
  66. #ifndef Z_MIN_PROBE_PIN
  67. #define Z_MIN_PROBE_PIN 32
  68. #endif
  69. //
  70. // Runout Sensor
  71. //
  72. #ifndef FIL_RUNOUT_PIN
  73. #define FIL_RUNOUT_PIN 66
  74. #endif
  75. #ifndef FIL_RUNOUT2_PIN
  76. #define FIL_RUNOUT2_PIN 67
  77. #endif
  78. //
  79. // Power Recovery
  80. //
  81. #define POWER_LOSS_PIN 69 // Pin to detect power loss
  82. #define POWER_LOSS_STATE LOW
  83. //
  84. // Steppers
  85. //
  86. #define X_STEP_PIN 37
  87. #define X_DIR_PIN 39
  88. #define X_ENABLE_PIN 35
  89. #define Y_STEP_PIN 31
  90. #define Y_DIR_PIN 33
  91. #define Y_ENABLE_PIN 29
  92. #define Z_STEP_PIN 25
  93. #define Z_DIR_PIN 23
  94. #define Z_ENABLE_PIN 27
  95. #define E0_STEP_PIN 46
  96. #define E0_DIR_PIN 44
  97. #define E0_ENABLE_PIN 12
  98. #define E1_STEP_PIN 49
  99. #define E1_DIR_PIN 47
  100. #define E1_ENABLE_PIN 48
  101. #define E2_STEP_PIN 43
  102. #define E2_DIR_PIN 45
  103. #define E2_ENABLE_PIN 41
  104. //
  105. // Temperature Sensors
  106. //
  107. #define TEMP_0_PIN 11 // Analog Input
  108. #define TEMP_1_PIN 9 // Analog Input
  109. #define TEMP_2_PIN 1 // Analog Input
  110. #define TEMP_BED_PIN 10 // Analog Input
  111. //
  112. // Heaters / Fans
  113. //
  114. #define HEATER_0_PIN 10
  115. #define HEATER_1_PIN 3
  116. #define HEATER_2_PIN 1
  117. #define HEATER_BED_PIN 4
  118. #define FAN_PIN 9
  119. #define FAN1_PIN 8
  120. #define FAN2_PIN 7
  121. //
  122. // Misc. Functions
  123. //
  124. #define SD_DETECT_PIN 38
  125. #define SDSS 53
  126. #define LED_PIN 6
  127. #define PS_ON_PIN 12
  128. #define SUICIDE_PIN 54 // This pin must be enabled at boot to keep power flowing
  129. #ifndef CASE_LIGHT_PIN
  130. #define CASE_LIGHT_PIN 6 // 21
  131. #endif
  132. //
  133. // LCD Controller
  134. //
  135. #define BEEPER_PIN 18
  136. #ifndef LCD_PINS_RS
  137. #define LCD_PINS_RS 20
  138. #endif
  139. #ifndef LCD_PINS_ENABLE
  140. #define LCD_PINS_ENABLE 17
  141. #endif
  142. #ifndef LCD_PINS_D4
  143. #define LCD_PINS_D4 16
  144. #endif
  145. #ifndef LCD_PINS_D5
  146. #define LCD_PINS_D5 21
  147. #endif
  148. #ifndef LCD_PINS_D6
  149. #define LCD_PINS_D6 5
  150. #endif
  151. #ifndef LCD_PINS_D7
  152. #define LCD_PINS_D7 36
  153. #endif
  154. #if ENABLED(NEWPANEL)
  155. #ifndef BTN_EN1
  156. #define BTN_EN1 42
  157. #endif
  158. #ifndef BTN_EN2
  159. #define BTN_EN2 40
  160. #endif
  161. #ifndef BTN_ENC
  162. #define BTN_ENC 19
  163. #endif
  164. #endif