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_BQ111_A4.h 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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. /**
  24. * BIQU BQ111-A4
  25. *
  26. * Applies to the following boards:
  27. *
  28. * BOARD_BIQU_BQ111_A4 (Hotend, Fan, Bed)
  29. *
  30. */
  31. #ifndef TARGET_LPC1768
  32. #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
  33. #endif
  34. #ifndef BOARD_NAME
  35. #define BOARD_NAME "BIQU BQ111-A4"
  36. #endif
  37. //
  38. // Limit Switches
  39. //
  40. #define X_MIN_PIN P1_24 // 10k pullup to 3.3V, 1K series
  41. #define X_MAX_PIN P1_25 // 10k pullup to 3.3V, 1K series
  42. #define Y_MIN_PIN P1_26 // 10k pullup to 3.3V, 1K series
  43. #define Y_MAX_PIN P1_27 // 10k pullup to 3.3V, 1K series
  44. #define Z_MIN_PIN P1_28 // 10k pullup to 3.3V, 1K series
  45. #define Z_MAX_PIN P1_29 // 10k pullup to 3.3V, 1K series
  46. //
  47. // Steppers
  48. //
  49. #define X_STEP_PIN P2_0
  50. #define X_DIR_PIN P0_5
  51. #define X_ENABLE_PIN P0_4
  52. #define Y_STEP_PIN P2_1
  53. #define Y_DIR_PIN P0_11
  54. #define Y_ENABLE_PIN P0_10
  55. #define Z_STEP_PIN P2_2
  56. #define Z_DIR_PIN P0_20
  57. #define Z_ENABLE_PIN P0_19
  58. #define E0_STEP_PIN P2_3
  59. #define E0_DIR_PIN P0_22
  60. #define E0_ENABLE_PIN P0_21
  61. //
  62. // Temperature Sensors
  63. // 3.3V max when defined as an analog input
  64. //
  65. #define TEMP_0_PIN 0 // A0 (T0)
  66. #define TEMP_BED_PIN 1 // A1 (T1)
  67. //
  68. // Heaters / Fans
  69. //
  70. #define HEATER_0_PIN P2_7
  71. #define HEATER_BED_PIN P2_5
  72. #ifndef FAN_PIN
  73. #define FAN_PIN P2_4
  74. #endif
  75. //
  76. // Unused
  77. //
  78. //#define PIN_P2_10 P2_10 // IBOOT-1
  79. //#define PIN_P0_27 P0_27 // Onboard SD Detect
  80. /**
  81. * LCD / Controller
  82. *
  83. * REPRAP_DISCOUNT_SMART_CONTROLLER is not supported due to the lack of LCD_PINS_D5,
  84. * LCD_PINS_D6 or LCD_PINS_D7 in the EXP1 connector.
  85. *
  86. * A remote SD card is not supported as the pins routed to EXP2 are the same as used
  87. * for the onboard SD card, and a chip select signal is not provided for the remote
  88. * SD card.
  89. */
  90. #if ENABLED(ULTRA_LCD)
  91. #define BEEPER_PIN P1_31 // EXP1-1
  92. #define BTN_EN1 P3_26 // EXP2-3
  93. #define BTN_EN2 P3_25 // EXP2-5
  94. #define BTN_ENC P1_30 // EXP1-2
  95. #define SD_DETECT_PIN P0_27 // EXP2-7
  96. #define LCD_PINS_RS P0_16 // EXP1-4
  97. #define LCD_PINS_ENABLE P0_18 // (MOSI) EXP1-3
  98. #define LCD_PINS_D4 P0_15 // (SCK) EXP1-5
  99. #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) && !ENABLED(DOGLCD)
  100. #error "REPRAP_DISCOUNT_SMART_CONTROLLER is not supported by the BIQU BQ111-A4"
  101. #endif
  102. #if ENABLED(SDSUPPORT)
  103. #error "SDSUPPORT is not supported by the BIQU BQ111-A4 when an LCD controller is used"
  104. #endif
  105. #endif // ULTRA_LCD
  106. /**
  107. * SD Card Reader
  108. *
  109. * Software SPI is used to interface with a stand-alone SD card reader connected to EXP1.
  110. * Hardware SPI can't be used because P0_17 (MISO) is not brought out on this board.
  111. */
  112. #if ENABLED(SDSUPPORT)
  113. #define SCK_PIN P0_15 // EXP1-5
  114. #define MISO_PIN P0_16 // EXP1-4
  115. #define MOSI_PIN P0_18 // EXP1-3
  116. #define SS_PIN P1_30 // EXP1-2
  117. #define SDSS SS_PIN
  118. #endif // SDSUPPORT
  119. /**
  120. * PWMS
  121. *
  122. * There are 6 PWMS. Each PWM can be assigned to one of two pins.
  123. *
  124. * PWM1.1 P0_18 LCD_PINS_ENABLE
  125. * PWM1.1 P2_0 X_STEP_PIN
  126. * PWM1.2 P1_20 <none>
  127. * PWM1.2 P2_1 Y_STEP_PIN
  128. * PWM1.3 P1_21 <none>
  129. * PWM1.3 P2_2 Z_STEP_PIN
  130. * PWM1.4 P1_23 <none>
  131. * PWM1.4 P2_3 E0_STEP_PIN
  132. * PWM1.5 P1_24 X_MIN_PIN
  133. * PWM1.5 P2_4 FAN_PIN
  134. * PWM1.6 P1_26 Y_MIN_PIN
  135. * PWM1.6 P2_5 HEATER_BED_PIN
  136. */