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_MINI_V1_1.h 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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. #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. #define X_STEP_PIN PC6
  45. #define X_DIR_PIN PC7
  46. #define X_ENABLE_PIN PB15
  47. #define Y_STEP_PIN PB13
  48. #define Y_DIR_PIN PB14
  49. #define Y_ENABLE_PIN PB12
  50. #define Z_STEP_PIN PB10
  51. #define Z_DIR_PIN PB11
  52. #define Z_ENABLE_PIN PB2
  53. #define E0_STEP_PIN PC5
  54. #define E0_DIR_PIN PB0
  55. #define E0_ENABLE_PIN PC4
  56. #if ENABLED(TMC_USE_SW_SPI)
  57. #define TMC_SW_SCK PB3
  58. #define TMC_SW_MISO PB4
  59. #define TMC_SW_MOSI PB5
  60. #endif
  61. //
  62. // Heaters / Fans
  63. //
  64. #define HEATER_0_PIN PA8
  65. #define FAN_PIN PC8
  66. #define HEATER_BED_PIN PC9
  67. //
  68. // Temperature Sensors
  69. //
  70. #define TEMP_BED_PIN PB1 // Analog Input
  71. #define TEMP_0_PIN PA0 // Analog Input
  72. //
  73. // LCD Pins
  74. //
  75. /**
  76. * _____ _____
  77. * NC | · · | GND 5V | · · | GND
  78. * RESET | · · | PB9 (SD_DETECT) (LCD_D7) PC14 | · · | PC15 (LCD_D6)
  79. * (MOSI) PB5 | · · | PB8 (BTN_EN2) (LCD_D5) PB7 | · · | PC13 (LCD_D4)
  80. * (SD_SS) PA15 | · · | PD2 (BTN_EN1) (LCD_RS) PC12 | · · | PB6 (LCD_EN)
  81. * (SCK) PB3 | · · | PB4 (MISO) (BTN_ENC) PC11 | · · | PC10 (BEEPER)
  82. * ----- -----
  83. * EXP2 EXP1
  84. */
  85. #if HAS_SPI_LCD
  86. #define BEEPER_PIN PC10
  87. #define BTN_ENC PC11
  88. #define LCD_PINS_RS PC12
  89. #define BTN_EN1 PD2
  90. #define BTN_EN2 PB8
  91. #define LCD_PINS_ENABLE PB6
  92. #if ENABLED(FYSETC_MINI_12864)
  93. #define LCD_BACKLIGHT_PIN -1
  94. #define LCD_RESET_PIN PC13
  95. #define DOGLCD_A0 PC12
  96. #define DOGLCD_CS PB6
  97. #define DOGLCD_SCK PB3
  98. #define DOGLCD_MOSI PB5
  99. #define FORCE_SOFT_SPI // SPI MODE3
  100. #define LED_PIN PB7 // red pwm
  101. //#define LED_PIN PC15 // green
  102. //#define LED_PIN PC14 // blue
  103. //#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
  104. // #ifndef RGB_LED_R_PIN
  105. // #define RGB_LED_R_PIN PB7
  106. // #endif
  107. // #ifndef RGB_LED_G_PIN
  108. // #define RGB_LED_G_PIN PC15
  109. // #endif
  110. // #ifndef RGB_LED_B_PIN
  111. // #define RGB_LED_B_PIN PC14
  112. // #endif
  113. //#elif ENABLED(FYSETC_MINI_12864_2_1)
  114. // #define NEOPIXEL_PIN PB7
  115. //#endif
  116. #else // !FYSETC_MINI_12864
  117. #define LCD_PINS_D4 PC13
  118. #if ENABLED(ULTIPANEL)
  119. #define LCD_PINS_D5 PB7
  120. #define LCD_PINS_D6 PC15
  121. #define LCD_PINS_D7 PC14
  122. #endif
  123. #endif // !FYSETC_MINI_12864
  124. #endif // HAS_SPI_LCD
  125. //
  126. // SD Card
  127. //
  128. // By default the onboard SD is enabled.
  129. // To disable it and use an external SD (connected to LCD)
  130. // enable STM32_SD_LCD.
  131. //#define STM32_SD_LCD
  132. #if ENABLED(STM32_SD_LCD)
  133. #define ENABLE_SPI3
  134. #define SD_DETECT_PIN PB9
  135. #define SCK_PIN PB3
  136. #define MISO_PIN PB4
  137. #define MOSI_PIN PB5
  138. #define SS_PIN PA15
  139. #else
  140. #define SDCARD_CONNECTION ONBOARD
  141. #define ENABLE_SPI1
  142. #define SD_DETECT_PIN PA3
  143. #define SCK_PIN PA5
  144. #define MISO_PIN PA6
  145. #define MOSI_PIN PA7
  146. #define SS_PIN PA4
  147. #endif
  148. #ifndef ST7920_DELAY_1
  149. #define ST7920_DELAY_1 DELAY_NS(125)
  150. #endif
  151. #ifndef ST7920_DELAY_2
  152. #define ST7920_DELAY_2 DELAY_NS(125)
  153. #endif
  154. #ifndef ST7920_DELAY_3
  155. #define ST7920_DELAY_3 DELAY_NS(125)
  156. #endif