My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

pins_BIGTREE_SKR_MINI_V1_1.h 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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. */
  22. #ifndef TARGET_STM32F1
  23. #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
  24. #endif
  25. #ifndef BOARD_NAME
  26. #define BOARD_NAME "BIGTREE SKR mini V1.1"
  27. #endif
  28. //#define DISABLE_DEBUG
  29. #define DISABLE_JTAG
  30. // Ignore temp readings during develpment.
  31. //#define BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE
  32. //
  33. // Limit Switches
  34. //
  35. #define X_MIN_PIN PC2
  36. #define X_MAX_PIN PA2
  37. #define Y_MIN_PIN PC1
  38. #define Y_MAX_PIN PA1
  39. #define Z_MIN_PIN PC0
  40. #define Z_MAX_PIN PC3
  41. //
  42. // Steppers
  43. //
  44. /**
  45. * TODO: Currently using same Enable pin for all steppers.
  46. */
  47. #define X_STEP_PIN PC6
  48. #define X_DIR_PIN PC7
  49. #define X_ENABLE_PIN PB15
  50. #define Y_STEP_PIN PB13
  51. #define Y_DIR_PIN PB14
  52. #define Y_ENABLE_PIN PB12
  53. #define Z_STEP_PIN PB10
  54. #define Z_DIR_PIN PB11
  55. #define Z_ENABLE_PIN PB2
  56. #define E0_STEP_PIN PC5
  57. #define E0_DIR_PIN PB0
  58. #define E0_ENABLE_PIN PC4
  59. #if ENABLED(TMC_USE_SW_SPI)
  60. #define TMC_SW_SCK PB3
  61. #define TMC_SW_MISO PB4
  62. #define TMC_SW_MOSI PB5
  63. #endif
  64. //
  65. // Heaters / Fans
  66. //
  67. #define HEATER_0_PIN PA8
  68. #define FAN_PIN PC8
  69. #define HEATER_BED_PIN PC9
  70. //
  71. // Temperature Sensors
  72. //
  73. #define TEMP_BED_PIN PB1 // Analog Input
  74. #define TEMP_0_PIN PA0 // Analog Input
  75. //
  76. // LCD Pins
  77. //
  78. /**
  79. * _____ _____
  80. * NC | · · | GND 5V | · · | GND
  81. * RESET | · · | PB9 (SD_DETECT) (LCD_D7) PC14 | · · | PC15 (LCD_D6)
  82. * (MOSI) PB5 | · · | PB8 (BTN_EN2) (LCD_D5) PB7 | · · | PC13 (LCD_D4)
  83. * (SD_SS) PA15 | · · | PD2 (BTN_EN1) (LCD_RS) PC12 | · · | PB6 (LCD_EN)
  84. * (SCK) PB3 | · · | PB4 (MISO) (BTN_ENC) PC11 | · · | PC10 (BEEPER)
  85. * ----- -----
  86. * EXP2 EXP1
  87. */
  88. #if HAS_SPI_LCD
  89. #define BEEPER_PIN PC10
  90. #define BTN_ENC PC11
  91. #define LCD_PINS_RS PC12
  92. #define BTN_EN1 PD2
  93. #define BTN_EN2 PB8
  94. #define LCD_PINS_ENABLE PB6
  95. #if ENABLED(FYSETC_MINI_12864)
  96. #define LCD_BACKLIGHT_PIN -1
  97. #define LCD_RESET_PIN PC13
  98. #define DOGLCD_A0 PC12
  99. #define DOGLCD_CS PB6
  100. #define DOGLCD_SCK PB3
  101. #define DOGLCD_MOSI PB5
  102. #define FORCE_SOFT_SPI // SPI MODE3
  103. #define LED_PIN PB7 // red pwm
  104. //#define LED_PIN PC15 // green
  105. //#define LED_PIN PC14 // blue
  106. //#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
  107. // #ifndef RGB_LED_R_PIN
  108. // #define RGB_LED_R_PIN PB7
  109. // #endif
  110. // #ifndef RGB_LED_G_PIN
  111. // #define RGB_LED_G_PIN PC15
  112. // #endif
  113. // #ifndef RGB_LED_B_PIN
  114. // #define RGB_LED_B_PIN PC14
  115. // #endif
  116. //#elif ENABLED(FYSETC_MINI_12864_2_1)
  117. // #define NEOPIXEL_PIN PB7
  118. //#endif
  119. #else // !FYSETC_MINI_12864
  120. #define LCD_PINS_D4 PC13
  121. #if ENABLED(ULTIPANEL)
  122. #define LCD_PINS_D5 PB7
  123. #define LCD_PINS_D6 PC15
  124. #define LCD_PINS_D7 PC14
  125. #endif
  126. #endif // !FYSETC_MINI_12864
  127. #endif // HAS_SPI_LCD
  128. //
  129. // SD Card
  130. //
  131. // By default the onboard SD is enabled.
  132. // To disable it and use an external SD (connected to LCD)
  133. // enable STM32_SD_LCD.
  134. //#define STM32_SD_LCD
  135. #if ENABLED(STM32_SD_LCD)
  136. #define ENABLE_SPI3
  137. #define SD_DETECT_PIN PB9
  138. #define SCK_PIN PB3
  139. #define MISO_PIN PB4
  140. #define MOSI_PIN PB5
  141. #define SS_PIN PA15
  142. #else
  143. #define SDCARD_CONNECTION ONBOARD
  144. #define ENABLE_SPI1
  145. #define SD_DETECT_PIN PA3
  146. #define SCK_PIN PA5
  147. #define MISO_PIN PA6
  148. #define MOSI_PIN PA7
  149. #define SS_PIN PA4
  150. #endif
  151. #ifndef ST7920_DELAY_1
  152. #define ST7920_DELAY_1 DELAY_NS(125)
  153. #endif
  154. #ifndef ST7920_DELAY_2
  155. #define ST7920_DELAY_2 DELAY_NS(125)
  156. #endif
  157. #ifndef ST7920_DELAY_3
  158. #define ST7920_DELAY_3 DELAY_NS(125)
  159. #endif