My Marlin configs for Fabrikator Mini and CTC i3 Pro B
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

pins_EINSY_RETRO.h 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2016 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. * Einsy-Retro pin assignments
  24. */
  25. #ifndef __AVR_ATmega2560__
  26. #error "Oops! Select 'Arduino Mega 2560 or Rambo' in 'Tools > Board.'"
  27. #endif
  28. #define BOARD_NAME "Einsy Retro"
  29. //
  30. // TMC2130 Configuration_adv defaults for EinsyRetro
  31. //
  32. #if !AXIS_DRIVER_TYPE(X, TMC2130) || !AXIS_DRIVER_TYPE(Y, TMC2130) || !AXIS_DRIVER_TYPE(Z, TMC2130) || !AXIS_DRIVER_TYPE(E0, TMC2130)
  33. #error "You must set ([XYZ]|E0)_DRIVER_TYPE to TMC2130 in Configuration.h for EinsyRetro."
  34. #endif
  35. // TMC2130 Diag Pins (currently just for reference)
  36. #define X_DIAG_PIN 64
  37. #define Y_DIAG_PIN 69
  38. #define Z_DIAG_PIN 68
  39. #define E0_DIAG_PIN 65
  40. //
  41. // Limit Switches
  42. //
  43. // Only use Diag Pins when SENSORLESS_HOMING is enabled for the TMC2130 drivers.
  44. // Otherwise use a physical endstop based configuration.
  45. //
  46. // SERVO0_PIN and Z_MIN_PIN configuration for BLTOUCH sensor when combined with SENSORLESS_HOMING.
  47. //
  48. #if DISABLED(SENSORLESS_HOMING)
  49. #define X_MIN_PIN 12
  50. #define Y_MIN_PIN 11
  51. #define Z_MIN_PIN 10
  52. #define X_MAX_PIN 81
  53. #define Y_MAX_PIN 57
  54. #else
  55. #if X_HOME_DIR == -1
  56. #define X_MIN_PIN X_DIAG_PIN
  57. #define X_MAX_PIN 81
  58. #else
  59. #define X_MIN_PIN 12
  60. #define X_MAX_PIN X_DIAG_PIN
  61. #endif
  62. #if Y_HOME_DIR == -1
  63. #define Y_MIN_PIN Y_DIAG_PIN
  64. #define Y_MAX_PIN 57
  65. #else
  66. #define Y_MIN_PIN 11
  67. #define Y_MAX_PIN Y_DIAG_PIN
  68. #endif
  69. #if ENABLED(BLTOUCH)
  70. #define Z_MIN_PIN 11 // Y-MIN
  71. #define SERVO0_PIN 10 // Z-MIN
  72. #else
  73. #define Z_MIN_PIN 10
  74. #endif
  75. #endif
  76. #define Z_MAX_PIN 7
  77. //
  78. // Z Probe (when not Z_MIN_PIN)
  79. //
  80. #ifndef Z_MIN_PROBE_PIN
  81. #define Z_MIN_PROBE_PIN 10
  82. #endif
  83. //
  84. // Steppers
  85. //
  86. #define X_STEP_PIN 37
  87. #define X_DIR_PIN 49
  88. #define X_ENABLE_PIN 29
  89. #define X_CS_PIN 41
  90. #define Y_STEP_PIN 36
  91. #define Y_DIR_PIN 48
  92. #define Y_ENABLE_PIN 28
  93. #define Y_CS_PIN 39
  94. #define Z_STEP_PIN 35
  95. #define Z_DIR_PIN 47
  96. #define Z_ENABLE_PIN 27
  97. #define Z_CS_PIN 67
  98. #define E0_STEP_PIN 34
  99. #define E0_DIR_PIN 43
  100. #define E0_ENABLE_PIN 26
  101. #define E0_CS_PIN 66
  102. //
  103. // Temperature Sensors
  104. //
  105. #define TEMP_0_PIN 0 // Analog Input
  106. #define TEMP_1_PIN 1 // Analog Input
  107. #define TEMP_BED_PIN 2 // Analog Input
  108. //
  109. // Heaters / Fans
  110. //
  111. #define HEATER_0_PIN 3
  112. #define HEATER_BED_PIN 4
  113. #ifndef FAN_PIN
  114. #define FAN_PIN 8
  115. #endif
  116. #define FAN1_PIN 6
  117. //
  118. // Misc. Functions
  119. //
  120. #define SDSS 53
  121. #define LED_PIN 13
  122. #define CASE_LIGHT_PIN 9
  123. //
  124. // M3/M4/M5 - Spindle/Laser Control
  125. //
  126. // use P1 connector for spindle pins
  127. #define SPINDLE_LASER_PWM_PIN 9 // MUST BE HARDWARE PWM
  128. #define SPINDLE_LASER_ENABLE_PIN 18 // Pin should have a pullup!
  129. #define SPINDLE_DIR_PIN 19
  130. //
  131. // Průša i3 MK2 Multiplexer Support
  132. //
  133. #define E_MUX0_PIN 17
  134. #define E_MUX1_PIN 16
  135. #define E_MUX2_PIN 78 // 84 in MK2 Firmware, with BEEPER as 78
  136. //
  137. // LCD / Controller
  138. //
  139. #if ENABLED(ULTRA_LCD)
  140. #define KILL_PIN 32
  141. #if ENABLED(NEWPANEL)
  142. #if ENABLED(CR10_STOCKDISPLAY)
  143. #define LCD_PINS_RS 85
  144. #define LCD_PINS_ENABLE 71
  145. #define LCD_PINS_D4 70
  146. #define BTN_EN1 18
  147. #define BTN_EN2 19
  148. #else
  149. #define LCD_PINS_RS 82
  150. #define LCD_PINS_ENABLE 18
  151. #define LCD_PINS_D4 19
  152. #define LCD_PINS_D5 70
  153. #define LCD_PINS_D6 85
  154. #define LCD_PINS_D7 71
  155. #define BTN_EN1 14
  156. #define BTN_EN2 72
  157. #endif
  158. #define BTN_ENC 9 // AUX-2
  159. #define BEEPER_PIN 84 // AUX-4
  160. #define SD_DETECT_PIN 15
  161. #endif // NEWPANEL
  162. #endif // ULTRA_LCD