My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

pins_ARMED.h 6.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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. // https://github.com/ktand/Armed
  23. #pragma once
  24. #include "env_validate.h"
  25. #if HOTENDS > 2 || E_STEPPERS > 2
  26. #error "Arm'ed supports up to 2 hotends / E steppers."
  27. #endif
  28. #ifndef ARMED_V1_0
  29. #define ARMED_V1_1
  30. #endif
  31. #undef BOARD_INFO_NAME // Defined on the command line by Arduino Core STM32
  32. #define BOARD_INFO_NAME "Arm'ed"
  33. #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
  34. #if NO_EEPROM_SELECTED
  35. #define I2C_EEPROM
  36. #define MARLIN_EEPROM_SIZE 0x1000 // 4K
  37. #endif
  38. //
  39. // Limit Switches
  40. //
  41. #define X_STOP_PIN PE0
  42. #define Y_STOP_PIN PE1
  43. #define Z_STOP_PIN PE14
  44. //
  45. // Z Probe (when not Z_MIN_PIN)
  46. //
  47. //#ifndef Z_MIN_PROBE_PIN
  48. // #define Z_MIN_PROBE_PIN PA4
  49. //#endif
  50. //
  51. // Filament Runout Sensor
  52. //
  53. #ifndef FIL_RUNOUT_PIN
  54. #define FIL_RUNOUT_PIN PA3
  55. #endif
  56. //
  57. // Steppers
  58. //
  59. #ifdef ARMED_SWAP_X_E1
  60. #define X_STEP_PIN PE4
  61. #define X_DIR_PIN PE2
  62. #define X_ENABLE_PIN PE3
  63. #define X_CS_PIN PE5
  64. #else
  65. #define X_STEP_PIN PD3
  66. #define X_DIR_PIN PD2
  67. #define X_ENABLE_PIN PD0
  68. #define X_CS_PIN PD1
  69. #endif
  70. #define Y_STEP_PIN PE11
  71. #define Y_DIR_PIN PE10
  72. #define Y_ENABLE_PIN PE13
  73. #define Y_CS_PIN PE12
  74. #define Z_STEP_PIN PD6
  75. #define Z_DIR_PIN PD7
  76. #define Z_ENABLE_PIN PD4
  77. #define Z_CS_PIN PD5
  78. #define E0_STEP_PIN PB5
  79. #define E0_DIR_PIN PB6
  80. #ifdef ARMED_V1_1
  81. #define E0_ENABLE_PIN PC12
  82. #else
  83. #define E0_ENABLE_PIN PB3
  84. #endif
  85. #define E0_CS_PIN PB4
  86. #ifdef ARMED_SWAP_X_E1
  87. #define E1_STEP_PIN PD3
  88. #define E1_DIR_PIN PD2
  89. #define E1_ENABLE_PIN PD0
  90. #define E1_CS_PIN PD1
  91. #else
  92. #define E1_STEP_PIN PE4
  93. #define E1_DIR_PIN PE2
  94. #define E1_ENABLE_PIN PE3
  95. #define E1_CS_PIN PE5
  96. #endif
  97. //
  98. // Temperature Sensors
  99. //
  100. #define TEMP_0_PIN PC0 // Analog Input
  101. #define TEMP_1_PIN PC1 // Analog Input
  102. #define TEMP_BED_PIN PC2 // Analog Input
  103. #if HOTENDS == 1 && TEMP_SENSOR_PROBE
  104. #define TEMP_PROBE_PIN PC1
  105. #endif
  106. //
  107. // Heaters / Fans
  108. //
  109. #define HEATER_0_PIN PA1 // Hardware PWM
  110. #define HEATER_1_PIN PA2 // Hardware PWM
  111. #define HEATER_BED_PIN PA0 // Hardware PWM
  112. #define FAN_PIN PC6 // Hardware PWM, Part cooling fan
  113. #define FAN1_PIN PC7 // Hardware PWM, Extruder fan
  114. #define FAN2_PIN PC8 // Hardware PWM, Controller fan
  115. //
  116. // Misc functions
  117. //
  118. #define SDSS PE7
  119. #define LED_PIN PB7 // Heart beat
  120. #define PS_ON_PIN PA10
  121. #define KILL_PIN PA8
  122. #define PWR_LOSS PA4 // Power loss / nAC_FAULT
  123. //
  124. // LCD / Controller
  125. //
  126. #define SD_DETECT_PIN PA15
  127. #define BEEPER_PIN PC9
  128. #if ENABLED(FYSETC_MINI_12864)
  129. //
  130. // See https://wiki.fysetc.com/Mini12864_Panel/
  131. //
  132. #define DOGLCD_A0 PE9
  133. #define DOGLCD_CS PE8
  134. #define LCD_BACKLIGHT_PIN -1
  135. #define LCD_RESET_PIN PB12 // Must be high or open for LCD to operate normally.
  136. #if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
  137. #ifndef RGB_LED_R_PIN
  138. #define RGB_LED_R_PIN PB13
  139. #endif
  140. #ifndef RGB_LED_G_PIN
  141. #define RGB_LED_G_PIN PB14
  142. #endif
  143. #ifndef RGB_LED_B_PIN
  144. #define RGB_LED_B_PIN PB15
  145. #endif
  146. #elif ENABLED(FYSETC_MINI_12864_2_1)
  147. #define NEOPIXEL_PIN PB13
  148. #endif
  149. #else
  150. #define LCD_PINS_RS PE9
  151. #define LCD_PINS_ENABLE PE8
  152. #define LCD_PINS_D4 PB12
  153. #define LCD_PINS_D5 PB13
  154. #define LCD_PINS_D6 PB14
  155. #define LCD_PINS_D7 PB15
  156. #if ENABLED(MKS_MINI_12864)
  157. #define DOGLCD_CS PB13
  158. #define DOGLCD_A0 PB14
  159. #endif
  160. #endif
  161. #define BTN_EN1 PC4
  162. #define BTN_EN2 PC5
  163. #define BTN_ENC PC3
  164. //
  165. // Extension pins
  166. //
  167. #define EXT0_PIN PB0
  168. #define EXT1_PIN PB1
  169. #define EXT2_PIN PB2
  170. #define EXT3_PIN PD8
  171. #define EXT4_PIN PD9
  172. #define EXT5_PIN PD10
  173. #define EXT6_PIN PD11
  174. #define EXT7_PIN PD12
  175. #define EXT8_PIN PB10
  176. #define EXT9_PIN PB11
  177. #if HAS_TMC_UART
  178. // TMC2208/TMC2209 stepper drivers
  179. #define X_SERIAL_TX_PIN EXT0_PIN
  180. #define X_SERIAL_RX_PIN EXT0_PIN
  181. #define Y_SERIAL_TX_PIN EXT1_PIN
  182. #define Y_SERIAL_RX_PIN EXT1_PIN
  183. #define Z_SERIAL_TX_PIN EXT2_PIN
  184. #define Z_SERIAL_RX_PIN EXT2_PIN
  185. #define E0_SERIAL_TX_PIN EXT3_PIN
  186. #define E0_SERIAL_RX_PIN EXT3_PIN
  187. #define E1_SERIAL_RX_PIN EXT4_PIN
  188. #define E1_SERIAL_TX_PIN EXT4_PIN
  189. #define Z2_SERIAL_RX_PIN EXT4_PIN
  190. #define Z2_SERIAL_TX_PIN EXT4_PIN
  191. #define TMC_BAUD_RATE 19200
  192. #endif