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_BTT_SKR_SE_BX.h 7.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2021 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. #if NOT_TARGET(STM32H7)
  24. #error "Oops! Select an STM32H7 board in 'Tools > Board.'"
  25. #endif
  26. #define BOARD_INFO_NAME "BTT SKR SE BX"
  27. #define DEFAULT_MACHINE_NAME "BIQU-BX"
  28. // Onboard I2C EEPROM
  29. #define I2C_EEPROM
  30. #define MARLIN_EEPROM_SIZE 0x1000 // 4KB (24C32 ... 32Kb = 4KB)
  31. // USB Flash Drive support
  32. #define HAS_OTG_USB_HOST_SUPPORT
  33. //
  34. // Limit Switches
  35. //
  36. #define X_MIN_PIN PB11
  37. #define X_MAX_PIN PD13
  38. #define Y_MIN_PIN PB12
  39. #define Y_MAX_PIN PB13
  40. #define Z_MIN_PIN PD12
  41. #define Z_MAX_PIN PD11
  42. #define FIL_RUNOUT_PIN PD13
  43. #define FIL_RUNOUT2_PIN PB13
  44. #define LED_PIN PA13
  45. #define BEEPER_PIN PA14
  46. #define TFT_BACKLIGHT_PIN PB5
  47. #define POWER_MONITOR_PIN PB0
  48. #define RPI_POWER_PIN PE5
  49. #define SAFE_POWER_PIN PI11
  50. #define SERVO0_PIN PA2
  51. //
  52. // Z Probe (when not Z_MIN_PIN)
  53. //
  54. #ifndef Z_MIN_PROBE_PIN
  55. #define Z_MIN_PROBE_PIN PH2 // Probe
  56. #endif
  57. //
  58. // Steppers
  59. //
  60. #define X_STEP_PIN PG13
  61. #define X_DIR_PIN PG12
  62. #define X_ENABLE_PIN PG14
  63. #define X_CS_PIN PG10
  64. #define Y_STEP_PIN PB3
  65. #define Y_DIR_PIN PD3
  66. #define Y_ENABLE_PIN PB4
  67. #define Y_CS_PIN PD4
  68. #define Z_STEP_PIN PD7
  69. #define Z_DIR_PIN PD6
  70. #define Z_ENABLE_PIN PG9
  71. #define Z_CS_PIN PD5
  72. #define E0_STEP_PIN PC14
  73. #define E0_DIR_PIN PC13
  74. #define E0_ENABLE_PIN PC15
  75. #define E0_CS_PIN PI8
  76. #define E1_STEP_PIN PA8
  77. #define E1_DIR_PIN PC9
  78. #define E1_ENABLE_PIN PD2
  79. #define E1_CS_PIN PC8
  80. //
  81. // Software SPI pins for TMC2130 stepper drivers
  82. //
  83. #if ENABLED(TMC_USE_SW_SPI)
  84. #ifndef TMC_SW_MOSI
  85. #define TMC_SW_MOSI PC6
  86. #endif
  87. #ifndef TMC_SW_MISO
  88. #define TMC_SW_MISO PG3
  89. #endif
  90. #ifndef TMC_SW_SCK
  91. #define TMC_SW_SCK PC7
  92. #endif
  93. #endif
  94. #if HAS_TMC_UART
  95. /**
  96. * TMC2208/TMC2209 stepper drivers
  97. *
  98. * Hardware serial communication ports.
  99. * If undefined software serial is used according to the pins below
  100. */
  101. //#define X_HARDWARE_SERIAL Serial
  102. //#define X2_HARDWARE_SERIAL Serial1
  103. //#define Y_HARDWARE_SERIAL Serial1
  104. //#define Y2_HARDWARE_SERIAL Serial1
  105. //#define Z_HARDWARE_SERIAL Serial1
  106. //#define Z2_HARDWARE_SERIAL Serial1
  107. //#define E0_HARDWARE_SERIAL Serial1
  108. //#define E1_HARDWARE_SERIAL Serial1
  109. //#define E2_HARDWARE_SERIAL Serial1
  110. //#define E3_HARDWARE_SERIAL Serial1
  111. //#define E4_HARDWARE_SERIAL Serial1
  112. //#define E5_HARDWARE_SERIAL Serial1
  113. //#define E6_HARDWARE_SERIAL Serial1
  114. //#define E7_HARDWARE_SERIAL Serial1
  115. //
  116. // Software serial
  117. //
  118. #define X_SERIAL_TX_PIN PG10
  119. #define X_SERIAL_RX_PIN PG10
  120. #define Y_SERIAL_TX_PIN PD4
  121. #define Y_SERIAL_RX_PIN PD4
  122. #define Z_SERIAL_TX_PIN PD5
  123. #define Z_SERIAL_RX_PIN PD5
  124. #define E0_SERIAL_TX_PIN PI8
  125. #define E0_SERIAL_RX_PIN PI8
  126. #define E1_SERIAL_TX_PIN PC8
  127. #define E1_SERIAL_RX_PIN PC8
  128. // Reduce baud rate to improve software serial reliability
  129. #define TMC_BAUD_RATE 19200
  130. #endif
  131. //
  132. // Temperature Sensors
  133. //
  134. #define TEMP_0_PIN PH4 // TH0
  135. #define TEMP_1_PIN PA3 // TH1
  136. #define TEMP_BED_PIN PH5 // TB
  137. //
  138. // Heaters / Fans
  139. //
  140. #define HEATER_0_PIN PC4
  141. #define HEATER_1_PIN PC5
  142. #define HEATER_BED_PIN PA4
  143. #define FAN_PIN PA5 // "FAN0"
  144. #define FAN1_PIN PA6 // "FAN1"
  145. #define FAN2_PIN PA7 // "FAN2"
  146. #define NEOPIXEL_PIN PH3
  147. #define NEOPIXEL2_PIN PB1
  148. #if HAS_LTDC_TFT
  149. // LTDC_LCD Timing
  150. #define LTDC_LCD_CLK 50 // LTDC clock frequency = 50Mhz
  151. #define LTDC_LCD_HSYNC 30 // Horizontal synchronization
  152. #define LTDC_LCD_HBP 114 // Horizontal back porch
  153. #define LTDC_LCD_HFP 16 // Horizontal front porch
  154. #define LTDC_LCD_VSYNC 3 // Vertical synchronization
  155. #define LTDC_LCD_VBP 32 // Vertical back porch
  156. #define LTDC_LCD_VFP 10 // Vertical front porch
  157. #define TFT_BACKLIGHT_PIN PB5
  158. #define LCD_DE_PIN PF10
  159. #define LCD_CLK_PIN PG7
  160. #define LCD_VSYNC_PIN PI9
  161. #define LCD_HSYNC_PIN PI10
  162. #define LCD_R7_PIN PG6 // R5
  163. #define LCD_R6_PIN PH12
  164. #define LCD_R5_PIN PH11
  165. #define LCD_R4_PIN PH10
  166. #define LCD_R3_PIN PH9
  167. #define LCD_G7_PIN PI2 // G6
  168. #define LCD_G6_PIN PI1
  169. #define LCD_G5_PIN PI0
  170. #define LCD_G4_PIN PH15
  171. #define LCD_G3_PIN PH14
  172. #define LCD_G2_PIN PH13
  173. #define LCD_B7_PIN PI7 // B5
  174. #define LCD_B6_PIN PI6
  175. #define LCD_B5_PIN PI5
  176. #define LCD_B4_PIN PI4
  177. #define LCD_B3_PIN PG11
  178. // GT911 Capacitive Touch Sensor
  179. #if ENABLED(TFT_TOUCH_DEVICE_GT911)
  180. #define GT911_RST_PIN PE4
  181. #define GT911_INT_PIN PE3
  182. #define GT911_SW_I2C_SCL_PIN PE2
  183. #define GT911_SW_I2C_SDA_PIN PE6
  184. #endif
  185. #endif
  186. #if IS_NEWPANEL
  187. #define BTN_EN1 PH6
  188. #define BTN_EN2 PH7
  189. #define BTN_ENC PH8
  190. #endif
  191. //
  192. // SD card
  193. //
  194. #ifndef SDCARD_CONNECTION
  195. #define SDCARD_CONNECTION ONBOARD
  196. #endif
  197. #define SOFTWARE_SPI
  198. #define SDSS PA15
  199. #define SD_SS_PIN SDSS
  200. #define SD_SCK_PIN PC10
  201. #define SD_MISO_PIN PC11
  202. #define SD_MOSI_PIN PC12
  203. #define SD_DETECT_PIN PI3