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_BIGTREE_SKR_PRO_V1.1.h 5.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  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_STM32F4
  24. #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
  25. #endif
  26. #if HOTENDS > 3 || E_STEPPERS > 3
  27. #error "BIGTREE SKR Pro V1.1 supports up to 3 hotends / E-steppers."
  28. #endif
  29. #define BOARD_NAME "BIGTREE SKR Pro V1.1"
  30. #define SRAM_EEPROM_EMULATION
  31. //
  32. // Servos
  33. //
  34. #define SERVO0_PIN PA1
  35. //
  36. // Limit Switches
  37. //
  38. #define X_MIN_PIN PB10
  39. #define X_MAX_PIN PE15
  40. #define Y_MIN_PIN PE12
  41. #define Y_MAX_PIN PE10
  42. #define Z_MIN_PIN PG8
  43. #define Z_MAX_PIN PG5
  44. //
  45. // Z Probe must be this pins
  46. //
  47. #ifndef Z_MIN_PROBE_PIN
  48. #define Z_MIN_PROBE_PIN PA2
  49. #endif
  50. //
  51. // Steppers
  52. //
  53. #define X_STEP_PIN PE9
  54. #define X_DIR_PIN PF1
  55. #define X_ENABLE_PIN PF2
  56. #ifndef X_CS_PIN
  57. #define X_CS_PIN PA15
  58. #endif
  59. #define Y_STEP_PIN PE11
  60. #define Y_DIR_PIN PE8
  61. #define Y_ENABLE_PIN PD7
  62. #ifndef Y_CS_PIN
  63. #define Y_CS_PIN PB8
  64. #endif
  65. #define Z_STEP_PIN PE13
  66. #define Z_DIR_PIN PC2
  67. #define Z_ENABLE_PIN PC0
  68. #ifndef Z_CS_PIN
  69. #define Z_CS_PIN PB9
  70. #endif
  71. #define E0_STEP_PIN PE14
  72. #define E0_DIR_PIN PA0
  73. #define E0_ENABLE_PIN PC3
  74. #ifndef E0_CS_PIN
  75. #define E0_CS_PIN PB3
  76. #endif
  77. #define E1_STEP_PIN PD15
  78. #define E1_DIR_PIN PE7
  79. #define E1_ENABLE_PIN PA3
  80. #ifndef E1_CS_PIN
  81. #define E1_CS_PIN PG15
  82. #endif
  83. #define E2_STEP_PIN PD13
  84. #define E2_DIR_PIN PG9
  85. #define E2_ENABLE_PIN PF0
  86. #ifndef E2_CS_PIN
  87. #define E2_CS_PIN PG12
  88. #endif
  89. //
  90. // Software SPI pins for TMC2130 stepper drivers
  91. //
  92. #if ENABLED(TMC_USE_SW_SPI)
  93. #ifndef TMC_SW_MOSI
  94. #define TMC_SW_MOSI PC12
  95. #endif
  96. #ifndef TMC_SW_MISO
  97. #define TMC_SW_MISO PC11
  98. #endif
  99. #ifndef TMC_SW_SCK
  100. #define TMC_SW_SCK PC10
  101. #endif
  102. #endif
  103. #if HAS_TMC220x
  104. /**
  105. * TMC2208/TMC2209 stepper drivers
  106. *
  107. * Hardware serial communication ports.
  108. * If undefined software serial is used according to the pins below
  109. */
  110. //#define X_HARDWARE_SERIAL Serial
  111. //#define X2_HARDWARE_SERIAL Serial1
  112. //#define Y_HARDWARE_SERIAL Serial1
  113. //#define Y2_HARDWARE_SERIAL Serial1
  114. //#define Z_HARDWARE_SERIAL Serial1
  115. //#define Z2_HARDWARE_SERIAL Serial1
  116. //#define E0_HARDWARE_SERIAL Serial1
  117. //#define E1_HARDWARE_SERIAL Serial1
  118. //#define E2_HARDWARE_SERIAL Serial1
  119. //#define E3_HARDWARE_SERIAL Serial1
  120. //#define E4_HARDWARE_SERIAL Serial1
  121. //
  122. // Software serial
  123. //
  124. #define X_SERIAL_TX_PIN PC13
  125. #define X_SERIAL_RX_PIN PC13
  126. #define Y_SERIAL_TX_PIN PE3
  127. #define Y_SERIAL_RX_PIN PE3
  128. #define Z_SERIAL_TX_PIN PE1
  129. #define Z_SERIAL_RX_PIN PE1
  130. #define E0_SERIAL_TX_PIN PD4
  131. #define E0_SERIAL_RX_PIN PD4
  132. #define E1_SERIAL_TX_PIN PD1
  133. #define E1_SERIAL_RX_PIN PD1
  134. #define E2_SERIAL_TX_PIN PD6
  135. #define E2_SERIAL_RX_PIN PD6
  136. #endif
  137. //
  138. // Temperature Sensors
  139. //
  140. #define TEMP_0_PIN PF4 // T1 <-> E0
  141. #define TEMP_1_PIN PF5 // T2 <-> E1
  142. #define TEMP_2_PIN PF6 // T3 <-> E2
  143. #define TEMP_BED_PIN PF3 // T0 <-> Bed
  144. //
  145. // Heaters / Fans
  146. //
  147. #define HEATER_0_PIN PB1 // Heater0
  148. #define HEATER_1_PIN PD14 // Heater1
  149. #define HEATER_2_PIN PB0 // Heater1
  150. #define HEATER_BED_PIN PD12 // Hotbed
  151. #define FAN_PIN PC8 // Fan0
  152. #define FAN1_PIN PE5 // Fan1
  153. #define FAN2_PIN PE6 // Fan2
  154. //
  155. // Misc. Functions
  156. //
  157. #define SDSS PB12
  158. /**
  159. * _____ _____
  160. * NC | · · | GND 5V | · · | GND
  161. * RESET | · · | PF12(SD_DETECT) (LCD_D7) PG7 | · · | PG6 (LCD_D6)
  162. * (MOSI)PB15 | · · | PF11(BTN_EN2) (LCD_D5) PG3 | · · | PG2 (LCD_D4)
  163. * (SD_SS)PB12 | · · | PG10(BTN_EN1) (LCD_RS) PD10 | · · | PD11 (LCD_EN)
  164. * (SCK)PB13 | · · | PB14(MISO) (BTN_ENC) PA8 | · · | PG4 (BEEPER)
  165. *  ̄ ̄  ̄ ̄
  166. * EXP2 EXP1
  167. */
  168. //
  169. // LCDs and Controllers
  170. //
  171. #if HAS_SPI_LCD
  172. #define BEEPER_PIN PG4
  173. #define BTN_ENC PA8
  174. #if ENABLED(CR10_STOCKDISPLAY)
  175. #define LCD_PINS_RS PG6
  176. #define BTN_EN1 PD11
  177. #define BTN_EN2 PG2
  178. #define LCD_PINS_ENABLE PG7
  179. #define LCD_PINS_D4 PG3
  180. #else
  181. #define LCD_PINS_RS PD10
  182. #define BTN_EN1 PG10
  183. #define BTN_EN2 PF11
  184. #define SD_DETECT_PIN PF12
  185. #define LCD_SDSS PB12
  186. #define LCD_PINS_ENABLE PD11
  187. #define LCD_PINS_D4 PG2
  188. #if ENABLED(ULTIPANEL)
  189. #define LCD_PINS_D5 PG3
  190. #define LCD_PINS_D6 PG6
  191. #define LCD_PINS_D7 PG7
  192. #endif
  193. #endif
  194. // Alter timing for graphical display
  195. #if HAS_GRAPHICAL_LCD
  196. #ifndef ST7920_DELAY_1
  197. #define ST7920_DELAY_1 DELAY_NS(96)
  198. #endif
  199. #ifndef ST7920_DELAY_2
  200. #define ST7920_DELAY_2 DELAY_NS(48)
  201. #endif
  202. #ifndef ST7920_DELAY_3
  203. #define ST7920_DELAY_3 DELAY_NS(600)
  204. #endif
  205. #endif
  206. #endif // HAS_SPI_LCD