My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

pins_FYSETC_F6_13.h 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2019 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 <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. //
  23. // Fysetc F6 pin assignments
  24. //
  25. #ifndef __AVR_ATmega2560__
  26. #error "Oops! Select 'FYSETC F6' in 'Tools > Board.'"
  27. #endif
  28. #ifdef SD_DETECT_INVERTED
  29. #error "SD_DETECT_INVERTED must be disabled for the FYSETC_F6_13 board."
  30. #endif
  31. #define BOARD_NAME "FYSETC F6 1.3"
  32. #define RESET_PIN 30
  33. #define SPI_FLASH_CS 83
  34. //
  35. // Servos
  36. //
  37. #define SERVO0_PIN 13
  38. #define SERVO1_PIN 11 // (PS_ON_PIN)
  39. #define SERVO2_PIN 10 // (FIL_RUNOUT_PIN)
  40. #define SERVO3_PIN 4 // (RGB_LED_G_PIN)
  41. //
  42. // Limit Switches
  43. //
  44. #define X_MIN_PIN 63
  45. #define X_MAX_PIN 64
  46. #define Y_MIN_PIN 14
  47. #define Y_MAX_PIN 15
  48. #define Z_MIN_PIN 12
  49. #define Z_MAX_PIN 9
  50. #ifndef FIL_RUNOUT_PIN
  51. #define FIL_RUNOUT_PIN SERVO2_PIN
  52. #endif
  53. //
  54. // Z Probe (when not Z_MIN_PIN)
  55. //
  56. #ifndef Z_MIN_PROBE_PIN
  57. #define Z_MIN_PROBE_PIN 9 // Servos pin
  58. #endif
  59. //
  60. // Steppers
  61. //
  62. #define X_STEP_PIN 54
  63. #define X_DIR_PIN 55
  64. #define X_ENABLE_PIN 38
  65. #ifndef X_CS_PIN
  66. #define X_CS_PIN 70
  67. #endif
  68. #define Y_STEP_PIN 60
  69. #define Y_DIR_PIN 61
  70. #define Y_ENABLE_PIN 56
  71. #ifndef Y_CS_PIN
  72. #define Y_CS_PIN 39
  73. #endif
  74. #define Z_STEP_PIN 43
  75. #define Z_DIR_PIN 48
  76. #define Z_ENABLE_PIN 58
  77. #ifndef Z_CS_PIN
  78. #define Z_CS_PIN 74
  79. #endif
  80. #define E0_STEP_PIN 26
  81. #define E0_DIR_PIN 28
  82. #define E0_ENABLE_PIN 24
  83. #ifndef E0_CS_PIN
  84. #define E0_CS_PIN 47
  85. #endif
  86. #define E1_STEP_PIN 36
  87. #define E1_DIR_PIN 34
  88. #define E1_ENABLE_PIN 30
  89. #ifndef E1_CS_PIN
  90. #define E1_CS_PIN 32
  91. #endif
  92. #define E2_STEP_PIN 59
  93. #define E2_DIR_PIN 57
  94. #define E2_ENABLE_PIN 40
  95. #ifndef E2_CS_PIN
  96. #define E2_CS_PIN 42
  97. #endif
  98. //
  99. // Sensorless homing DIAG pin is not directly connected to the MCU. Close
  100. // the jumper next to the limit switch socket when using sensorless homing.
  101. //
  102. #if HAS_DRIVER(TMC2208)
  103. // Software serial
  104. #define X_SERIAL_RX_PIN 71
  105. #define X_SERIAL_TX_PIN 72
  106. #define Y_SERIAL_RX_PIN 73
  107. #define Y_SERIAL_TX_PIN 75
  108. #define Z_SERIAL_RX_PIN 78
  109. #define Z_SERIAL_TX_PIN 79
  110. #define E0_SERIAL_RX_PIN 76
  111. #define E0_SERIAL_TX_PIN 77
  112. #define E1_SERIAL_RX_PIN 80
  113. #define E1_SERIAL_TX_PIN 81
  114. #define E2_SERIAL_RX_PIN 22
  115. #define E2_SERIAL_TX_PIN 82
  116. #endif
  117. //
  118. // Temperature Sensors
  119. //
  120. #define TEMP_0_PIN 12 // Analog Input
  121. #define TEMP_1_PIN 13 // Analog Input
  122. #define TEMP_2_PIN 14 // Analog Input
  123. #define TEMP_BED_PIN 15 // Analog Input
  124. #ifndef FILWIDTH_PIN
  125. #define FILWIDTH_PIN 9 // Analog Input on X+ endstop
  126. #endif
  127. //
  128. // Heaters / Fans
  129. //
  130. #define HEATER_0_PIN 5
  131. #define HEATER_1_PIN 6
  132. #define HEATER_2_PIN 7
  133. #define HEATER_BED_PIN 8
  134. #define FAN_PIN 44
  135. #define FAN1_PIN 45
  136. #define FAN2_PIN 46
  137. //
  138. // Misc. Functions
  139. //
  140. #define SDSS 53
  141. #define LED_PIN 13
  142. #define KILL_PIN 41
  143. #ifndef PS_ON_PIN
  144. #define PS_ON_PIN SERVO1_PIN
  145. #endif
  146. #ifndef RGB_LED_R_PIN
  147. #define RGB_LED_R_PIN 3
  148. #endif
  149. #ifndef RGB_LED_G_PIN
  150. #define RGB_LED_G_PIN SERVO3_PIN
  151. #endif
  152. #ifndef RGB_LED_B_PIN
  153. #define RGB_LED_B_PIN 9
  154. #endif
  155. #ifndef RGB_LED_W_PIN
  156. #define RGB_LED_W_PIN -1
  157. #endif
  158. //
  159. // LCDs and Controllers
  160. //
  161. #define BEEPER_PIN 37
  162. #define SD_DETECT_PIN 49
  163. #define LCD_PINS_RS 16
  164. #define LCD_PINS_ENABLE 17
  165. #define LCD_PINS_D4 23
  166. #define LCD_PINS_D5 25
  167. #define LCD_PINS_D6 27
  168. #define LCD_PINS_D7 29
  169. #if ENABLED(NEWPANEL)
  170. #define BTN_EN1 31
  171. #define BTN_EN2 33
  172. #define BTN_ENC 35
  173. #if ENABLED(MKS_MINI_12864)
  174. #define DOGLCD_A0 27
  175. #define DOGLCD_CS 25
  176. #endif
  177. #endif