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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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 Revision A board pin assignments, based on the work of
  25. * George Robles (https://georges3dprinters.com) and
  26. * Richard Smith <galorin@gmail.com>
  27. */
  28. #define ALLOW_MEGA1280
  29. #include "env_validate.h"
  30. #ifndef BOARD_INFO_NAME
  31. #define BOARD_INFO_NAME "GT2560 Rev.A"
  32. #endif
  33. #define DEFAULT_MACHINE_NAME "Prusa i3 Pro B"
  34. //
  35. // Limit Switches
  36. //
  37. #define X_MIN_PIN 22
  38. #define X_MAX_PIN 24
  39. #define Y_MIN_PIN 26
  40. #define Y_MAX_PIN 28
  41. #define Z_MIN_PIN 30
  42. #if ENABLED(BLTOUCH)
  43. #if MB(GT2560_REV_A_PLUS)
  44. #define SERVO0_PIN 11
  45. #define Z_MAX_PIN 32
  46. #else
  47. #define SERVO0_PIN 32
  48. #define Z_MAX_PIN -1
  49. #endif
  50. #else
  51. #define Z_MAX_PIN 32
  52. #endif
  53. //
  54. // Steppers
  55. //
  56. #define X_STEP_PIN 25
  57. #define X_DIR_PIN 23
  58. #define X_ENABLE_PIN 27
  59. #define Y_STEP_PIN 31
  60. #define Y_DIR_PIN 33
  61. #define Y_ENABLE_PIN 29
  62. #define Z_STEP_PIN 37
  63. #define Z_DIR_PIN 39
  64. #define Z_ENABLE_PIN 35
  65. #define E0_STEP_PIN 43
  66. //#define E0_DIR_PIN 45
  67. #define E0_ENABLE_PIN 41
  68. #define E1_STEP_PIN 49
  69. #define E1_DIR_PIN 47
  70. #define E1_ENABLE_PIN 48
  71. //
  72. // Temperature Sensors
  73. //
  74. //#define TEMP_0_PIN 8
  75. //#define TEMP_1_PIN 9
  76. //#define TEMP_BED_PIN 10
  77. //
  78. // Heaters / Fans
  79. //
  80. //#define HEATER_0_PIN 2
  81. //#define HEATER_1_PIN 3
  82. //#define HEATER_BED_PIN 4
  83. //#ifndef FAN_PIN
  84. // #define FAN_PIN 7
  85. //#endif
  86. #define SPINDLE_LASER_PWM_PIN 45 // Extruder0 dir pin for laser PWM
  87. #define SPINDLE_LASER_ENA_PIN 2 // Heater0 to power laser with 12V
  88. //
  89. // Misc. Functions
  90. //
  91. #define SDSS 53
  92. #define LED_PIN 13
  93. #define PS_ON_PIN 12
  94. #define SUICIDE_PIN 54 // Must be enabled at startup to keep power flowing
  95. #define KILL_PIN -1
  96. #if HAS_WIRED_LCD
  97. #define BEEPER_PIN 18
  98. #if IS_NEWPANEL
  99. #if ENABLED(MKS_MINI_12864)
  100. #define DOGLCD_A0 5
  101. #define DOGLCD_CS 21
  102. #define BTN_EN1 40
  103. #define BTN_EN2 42
  104. #elif ENABLED(FYSETC_MINI_12864)
  105. // Disconnect EXP2-1 and EXP2-2, otherwise future firmware upload won't work.
  106. #define DOGLCD_A0 20
  107. #define DOGLCD_CS 17
  108. #define NEOPIXEL_PIN 21
  109. #define BTN_EN1 42
  110. #define BTN_EN2 40
  111. #define LCD_RESET_PIN 16
  112. #define LCD_CONTRAST_INIT 220
  113. #define LCD_BACKLIGHT_PIN -1
  114. #else
  115. #define LCD_PINS_RS 20
  116. #define LCD_PINS_ENABLE 17
  117. #define LCD_PINS_D4 16
  118. #define LCD_PINS_D5 21
  119. #define LCD_PINS_D6 5
  120. #define LCD_PINS_D7 6
  121. #define BTN_EN1 42
  122. #define BTN_EN2 40
  123. #endif
  124. #define BTN_ENC 19
  125. #define SD_DETECT_PIN 38
  126. #else // !IS_NEWPANEL
  127. #define SHIFT_CLK_PIN 38
  128. #define SHIFT_LD_PIN 42
  129. #define SHIFT_OUT_PIN 40
  130. #define SHIFT_EN_PIN 17
  131. #define LCD_PINS_RS 16
  132. #define LCD_PINS_ENABLE 5
  133. #define LCD_PINS_D4 6
  134. #define LCD_PINS_D5 21
  135. #define LCD_PINS_D6 20
  136. #define LCD_PINS_D7 19
  137. #if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
  138. #define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
  139. #endif
  140. #define SD_DETECT_PIN -1
  141. #endif // !IS_NEWPANEL
  142. #endif // HAS_WIRED_LCD