My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

pins_BIGTREE_SKR_V1.3.h 7.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  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. #pragma once
  23. #ifndef TARGET_LPC1768
  24. #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
  25. #endif
  26. #define BOARD_INFO_NAME "BIGTREE SKR 1.3"
  27. // Ignore temp readings during development.
  28. //#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
  29. //
  30. // Servos
  31. //
  32. #define SERVO0_PIN P2_00
  33. //
  34. // Limit Switches
  35. //
  36. #define X_MIN_PIN P1_29
  37. #define X_MAX_PIN P1_28
  38. #define Y_MIN_PIN P1_27
  39. #define Y_MAX_PIN P1_26
  40. #define Z_MIN_PIN P1_25
  41. #define Z_MAX_PIN P1_24
  42. //
  43. // Z Probe (when not Z_MIN_PIN)
  44. //
  45. #ifndef Z_MIN_PROBE_PIN
  46. #define Z_MIN_PROBE_PIN P1_24
  47. #endif
  48. //
  49. // Filament Runout Sensor
  50. //
  51. #ifndef FIL_RUNOUT_PIN
  52. #define FIL_RUNOUT_PIN P1_28
  53. #endif
  54. //
  55. // Steppers
  56. //
  57. #define X_STEP_PIN P2_02
  58. #define X_DIR_PIN P2_06
  59. #define X_ENABLE_PIN P2_01
  60. #ifndef X_CS_PIN
  61. #define X_CS_PIN P1_17
  62. #endif
  63. #define Y_STEP_PIN P0_19
  64. #define Y_DIR_PIN P0_20
  65. #define Y_ENABLE_PIN P2_08
  66. #ifndef Y_CS_PIN
  67. #define Y_CS_PIN P1_15
  68. #endif
  69. #define Z_STEP_PIN P0_22
  70. #define Z_DIR_PIN P2_11
  71. #define Z_ENABLE_PIN P0_21
  72. #ifndef Z_CS_PIN
  73. #define Z_CS_PIN P1_10
  74. #endif
  75. #define E0_STEP_PIN P2_13
  76. #define E0_DIR_PIN P0_11
  77. #define E0_ENABLE_PIN P2_12
  78. #ifndef E0_CS_PIN
  79. #define E0_CS_PIN P1_08
  80. #endif
  81. #define E1_STEP_PIN P0_01
  82. #define E1_DIR_PIN P0_00
  83. #define E1_ENABLE_PIN P0_10
  84. #ifndef E1_CS_PIN
  85. #define E1_CS_PIN P1_01
  86. #endif
  87. //
  88. // Software SPI pins for TMC2130 stepper drivers
  89. //
  90. #if ENABLED(TMC_USE_SW_SPI)
  91. #ifndef TMC_SW_MOSI
  92. #define TMC_SW_MOSI P4_28
  93. #endif
  94. #ifndef TMC_SW_MISO
  95. #define TMC_SW_MISO P0_05
  96. #endif
  97. #ifndef TMC_SW_SCK
  98. #define TMC_SW_SCK P0_04
  99. #endif
  100. #endif
  101. #if HAS_TMC220x
  102. /**
  103. * TMC2208/TMC2209 stepper drivers
  104. *
  105. * Hardware serial communication ports.
  106. * If undefined software serial is used according to the pins below
  107. */
  108. //#define X_HARDWARE_SERIAL Serial
  109. //#define X2_HARDWARE_SERIAL Serial1
  110. //#define Y_HARDWARE_SERIAL Serial1
  111. //#define Y2_HARDWARE_SERIAL Serial1
  112. //#define Z_HARDWARE_SERIAL Serial1
  113. //#define Z2_HARDWARE_SERIAL Serial1
  114. //#define E0_HARDWARE_SERIAL Serial1
  115. //#define E1_HARDWARE_SERIAL Serial1
  116. //#define E2_HARDWARE_SERIAL Serial1
  117. //#define E3_HARDWARE_SERIAL Serial1
  118. //#define E4_HARDWARE_SERIAL Serial1
  119. //
  120. // Software serial
  121. //
  122. #define X_SERIAL_TX_PIN P4_29
  123. #define X_SERIAL_RX_PIN P1_17
  124. #define Y_SERIAL_TX_PIN P1_16
  125. #define Y_SERIAL_RX_PIN P1_15
  126. #define Z_SERIAL_TX_PIN P1_14
  127. #define Z_SERIAL_RX_PIN P1_10
  128. #define E0_SERIAL_TX_PIN P1_09
  129. #define E0_SERIAL_RX_PIN P1_08
  130. #define E1_SERIAL_TX_PIN P1_04
  131. #define E1_SERIAL_RX_PIN P1_01
  132. #define Z2_SERIAL_TX_PIN P1_04
  133. #define Z2_SERIAL_RX_PIN P1_01
  134. #endif
  135. //
  136. // Temperature Sensors
  137. // 3.3V max when defined as an analog input
  138. //
  139. #define TEMP_BED_PIN 0 // A0 (T0) - (67) - TEMP_BED_PIN
  140. #define TEMP_0_PIN 1 // A1 (T1) - (68) - TEMP_0_PIN
  141. #define TEMP_1_PIN 2 // A2 (T2) - (69) - TEMP_1_PIN
  142. //
  143. // Heaters / Fans
  144. //
  145. #define HEATER_0_PIN P2_07
  146. #if HOTENDS == 1
  147. #define FAN1_PIN P2_04
  148. #else
  149. #define HEATER_1_PIN P2_04
  150. #endif
  151. #define FAN_PIN P2_03
  152. #define HEATER_BED_PIN P2_05
  153. /**
  154. * _____ _____
  155. * NC | · · | GND 5V | · · | GND
  156. * RESET | · · | 1.31(SD_DETECT) (LCD_D7) 1.23 | · · | 1.22 (LCD_D6)
  157. * (MOSI)0.18 | · · | 3.25(BTN_EN2) (LCD_D5) 1.21 | · · | 1.20 (LCD_D4)
  158. * (SD_SS)0.16 | · · | 3.26(BTN_EN1) (LCD_RS) 1.19 | · · | 1.18 (LCD_EN)
  159. * (SCK)0.15 | · · | 0.17(MISO) (BTN_ENC) 0.28 | · · | 1.30 (BEEPER)
  160. * ----- -----
  161. * EXP2 EXP1
  162. */
  163. #if HAS_SPI_LCD
  164. #define BEEPER_PIN P1_30 // (37) not 5V tolerant
  165. #define BTN_ENC P0_28 // (58) open-drain
  166. #if ENABLED(CR10_STOCKDISPLAY)
  167. #define LCD_PINS_RS P1_22
  168. #define BTN_EN1 P1_18
  169. #define BTN_EN2 P1_20
  170. #define LCD_PINS_ENABLE P1_23
  171. #define LCD_PINS_D4 P1_21
  172. #else
  173. #define LCD_PINS_RS P1_19
  174. #define BTN_EN1 P3_26 // (31) J3-2 & AUX-4
  175. #define BTN_EN2 P3_25 // (33) J3-4 & AUX-4
  176. #define LCD_PINS_ENABLE P1_18
  177. #define LCD_PINS_D4 P1_20
  178. #define LCD_SDSS P0_16 // (16) J3-7 & AUX-4
  179. #define SD_DETECT_PIN P1_31 // (49) (NOT 5V tolerant)
  180. #if ENABLED(FYSETC_MINI_12864)
  181. #define DOGLCD_CS P1_18
  182. #define DOGLCD_A0 P1_19
  183. #define DOGLCD_SCK P0_15
  184. #define DOGLCD_MOSI P0_18
  185. #define FORCE_SOFT_SPI
  186. #define LCD_BACKLIGHT_PIN -1
  187. #define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
  188. // results in LCD soft SPI mode 3, SD soft SPI mode 0
  189. #define LCD_RESET_PIN P1_20 // Must be high or open for LCD to operate normally.
  190. #if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
  191. #ifndef RGB_LED_R_PIN
  192. #define RGB_LED_R_PIN P1_21
  193. #endif
  194. #ifndef RGB_LED_G_PIN
  195. #define RGB_LED_G_PIN P1_22
  196. #endif
  197. #ifndef RGB_LED_B_PIN
  198. #define RGB_LED_B_PIN P1_23
  199. #endif
  200. #elif ENABLED(FYSETC_MINI_12864_2_1)
  201. #define NEOPIXEL_PIN P1_21
  202. #endif
  203. #else // !FYSETC_MINI_12864
  204. #if ENABLED(MKS_MINI_12864)
  205. #define DOGLCD_CS P1_21
  206. #define DOGLCD_A0 P1_22
  207. #endif
  208. #if ENABLED(ULTIPANEL)
  209. #define LCD_PINS_D5 P1_21
  210. #define LCD_PINS_D6 P1_22
  211. #define LCD_PINS_D7 P1_23
  212. #endif
  213. #endif // !FYSETC_MINI_12864
  214. #endif
  215. #endif // HAS_SPI_LCD
  216. //
  217. // SD Support
  218. //
  219. #ifndef SDCARD_CONNECTION
  220. #define SDCARD_CONNECTION LCD
  221. #endif
  222. #define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
  223. #if SD_CONNECTION_IS(LCD)
  224. #define SCK_PIN P0_15
  225. #define MISO_PIN P0_17
  226. #define MOSI_PIN P0_18
  227. #define SS_PIN P0_16
  228. #elif SD_CONNECTION_IS(ONBOARD)
  229. #undef SD_DETECT_PIN
  230. #define SD_DETECT_PIN P0_27
  231. #define SCK_PIN P0_07
  232. #define MISO_PIN P0_08
  233. #define MOSI_PIN P0_09
  234. #define SS_PIN ONBOARD_SD_CS_PIN
  235. #elif SD_CONNECTION_IS(CUSTOM_CABLE)
  236. #error "No custom SD drive cable defined for this board."
  237. #endif
  238. /**
  239. * Special pins
  240. * P1_30 (37) (NOT 5V tolerant)
  241. * P1_31 (49) (NOT 5V tolerant)
  242. * P0_27 (57) (Open collector)
  243. * P0_28 (58) (Open collector)
  244. */