My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

pins_FYSETC_S6.h 6.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2020 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 STM32F4
  24. #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
  25. #elif HOTENDS > 3 || E_STEPPERS > 3
  26. #error "RUMBA32 supports up to 3 hotends / E-steppers."
  27. #endif
  28. #ifndef BOARD_INFO_NAME
  29. #define BOARD_INFO_NAME "FYSETC_S6"
  30. #endif
  31. #ifndef DEFAULT_MACHINE_NAME
  32. #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
  33. #endif
  34. // change the prio to 3 , 2 is for software serial
  35. //#define TEMP_TIMER_IRQ_PRIO 3
  36. //
  37. // EEPROM Emulation
  38. //
  39. #define FLASH_EEPROM_EMULATION
  40. #if ENABLED(FLASH_EEPROM_EMULATION)
  41. #define FLASH_EEPROM_LEVELING
  42. #endif
  43. //#define SRAM_EEPROM_EMULATION
  44. //#define I2C_EEPROM
  45. #ifdef I2C_EEPROM
  46. #undef E2END // Defined in Arduino Core STM32 to be used with EEPROM emulation. This board uses a real EEPROM.
  47. #define E2END 0xFFF // 4KB
  48. #endif
  49. //
  50. // Servos
  51. //
  52. #define SERVO0_PIN PA3
  53. //
  54. // Limit Switches
  55. //
  56. #define X_MIN_PIN PB14
  57. #define X_MAX_PIN PA1
  58. #define Y_MIN_PIN PB13
  59. #define Y_MAX_PIN PA2
  60. #define Z_MIN_PIN PA0
  61. #define Z_MAX_PIN PA3
  62. //
  63. // Filament Sensor
  64. // share with X_MAX_PIN
  65. //
  66. #ifndef FIL_RUNOUT_PIN
  67. #define FIL_RUNOUT_PIN PA1
  68. #endif
  69. //
  70. // Steppers
  71. //
  72. #define X_STEP_PIN PE11
  73. #define X_DIR_PIN PE10
  74. #define X_ENABLE_PIN PE12
  75. #define X_CS_PIN PE7
  76. #define Y_STEP_PIN PD8
  77. #define Y_DIR_PIN PB12
  78. #define Y_ENABLE_PIN PD9
  79. #define Y_CS_PIN PE15
  80. #define Z_STEP_PIN PD14
  81. #define Z_DIR_PIN PD13
  82. #define Z_ENABLE_PIN PD15
  83. #define Z_CS_PIN PD10
  84. #define E0_STEP_PIN PD5
  85. #define E0_DIR_PIN PD6
  86. #define E0_ENABLE_PIN PD4
  87. #define E0_CS_PIN PD7
  88. #define E1_STEP_PIN PE6
  89. #define E1_DIR_PIN PC13
  90. #define E1_ENABLE_PIN PE5
  91. #define E1_CS_PIN PC14
  92. #define E2_STEP_PIN PE2
  93. #define E2_DIR_PIN PE4
  94. #define E2_ENABLE_PIN PE3
  95. #define E2_CS_PIN PC15
  96. #if HAS_TMC220x
  97. //
  98. // TMC2208/TMC2209 stepper drivers
  99. //
  100. //
  101. // Software serial
  102. //
  103. #define X_SERIAL_TX_PIN PE9
  104. #define X_SERIAL_RX_PIN PE8
  105. #define Y_SERIAL_TX_PIN PE14
  106. #define Y_SERIAL_RX_PIN PE13
  107. #define Z_SERIAL_TX_PIN PD11
  108. #define Z_SERIAL_RX_PIN PD12
  109. #define E0_SERIAL_TX_PIN PD3
  110. #define E0_SERIAL_RX_PIN PA15
  111. #define E1_SERIAL_TX_PIN PC4
  112. #define E1_SERIAL_RX_PIN PC5
  113. #define E2_SERIAL_TX_PIN PE1
  114. #define E2_SERIAL_RX_PIN PE0
  115. #endif
  116. //
  117. // Temperature Sensors
  118. //
  119. #define TEMP_0_PIN PC0
  120. #define TEMP_1_PIN PC1
  121. #define TEMP_2_PIN PC2
  122. #define TEMP_BED_PIN PC3
  123. //
  124. // Heaters / Fans
  125. //
  126. #define HEATER_0_PIN PB3
  127. #define HEATER_1_PIN PB4
  128. #define HEATER_2_PIN PB15
  129. #define HEATER_BED_PIN PC8
  130. #define FAN_PIN PB0
  131. #define FAN1_PIN PB1
  132. #define FAN2_PIN PB2
  133. //
  134. // SPI
  135. //
  136. #define SCK_PIN PA5
  137. #define MISO_PIN PA6
  138. #define MOSI_PIN PA7
  139. //
  140. // Misc. Functions
  141. //
  142. //#define LED_PIN PB14
  143. //#define BTN_PIN PC10
  144. //#define PS_ON_PIN PE11
  145. //#define KILL_PIN PC5
  146. #define SDSS PA4
  147. #define SD_DETECT_PIN PB10
  148. //
  149. // LCD / Controller
  150. //
  151. #if HAS_SPI_LCD
  152. #define BEEPER_PIN PC9
  153. #define BTN_ENC PA8
  154. #if ENABLED(CR10_STOCKDISPLAY)
  155. #define LCD_PINS_RS PD0
  156. #define BTN_EN1 PC11
  157. #define BTN_EN2 PC10
  158. #define LCD_PINS_ENABLE PD1
  159. #define LCD_PINS_D4 PC12
  160. // CR10_Stock Display needs a different delay setting on SKR PRO v1.1, so undef it here.
  161. // It will be defined again at the #HAS_GRAPHICAL_LCD section below.
  162. #undef ST7920_DELAY_1
  163. #undef ST7920_DELAY_2
  164. #undef ST7920_DELAY_3
  165. #else
  166. #define LCD_PINS_RS PD2
  167. #define BTN_EN1 PC6
  168. #define BTN_EN2 PC7
  169. #define LCD_SDSS PA4
  170. #define LCD_PINS_ENABLE PC11
  171. #define LCD_PINS_D4 PC10
  172. #if ENABLED(FYSETC_MINI_12864)
  173. // See https://wiki.fysetc.com/Mini12864_Panel
  174. #define DOGLCD_CS PC11
  175. #define DOGLCD_A0 PD2
  176. #if ENABLED(FYSETC_GENERIC_12864_1_1)
  177. #define LCD_BACKLIGHT_PIN PD0
  178. #endif
  179. #define LCD_RESET_PIN PC10 // Must be high or open for LCD to operate normally.
  180. #if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
  181. #ifndef RGB_LED_R_PIN
  182. #define RGB_LED_R_PIN PC12
  183. #endif
  184. #ifndef RGB_LED_G_PIN
  185. #define RGB_LED_G_PIN PD0
  186. #endif
  187. #ifndef RGB_LED_B_PIN
  188. #define RGB_LED_B_PIN PD1
  189. #endif
  190. #elif ENABLED(FYSETC_MINI_12864_2_1)
  191. #define NEOPIXEL_PIN PC12
  192. #endif
  193. #endif // !FYSETC_MINI_12864
  194. #if ENABLED(ULTIPANEL)
  195. #define LCD_PINS_D5 PC12
  196. #define LCD_PINS_D6 PD0
  197. #define LCD_PINS_D7 PD1
  198. #endif
  199. #endif
  200. // Alter timing for graphical display
  201. #if HAS_GRAPHICAL_LCD
  202. #ifndef ST7920_DELAY_1
  203. #define ST7920_DELAY_1 DELAY_NS(96)
  204. #endif
  205. #ifndef ST7920_DELAY_2
  206. #define ST7920_DELAY_2 DELAY_NS(48)
  207. #endif
  208. #ifndef ST7920_DELAY_3
  209. #define ST7920_DELAY_3 DELAY_NS(600)
  210. #endif
  211. #endif
  212. #endif // HAS_SPI_LCD
  213. #ifndef RGB_LED_R_PIN
  214. #define RGB_LED_R_PIN PB6
  215. #endif
  216. #ifndef RGB_LED_G_PIN
  217. #define RGB_LED_G_PIN PB5
  218. #endif
  219. #ifndef RGB_LED_B_PIN
  220. #define RGB_LED_B_PIN PB7
  221. #endif
  222. #ifndef RGB_LED_W_PIN
  223. #define RGB_LED_W_PIN -1
  224. #endif