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_MKS_ROBIN_LITE3.h 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  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 <https://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. /**
  24. * MKS Robin Lite 3 (STM32F103RCT6) board pin assignments
  25. */
  26. #if NOT_TARGET(__STM32F1__)
  27. #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
  28. #elif HOTENDS > 2 || E_STEPPERS > 2
  29. #error "MKS Robin Lite3 supports up to 2 hotends / E-steppers. Comment out this line to continue."
  30. #endif
  31. #ifndef BOARD_INFO_NAME
  32. #define BOARD_INFO_NAME "MKS Robin Lite3"
  33. #endif
  34. #define BOARD_WEBSITE_URL "github.com/makerbase-mks"
  35. //#define DISABLE_DEBUG
  36. #define DISABLE_JTAG
  37. #define ENABLE_SPI2
  38. //
  39. // Servos
  40. //
  41. #define SERVO0_PIN PA3
  42. //
  43. // Limit Switches
  44. //
  45. #define X_STOP_PIN PA12
  46. #define Y_STOP_PIN PA11
  47. #define Z_MIN_PIN PC6
  48. #define Z_MAX_PIN PB1
  49. //
  50. // Steppers
  51. //
  52. #define X_STEP_PIN PC0
  53. #define X_DIR_PIN PB2
  54. #define X_ENABLE_PIN PC13
  55. #define Y_STEP_PIN PC2
  56. #define Y_DIR_PIN PB9
  57. #define Y_ENABLE_PIN PB12
  58. #define Z_STEP_PIN PB7
  59. #define Z_DIR_PIN PB6
  60. #define Z_ENABLE_PIN PB8
  61. #define E0_STEP_PIN PB4
  62. #define E0_DIR_PIN PB3
  63. #define E0_ENABLE_PIN PB5
  64. #define E1_STEP_PIN PC12
  65. #define E1_DIR_PIN PC11
  66. #define E1_ENABLE_PIN PD2
  67. //
  68. // Heaters 0,1 / Fans / Bed
  69. //
  70. #define HEATER_0_PIN PC9
  71. #define HEATER_1_PIN PC7
  72. #define FAN_PIN PA8
  73. #define HEATER_BED_PIN PC8
  74. //
  75. // Temperature Sensors
  76. //
  77. #define TEMP_BED_PIN PA1 //TB
  78. #define TEMP_0_PIN PA0 //TH1
  79. #define TEMP_1_PIN PA2 //TH2
  80. #define FIL_RUNOUT_PIN PB10 // MT_DET
  81. //
  82. // LCD Pins
  83. //
  84. #if HAS_WIRED_LCD
  85. #define BEEPER_PIN PC1
  86. #define BTN_ENC PC3
  87. #define LCD_PINS_ENABLE PA4
  88. #define LCD_PINS_RS PA5
  89. #define BTN_EN1 PB11
  90. #define BTN_EN2 PB0
  91. // MKS MINI12864 and MKS LCD12864B; If using MKS LCD12864A (Need to remove RPK2 resistor)
  92. #if ENABLED(MKS_MINI_12864)
  93. #define LCD_BACKLIGHT_PIN -1
  94. #define LCD_RESET_PIN -1
  95. #define DOGLCD_A0 PC4
  96. #define DOGLCD_CS PA7
  97. #define DOGLCD_SCK PB13
  98. #define DOGLCD_MOSI PB15
  99. #elif IS_TFTGLCD_PANEL
  100. #if ENABLED(TFTGLCD_PANEL_SPI)
  101. #define TFTGLCD_CS PB11
  102. #endif
  103. #else // !MKS_MINI_12864
  104. #define LCD_PINS_D4 PA6
  105. #if IS_ULTIPANEL
  106. #define LCD_PINS_D5 PA7
  107. #define LCD_PINS_D6 PC4
  108. #define LCD_PINS_D7 PC5
  109. #endif
  110. #endif // !MKS_MINI_12864
  111. #endif // HAS_WIRED_LCD
  112. //
  113. // SD Card
  114. //
  115. #define ENABLE_SPI2
  116. #define SD_DETECT_PIN PC10
  117. #define SCK_PIN PB13
  118. #define MISO_PIN PB14
  119. #define MOSI_PIN PB15
  120. #define SS_PIN PA15
  121. #ifndef BOARD_ST7920_DELAY_1
  122. #define BOARD_ST7920_DELAY_1 DELAY_NS(125)
  123. #endif
  124. #ifndef BOARD_ST7920_DELAY_2
  125. #define BOARD_ST7920_DELAY_2 DELAY_NS(125)
  126. #endif
  127. #ifndef BOARD_ST7920_DELAY_3
  128. #define BOARD_ST7920_DELAY_3 DELAY_NS(125)
  129. #endif