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_FLY_CDY.h 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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. #if NOT_TARGET(MCU_LPC1769)
  24. #error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
  25. #endif
  26. #define BOARD_INFO_NAME "FLY-CDY"
  27. #define BOARD_WEBSITE_URL "https://github.com/FLYmaker/FLY-CDY"
  28. //
  29. // Servos
  30. //
  31. #define SERVO0_PIN P1_26
  32. //
  33. // Limit Switches
  34. //
  35. #define X_MIN_PIN P1_29 // X-
  36. #define X_MAX_PIN P1_28 // X+
  37. #define Y_MIN_PIN P1_27 // Y-
  38. #define Y_MAX_PIN P1_25 // Y+
  39. #define Z_MIN_PIN P1_22 // Z-
  40. #define Z_MAX_PIN P0_27 // Z+
  41. //
  42. // Steppers
  43. //
  44. #define X_STEP_PIN P2_00
  45. #define X_DIR_PIN P1_01
  46. #define X_ENABLE_PIN P1_00
  47. #ifndef X_CS_PIN
  48. #define X_CS_PIN P1_04
  49. #endif
  50. #define Y_STEP_PIN P2_01
  51. #define Y_DIR_PIN P1_09
  52. #define Y_ENABLE_PIN P1_08
  53. #ifndef Y_CS_PIN
  54. #define Y_CS_PIN P1_10
  55. #endif
  56. #define Z_STEP_PIN P2_02
  57. #define Z_DIR_PIN P1_15
  58. #define Z_ENABLE_PIN P1_14
  59. #ifndef Z_CS_PIN
  60. #define Z_CS_PIN P1_16
  61. #endif
  62. #define E0_STEP_PIN P2_03
  63. #define E0_DIR_PIN P4_29
  64. #define E0_ENABLE_PIN P1_17
  65. #ifndef E0_CS_PIN
  66. #define E0_CS_PIN P4_28
  67. #endif
  68. #define E1_STEP_PIN P2_04
  69. #define E1_DIR_PIN P2_11
  70. #define E1_ENABLE_PIN P0_04
  71. #ifndef E1_CS_PIN
  72. #define E1_CS_PIN P2_12
  73. #endif
  74. #define E2_STEP_PIN P2_05
  75. #define E2_DIR_PIN P0_11
  76. #define E2_ENABLE_PIN P2_13
  77. #ifndef E2_CS_PIN
  78. #define E2_CS_PIN P0_10
  79. #endif
  80. //
  81. // Software SPI pins for TMC2130 stepper drivers
  82. //
  83. #if ENABLED(TMC_USE_SW_SPI)
  84. #ifndef TMC_SW_MOSI
  85. #define TMC_SW_MOSI P0_20
  86. #endif
  87. #ifndef TMC_SW_MISO
  88. #define TMC_SW_MISO P0_19
  89. #endif
  90. #ifndef TMC_SW_SCK
  91. #define TMC_SW_SCK P0_21
  92. #endif
  93. #endif
  94. #if HAS_TMC_UART
  95. #define X_SERIAL_TX_PIN P1_04
  96. #define X_SERIAL_RX_PIN P1_04
  97. #define Y_SERIAL_TX_PIN P1_10
  98. #define Y_SERIAL_RX_PIN P1_10
  99. #define Z_SERIAL_TX_PIN P1_16
  100. #define Z_SERIAL_RX_PIN P1_16
  101. #define E0_SERIAL_TX_PIN P4_28
  102. #define E0_SERIAL_RX_PIN P4_28
  103. #define E1_SERIAL_TX_PIN P2_12
  104. #define E1_SERIAL_RX_PIN P2_12
  105. #define E2_SERIAL_TX_PIN P0_10
  106. #define E2_SERIAL_RX_PIN P0_10
  107. // Reduce baud rate to improve software serial reliability
  108. #define TMC_BAUD_RATE 19200
  109. #endif
  110. //
  111. // Temperature Sensors
  112. //
  113. #define TEMP_0_PIN P0_26_A3 // (T4)
  114. #define TEMP_1_PIN P0_25_A2 // (T3)
  115. #define TEMP_2_PIN P0_24_A1 // (T2)
  116. #define TEMP_BED_PIN P0_23_A0 // (T1)
  117. //
  118. // Heaters / Fans
  119. //
  120. #define HEATER_BED_PIN P3_26
  121. #define HEATER_0_PIN P3_25
  122. #define HEATER_1_PIN P1_20
  123. #define HEATER_2_PIN P1_23
  124. #ifndef FAN_PIN
  125. #define FAN_PIN P1_18
  126. #endif
  127. #define FAN1_PIN P1_21
  128. #define FAN2_PIN P1_24
  129. //
  130. // LCD / Controller
  131. //
  132. #define BEEPER_PIN P2_07
  133. #define LCD_PINS_RS P2_10
  134. #define LCD_PINS_ENABLE P0_22
  135. #define LCD_PINS_D4 P1_19
  136. #define LCD_PINS_D5 P2_08
  137. #define LCD_PINS_D6 P1_30
  138. #define LCD_PINS_D7 P1_31
  139. #define BTN_EN1 P0_00
  140. #define BTN_EN2 P0_01
  141. #define BTN_ENC P0_28
  142. #ifndef SDCARD_CONNECTION
  143. #define SDCARD_CONNECTION ONBOARD
  144. #endif
  145. #if SD_CONNECTION_IS(ONBOARD)
  146. #define SS_PIN P0_06
  147. #define SCK_PIN P0_07
  148. #define MISO_PIN P0_08
  149. #define MOSI_PIN P0_09
  150. #define SD_DETECT_PIN P0_05
  151. #elif SD_CONNECTION_IS(LCD)
  152. #define SCK_PIN P0_15
  153. #define MISO_PIN P0_17
  154. #define MOSI_PIN P0_18
  155. #define SS_PIN P0_16
  156. #define SD_DETECT_PIN P2_06
  157. #endif