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.5KB

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