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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2019 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. /**
  23. * GT2560 V3.0 pin assignment
  24. */
  25. #if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
  26. #error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
  27. #endif
  28. #ifndef BOARD_NAME
  29. #define BOARD_NAME "GT2560 V3.0"
  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. //
  101. // Temperature Sensors
  102. //
  103. #define TEMP_0_PIN 11 // Analog Input
  104. #define TEMP_1_PIN 9 // Analog Input
  105. #define TEMP_2_PIN 1 // Analog Input
  106. #define TEMP_BED_PIN 10 // Analog Input
  107. //
  108. // Heaters / Fans
  109. //
  110. #define HEATER_0_PIN 10
  111. #define HEATER_1_PIN 3
  112. #define HEATER_2_PIN 1
  113. #define HEATER_BED_PIN 4
  114. #define FAN_PIN 9
  115. //#define FAN1_PIN 8
  116. //#define FAN2_PIN 7
  117. //
  118. // Misc. Functions
  119. //
  120. #define SD_DETECT_PIN 38
  121. #define SDSS 53
  122. #define LED_PIN 6
  123. #define PS_ON_PIN 12
  124. #define SUICIDE_PIN 54 // This pin must be enabled at boot to keep power flowing
  125. #ifndef CASE_LIGHT_PIN
  126. #define CASE_LIGHT_PIN 6 // 21
  127. #endif
  128. //
  129. // LCD Controller
  130. //
  131. #define BEEPER_PIN 18
  132. #define LCD_PINS_RS 20
  133. #define LCD_PINS_ENABLE 17
  134. #define LCD_PINS_D4 16
  135. #define LCD_PINS_D5 21
  136. #define LCD_PINS_D6 5
  137. #define LCD_PINS_D7 36
  138. #if ENABLED(NEWPANEL)
  139. #define BTN_EN1 42
  140. #define BTN_EN2 40
  141. #define BTN_ENC 19
  142. #endif