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_BIQU_SKR_V1.1.h 8.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4. * Copyright (C) 2017 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  5. *
  6. * Based on Sprinter and grbl.
  7. * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
  8. *
  9. * This program is free software: you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License as published by
  11. * the Free Software Foundation, either version 3 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  21. *
  22. */
  23. #ifndef TARGET_LPC1768
  24. #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
  25. #endif
  26. #ifndef BOARD_NAME
  27. #define BOARD_NAME "BIQU SKR V1.1"
  28. #endif
  29. //
  30. // Limit Switches
  31. //
  32. #define X_MIN_PIN P1_29
  33. #define X_MAX_PIN P1_28
  34. #define Y_MIN_PIN P1_27
  35. #define Y_MAX_PIN P1_26
  36. #define Z_MIN_PIN P1_25
  37. #define Z_MAX_PIN P1_24
  38. //
  39. // Steppers
  40. //
  41. #define X_STEP_PIN P0_04
  42. #define X_DIR_PIN P0_05
  43. #define X_ENABLE_PIN P4_28
  44. #define Y_STEP_PIN P2_01
  45. #define Y_DIR_PIN P2_02
  46. #define Y_ENABLE_PIN P2_00
  47. #define Z_STEP_PIN P0_20
  48. #define Z_DIR_PIN P0_21
  49. #define Z_ENABLE_PIN P0_19
  50. #define E0_STEP_PIN P0_11
  51. #define E0_DIR_PIN P2_13
  52. #define E0_ENABLE_PIN P2_12
  53. #define E1_STEP_PIN P0_01
  54. #define E1_DIR_PIN P0_00
  55. #define E1_ENABLE_PIN P0_10
  56. //
  57. // Temperature Sensors
  58. // 3.3V max when defined as an analog input
  59. //
  60. #define TEMP_BED_PIN 0 // A0 (T0) - (67) - TEMP_BED_PIN
  61. #define TEMP_0_PIN 1 // A1 (T1) - (68) - TEMP_0_PIN
  62. #define TEMP_1_PIN 2 // A2 (T2) - (69) - TEMP_1_PIN
  63. //
  64. // Heaters / Fans
  65. //
  66. #define HEATER_0_PIN P2_07
  67. #if HOTENDS == 1
  68. #define FAN1_PIN P2_04
  69. #else
  70. #define HEATER_1_PIN P2_04
  71. #endif
  72. #define FAN_PIN P2_03
  73. #define HEATER_BED_PIN P2_05
  74. //
  75. // Misc. Functions
  76. //
  77. #define SDSS P1_23 // (53)
  78. /**
  79. * LCD / Controller
  80. *
  81. * All controllers can use J3 and J5 on the Re-ARM board. Custom cabling will be required.
  82. */
  83. /**
  84. * Smart LCD adapter
  85. *
  86. * The Smart LCD adapter can be used for the two 10 pin LCD controllers such as
  87. * REPRAP_DISCOUNT_SMART_CONTROLLER. It can't be used for controllers that use
  88. * DOGLCD_A0, DOGLCD_CS, LCD_PINS_D5, LCD_PINS_D6 or LCD_PINS_D7. A custom cable
  89. * is needed to pick up 5V for the EXP1 connection.
  90. *
  91. * SD card on the LCD uses the same SPI signals as the LCD. This results in garbage/lines
  92. * on the LCD display during accesses of the SD card. The menus/code has been arranged so
  93. * that the garbage/lines are erased immediately after the SD card accesses are completed.
  94. */
  95. #if ENABLED(ULTRA_LCD)
  96. #if ENABLED(CR10_STOCKDISPLAY)
  97. // Re-Arm can support Creality stock display without SD card reader and single cable on EXP3.
  98. // Re-Arm J3 pins 1 (p1.31) & 2 (P3.26) are not used. Stock cable will need to have one
  99. // 10-pin IDC connector trimmed or replaced with a 12-pin IDC connector to fit J3.
  100. // Requires REVERSE_ENCODER_DIRECTION in Configuration.h
  101. #define BEEPER_PIN P2_11 // J3-3 & AUX-4
  102. #define BTN_EN1 P0_16 // J3-7 & AUX-4
  103. #define BTN_EN2 P1_23 // J3-5 & AUX-4
  104. #define BTN_ENC P3_25 // J3-4 & AUX-4
  105. #define LCD_PINS_RS P0_15 // J3-9 & AUX-4 (CS)
  106. #define LCD_PINS_ENABLE P0_18 // J3-10 & AUX-3 (SID, MOSI)
  107. #define LCD_PINS_D4 P2_06 // J3-8 & AUX-3 (SCK, CLK)
  108. #else
  109. #define BEEPER_PIN P1_30 // (37) not 5V tolerant
  110. #define BTN_EN1 P3_26 // (31) J3-2 & AUX-4
  111. #define BTN_EN2 P3_25 // (33) J3-4 & AUX-4
  112. #define BTN_ENC P2_11 // (35) J3-3 & AUX-4
  113. #define SD_DETECT_PIN P1_31 // (49) not 5V tolerant J3-1 & AUX-3
  114. #define KILL_PIN P1_22 // (41) J5-4 & AUX-4
  115. #define LCD_PINS_RS P0_16 // (16) J3-7 & AUX-4
  116. #define LCD_SDSS P0_16 // (16) J3-7 & AUX-4
  117. #if ENABLED(REPRAPWORLD_KEYPAD)
  118. #define SHIFT_OUT P0_18 // (51) (MOSI) J3-10 & AUX-3
  119. #define SHIFT_CLK P0_15 // (52) (SCK) J3-9 & AUX-3
  120. #define SHIFT_LD P1_31 // (49) not 5V tolerant J3-1 & AUX-3
  121. #elif DISABLED(NEWPANEL)
  122. //#define SHIFT_CLK P3_26 // (31) J3-2 & AUX-4
  123. //#define SHIFT_LD P3_25 // (33) J3-4 & AUX-4
  124. //#define SHIFT_OUT P2_11 // (35) J3-3 & AUX-4
  125. //#define SHIFT_EN P1_22 // (41) J5-4 & AUX-4
  126. #endif
  127. #if ENABLED(VIKI2) || ENABLED(miniVIKI)
  128. // #define LCD_SCREEN_ROT_180
  129. #define BTN_EN1 P3_26 // (31) J3-2 & AUX-4
  130. #define BTN_EN2 P3_25 // (33) J3-4 & AUX-4
  131. #define BTN_ENC P2_11 // (35) J3-3 & AUX-4
  132. #define SD_DETECT_PIN P1_31 // (49) not 5V tolerant J3-1 & AUX-3
  133. #define KILL_PIN P1_22 // (41) J5-4 & AUX-4
  134. #define DOGLCD_CS P0_16 // (16)
  135. #define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
  136. #define DOGLCD_SCK SCK_PIN
  137. #define DOGLCD_MOSI MOSI_PIN
  138. #define STAT_LED_BLUE_PIN P0_26 // (63) may change if cable changes
  139. #define STAT_LED_RED_PIN P1_21 // ( 6) may change if cable changes
  140. #else
  141. #define DOGLCD_CS P0_26 // (63) J5-3 & AUX-2
  142. #define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
  143. #define LCD_BACKLIGHT_PIN P0_16 // (16) J3-7 & AUX-4 - only used on DOGLCD controllers
  144. #define LCD_PINS_ENABLE P0_18 // (51) (MOSI) J3-10 & AUX-3
  145. #define LCD_PINS_D4 P0_15 // (52) (SCK) J3-9 & AUX-3
  146. #if ENABLED(ULTIPANEL)
  147. #define LCD_PINS_D5 P1_17 // (71) ENET_MDIO
  148. #define LCD_PINS_D6 P1_14 // (73) ENET_RX_ER
  149. #define LCD_PINS_D7 P1_10 // (75) ENET_RXD1
  150. #endif
  151. #endif
  152. //#define MISO_PIN P0_17 // (50) system defined J3-10 & AUX-3
  153. //#define MOSI_PIN P0_18 // (51) system defined J3-10 & AUX-3
  154. //#define SCK_PIN P0_15 // (52) system defined J3-9 & AUX-3
  155. //#define SS_PIN P1_23 // (53) system defined J3-5 & AUX-3 - sometimes called SDSS
  156. #if ENABLED(MINIPANEL)
  157. // GLCD features
  158. //#define LCD_CONTRAST 190
  159. // Uncomment screen orientation
  160. //#define LCD_SCREEN_ROT_90
  161. //#define LCD_SCREEN_ROT_180
  162. //#define LCD_SCREEN_ROT_270
  163. #endif
  164. #endif
  165. #endif // ULTRA_LCD
  166. //
  167. // SD Support (as with the AZTEEG_X5_MINI_WIFI)
  168. //
  169. //#define USB_SD_DISABLED // Disable host access to SD card as mass storage device through USB
  170. #define USB_SD_ONBOARD // Enable host access to SD card as mass storage device through USB
  171. //#define LPC_SD_LCD // Marlin uses the SD drive attached to the LCD
  172. #define LPC_SD_ONBOARD // Marlin uses the SD drive on the control board. There is no SD detect pin
  173. // for the onboard card. Init card from LCD menu or send M21 whenever printer
  174. // is powered on to enable SD access.
  175. #if ENABLED(LPC_SD_LCD)
  176. #define SCK_PIN P0_15
  177. #define MISO_PIN P0_17
  178. #define MOSI_PIN P0_18
  179. #define SS_PIN P1_23 // Chip select for SD card used by Marlin
  180. #define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card
  181. #elif ENABLED(LPC_SD_ONBOARD)
  182. #if ENABLED(USB_SD_ONBOARD)
  183. // When sharing the SD card with a PC we want the menu options to
  184. // mount/unmount the card and refresh it. So we disable card detect.
  185. #define SHARED_SD_CARD
  186. #undef SD_DETECT_PIN // there is also no detect pin for the onboard card
  187. #endif
  188. #define SCK_PIN P0_07
  189. #define MISO_PIN P0_08
  190. #define MOSI_PIN P0_09
  191. #define SS_PIN P0_06 // Chip select for SD card used by Marlin
  192. #define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card
  193. #endif