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

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