My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

pins_RURAMPS4D_13.h 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2016 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. * Ported sys0724 & Vynt
  22. */
  23. /**
  24. * Arduino Mega? or Due with RuRAMPS4DUE pin assignments
  25. *
  26. * Applies to the following boards:
  27. * RURAMPS4DUE (Hotend0, Hotend1, Hotend2, Fan0, Fan1, Bed)
  28. *
  29. * Differences between
  30. * RADDS | RuRAMPS4DUE
  31. * |
  32. */
  33. #ifndef __SAM3X8E__
  34. #error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
  35. #endif
  36. #ifndef BOARD_NAME
  37. #define BOARD_NAME "RuRAMPS4Due v1.3"
  38. #endif
  39. //
  40. // Servos
  41. //
  42. #define SERVO0_PIN 5
  43. #define SERVO1_PIN 3
  44. //
  45. // Limit Switches
  46. //
  47. #define X_MIN_PIN 45
  48. #define X_MAX_PIN 39
  49. #define Y_MIN_PIN 46
  50. #define Y_MAX_PIN 41
  51. #define Z_MIN_PIN 47
  52. #define Z_MAX_PIN 43
  53. //
  54. // Z Probe (when not Z_MIN_PIN)
  55. //
  56. #ifndef Z_MIN_PROBE_PIN
  57. #define Z_MIN_PROBE_PIN 49
  58. #endif
  59. //
  60. // Steppers
  61. //
  62. #define X_STEP_PIN 37 // Support Extension Board
  63. #define X_DIR_PIN 36
  64. #define X_ENABLE_PIN 31
  65. #ifndef X_CS_PIN
  66. #define X_CS_PIN 38
  67. #endif
  68. #define Y_STEP_PIN 32 // Support Extension Board
  69. #define Y_DIR_PIN 35
  70. #define Y_ENABLE_PIN 31
  71. #ifndef Y_CS_PIN
  72. #define Y_CS_PIN 34
  73. #endif
  74. #define Z_STEP_PIN 30 // Support Extension Board
  75. #define Z_DIR_PIN 2
  76. #define Z_ENABLE_PIN 31
  77. #ifndef Z_CS_PIN
  78. #define Z_CS_PIN 10
  79. #endif
  80. #define E0_STEP_PIN 29
  81. #define E0_DIR_PIN 28
  82. #define E0_ENABLE_PIN 33
  83. #ifndef E0_CS_PIN
  84. #define E0_CS_PIN 14
  85. #endif
  86. #define E1_STEP_PIN 22
  87. #define E1_DIR_PIN 24
  88. #define E1_ENABLE_PIN 26
  89. #ifndef E1_CS_PIN
  90. #define E1_CS_PIN 15
  91. #endif
  92. #define E2_STEP_PIN 25
  93. #define E2_DIR_PIN 23
  94. #define E2_ENABLE_PIN 27
  95. #ifndef E2_CS_PIN
  96. #define E2_CS_PIN 61
  97. #endif
  98. #if DISABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
  99. #define Z_MIN_PROBE_PIN 49
  100. #endif
  101. #if ENABLED(FILAMENT_RUNOUT_SENSOR)
  102. #ifndef FIL_RUNOUT_PIN
  103. #define FIL_RUNOUT_PIN Y_MIN_PIN
  104. #endif
  105. #endif
  106. //
  107. // Heaters / Fans
  108. //
  109. #define HEATER_0_PIN 13
  110. #define HEATER_1_PIN 12
  111. #define HEATER_2_PIN 11
  112. #define HEATER_BED_PIN 7 // BED H1
  113. #define FAN_PIN 9
  114. #define FAN1_PIN 8
  115. #define CONTROLLER_FAN_PIN -1
  116. //
  117. // Temperature Sensors
  118. //
  119. #define TEMP_0_PIN 0 // ANALOG A0
  120. #define TEMP_1_PIN 1 // ANALOG A1
  121. #define TEMP_2_PIN 2 // ANALOG A2
  122. #define TEMP_3_PIN 3 // ANALOG A2
  123. #define TEMP_BED_PIN 4 // ANALOG A3
  124. // The thermocouple uses Analog pins
  125. #if ENABLED(VER_WITH_THERMOCOUPLE) // Defined in Configuration.h
  126. #define TEMP_4_PIN 5 // A5
  127. #define TEMP_5_PIN 6 // A6 (Marlin 2.0 not support)
  128. #endif
  129. // SPI for Max6675 or Max31855 Thermocouple
  130. //#if DISABLED(SDSUPPORT)
  131. // #define MAX6675_SS 53
  132. //#else
  133. // #define MAX6675_SS 49
  134. //#endif
  135. //
  136. // Misc. Functions
  137. //
  138. #define SDSS 4 // 4,10,52 if using HW SPI.
  139. #define LED_PIN -1 // 13 - HEATER_0_PIN
  140. #define PS_ON_PIN -1 // 65
  141. // MKS TFT / Nextion Use internal USART-1
  142. #define TFT_LCD_MODULE_COM 1
  143. #define TFT_LCD_MODULE_BAUDRATE 115600
  144. // ESP WiFi Use internal USART-2
  145. #define ESP_WIFI_MODULE_COM 2
  146. #define ESP_WIFI_MODULE_BAUDRATE 115600
  147. #define ESP_WIFI_MODULE_RESET_PIN -1
  148. #define PIGGY_GPIO_PIN -1
  149. //
  150. // EEPROM
  151. //
  152. #define E2END 0x8000 // 32Kb (24lc256)
  153. #define I2C_EEPROM // EEPROM on I2C-0
  154. //#define EEPROM_SD // EEPROM on SDCARD
  155. //#define SPI_EEPROM // EEPROM on SPI-0
  156. //#define SPI_CHAN_EEPROM1 ?
  157. //#define SPI_EEPROM1_CS ?
  158. // 2K EEPROM
  159. //#define SPI_EEPROM2_CS ?
  160. // 32Mb FLASH
  161. //#define SPI_FLASH_CS ?
  162. //
  163. // LCD / Controller
  164. //
  165. #if ENABLED(ULTRA_LCD)
  166. #if ENABLED(RADDS_DISPLAY) || ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
  167. #define BEEPER_PIN 62
  168. #define LCD_PINS_RS 63
  169. #define LCD_PINS_ENABLE 64
  170. #define LCD_PINS_D4 48
  171. #define LCD_PINS_D5 50
  172. #define LCD_PINS_D6 52
  173. #define LCD_PINS_D7 53
  174. #define SD_DETECT_PIN 51
  175. #elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
  176. #define BEEPER_PIN 62
  177. #define LCD_PINS_RS 52
  178. #define LCD_PINS_ENABLE 53
  179. #define LCD_PINS_D4 48
  180. #define LCD_PINS_D5 50
  181. #define LCD_PINS_D6 52
  182. #define LCD_PINS_D7 53
  183. #define SD_DETECT_PIN 51
  184. #elif ENABLED(SSD1306_OLED_I2C_CONTROLLER)
  185. #define BEEPER_PIN 62
  186. #define LCD_SDSS 10
  187. #define SD_DETECT_PIN 51
  188. #elif ENABLED(MKS_MINI_12864)
  189. #define ORIG_BEEPER_PIN 62
  190. #define DOGLCD_A0 52
  191. #define DOGLCD_CS 50
  192. #define SD_DETECT_PIN 51
  193. #endif
  194. #if ENABLED(NEWPANEL)
  195. #define BTN_EN1 44
  196. #define BTN_EN2 42
  197. #define BTN_ENC 40
  198. #endif
  199. #endif // ULTRA_LCD