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_AGCM4_RURAMPS4D_13.h 6.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  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. * Adafruit Grand Central M4 pin assignments ported by Giuliano Zaro
  23. */
  24. #ifndef ARDUINO_GRAND_CENTRAL_M4
  25. #error "Oops! Select 'Adafruit Grand Central M4' in 'Tools > Board.'"
  26. #endif
  27. #define BOARD_NAME "RuRAMPS4AGCM4 v1.3"
  28. //
  29. // Servos
  30. //
  31. #define SERVO0_PIN 5
  32. #define SERVO1_PIN 3
  33. //
  34. // Limit Switches
  35. //
  36. #define X_MIN_PIN 45
  37. #define X_MAX_PIN 39
  38. #define Y_MIN_PIN 46
  39. #define Y_MAX_PIN 41
  40. #define Z_MIN_PIN 47
  41. #define Z_MAX_PIN 43
  42. //
  43. // Z Probe (when not Z_MIN_PIN)
  44. //
  45. #ifndef Z_MIN_PROBE_PIN
  46. #define Z_MIN_PROBE_PIN 49
  47. #endif
  48. //
  49. // Steppers
  50. //
  51. #define X_STEP_PIN 37 // Support Extension Board
  52. #define X_DIR_PIN 36
  53. #define X_ENABLE_PIN 31
  54. #ifndef X_CS_PIN
  55. #define X_CS_PIN 38
  56. #endif
  57. #define Y_STEP_PIN 32 // Support Extension Board
  58. #define Y_DIR_PIN 35
  59. #define Y_ENABLE_PIN 31
  60. #ifndef Y_CS_PIN
  61. #define Y_CS_PIN 34
  62. #endif
  63. #define Z_STEP_PIN 30 // Support Extension Board
  64. #define Z_DIR_PIN 2
  65. #define Z_ENABLE_PIN 31
  66. #ifndef Z_CS_PIN
  67. #define Z_CS_PIN 10
  68. #endif
  69. #define E0_STEP_PIN 29
  70. #define E0_DIR_PIN 28
  71. #define E0_ENABLE_PIN 33
  72. #ifndef E0_CS_PIN
  73. #define E0_CS_PIN 14
  74. #endif
  75. #define E1_STEP_PIN 22
  76. #define E1_DIR_PIN 24
  77. #define E1_ENABLE_PIN 26
  78. #ifndef E1_CS_PIN
  79. #define E1_CS_PIN 15
  80. #endif
  81. #define E2_STEP_PIN 25
  82. #define E2_DIR_PIN 23
  83. #define E2_ENABLE_PIN 27
  84. #ifndef E2_CS_PIN
  85. #define E2_CS_PIN 74
  86. #endif
  87. #if USES_Z_MIN_PROBE_ENDSTOP
  88. #define Z_MIN_PROBE_PIN 49
  89. #endif
  90. #if HAS_FILAMENT_SENSOR
  91. #ifndef FIL_RUNOUT_PIN
  92. #define FIL_RUNOUT_PIN Y_MIN_PIN
  93. #endif
  94. #endif
  95. //
  96. // Heaters / Fans
  97. //
  98. #define HEATER_0_PIN 13
  99. #define HEATER_1_PIN 12
  100. #define HEATER_2_PIN 11
  101. #define HEATER_BED_PIN 7 // BED H1
  102. #define FAN_PIN 9
  103. #define FAN1_PIN 8
  104. #define CONTROLLER_FAN_PIN -1
  105. //
  106. // Temperature Sensors
  107. //
  108. #define TEMP_0_PIN 0 // ANALOG A0
  109. #define TEMP_1_PIN 1 // ANALOG A1
  110. #define TEMP_2_PIN 2 // ANALOG A2
  111. #define TEMP_3_PIN 3 // ANALOG A3
  112. #define TEMP_BED_PIN 4 // ANALOG A4
  113. // The thermocouple uses Analog pins
  114. #if ENABLED(VER_WITH_THERMOCOUPLE) // Must be defined in Configuration.h
  115. #define TEMP_4_PIN 5 // A5
  116. #define TEMP_5_PIN 6 // A6 (Marlin 2.0 not support)
  117. #endif
  118. // SPI for Max6675 or Max31855 Thermocouple
  119. /*
  120. #if DISABLED(SDSUPPORT)
  121. #define MAX6675_SS_PIN 53
  122. #else
  123. #define MAX6675_SS_PIN 49
  124. #endif
  125. */
  126. //
  127. // Misc. Functions
  128. //
  129. #define SDSS 4
  130. #define LED_PIN -1 // 13 - HEATER_0_PIN
  131. #define PS_ON_PIN -1 // 57
  132. // MKS TFT / Nextion Use internal USART-1
  133. #define TFT_LCD_MODULE_COM 1
  134. #define TFT_LCD_MODULE_BAUDRATE 115200
  135. // ESP WiFi Use internal USART-2
  136. #define ESP_WIFI_MODULE_COM 2
  137. #define ESP_WIFI_MODULE_BAUDRATE 115200
  138. #define ESP_WIFI_MODULE_RESET_PIN -1
  139. #define PIGGY_GPIO_PIN -1
  140. //
  141. // EEPROM
  142. //
  143. #define E2END 0x7FFF // 32Kb (24lc256)
  144. #define I2C_EEPROM // EEPROM on I2C
  145. //
  146. // LCD / Controller
  147. //
  148. #if HAS_SPI_LCD
  149. #if EITHER(RADDS_DISPLAY, REPRAP_DISCOUNT_SMART_CONTROLLER)
  150. #define BEEPER_PIN 75
  151. #define LCD_PINS_D4 48
  152. #define LCD_PINS_D7 53
  153. #define SD_DETECT_PIN -1 // 51 can't be used, it's MOSI
  154. #define LCD_PINS_RS 76
  155. #define LCD_PINS_ENABLE 77
  156. #elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
  157. #define BEEPER_PIN 75
  158. #define LCD_PINS_D4 48
  159. #define SD_DETECT_PIN -1 // 51 can't be used, it's MOSI
  160. #define LCD_PINS_RS 76
  161. #define LCD_PINS_ENABLE 77
  162. #elif HAS_SSD1306_OLED_I2C
  163. #define BEEPER_PIN 75
  164. #define LCD_SDSS 10
  165. #define SD_DETECT_PIN -1 // 51 can't be used, it's MOSI
  166. #elif ENABLED(FYSETC_MINI_12864)
  167. #define BEEPER_PIN 75
  168. #define DOGLCD_CS 77
  169. #define DOGLCD_A0 76
  170. //#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
  171. // results in LCD soft SPI mode 3, SD soft SPI mode 0
  172. #define LCD_RESET_PIN 48 // Must be high or open for LCD to operate normally.
  173. #if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
  174. #error "Pin compatibility check needed! Grand central M4 pins 50, 51 and 52 are not GPIO pins, they are wired to MISO, MOSI, and SCK."
  175. #ifndef RGB_LED_R_PIN
  176. #define RGB_LED_R_PIN 50 // D5
  177. #endif
  178. #ifndef RGB_LED_G_PIN
  179. #define RGB_LED_G_PIN 52 // D6
  180. #endif
  181. #ifndef RGB_LED_B_PIN
  182. #define RGB_LED_B_PIN 53 // D7
  183. #endif
  184. #elif ENABLED(FYSETC_MINI_12864_2_1)
  185. #error "Pin compatibility check needed! Grand central M4 pins 50, 51 and 52 are not GPIO pins, they are wired to MISO, MOSI, and SCK."
  186. #define NEOPIXEL_PIN 50 // D5
  187. #endif
  188. #elif ENABLED(MKS_MINI_12864)
  189. #error "Pin compatibility check needed! Grand central M4 pins 50, 51 and 52 are not GPIO pins, they are wired to MISO, MOSI, and SCK."
  190. #define ORIG_BEEPER_PIN 75
  191. #define DOGLCD_A0 52
  192. #define DOGLCD_CS 50
  193. #define SD_DETECT_PIN -1 // 51 can't be used, it's MOSI
  194. #endif
  195. #if ENABLED(NEWPANEL)
  196. #define BTN_EN1 44
  197. #define BTN_EN2 42
  198. #define BTN_ENC 40
  199. #endif
  200. #endif // HAS_SPI_LCD
  201. //
  202. // SD Support
  203. //
  204. #ifndef SDCARD_CONNECTION
  205. #define SDCARD_CONNECTION ONBOARD
  206. #endif
  207. #if SD_CONNECTION_IS(ONBOARD)
  208. #undef SDSS
  209. #define SDSS 83
  210. #undef SD_DETECT_PIN
  211. #define SD_DETECT_PIN 95
  212. #endif