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

pins_ARMED.h 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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 <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. // https://github.com/ktand/Armed
  23. #pragma once
  24. #ifndef STM32F4
  25. #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
  26. #elif HOTENDS > 2 || E_STEPPERS > 2
  27. #error "Arm'ed supports up to 2 hotends / E-steppers."
  28. #endif
  29. #ifndef ARMED_V1_0
  30. #define ARMED_V1_1
  31. #endif
  32. #undef BOARD_INFO_NAME // Defined on the command line by Arduino Core STM32
  33. #define BOARD_INFO_NAME "Arm'ed"
  34. #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
  35. #define I2C_EEPROM
  36. #undef E2END // Defined in Arduino Core STM32 to be used with EEPROM emulation. This board uses a real EEPROM.
  37. #define E2END 0xFFF // 4KB
  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. //
  104. // Heaters / Fans
  105. //
  106. #define HEATER_0_PIN PA1 // Hardware PWM
  107. #define HEATER_1_PIN PA2 // Hardware PWM
  108. #define HEATER_BED_PIN PA0 // Hardware PWM
  109. #define FAN_PIN PC6 // Hardware PWM, Part cooling fan
  110. #define FAN1_PIN PC7 // Hardware PWM, Extruder fan
  111. #define FAN2_PIN PC8 // Hardware PWM, Controller fan
  112. //
  113. // Misc functions
  114. //
  115. #define SDSS PE7
  116. #define LED_PIN PB7 // Heart beat
  117. #define PS_ON_PIN PA10
  118. #define KILL_PIN PA8
  119. #define PWR_LOSS PA4 // Power loss / nAC_FAULT
  120. //
  121. // LCD / Controller
  122. //
  123. #define SD_DETECT_PIN PA15
  124. #define BEEPER_PIN PC9
  125. #if ENABLED(FYSETC_MINI_12864)
  126. //
  127. // See https://wiki.fysetc.com/Mini12864_Panel/?fbclid=IwAR1FyjuNdVOOy9_xzky3qqo_WeM5h-4gpRnnWhQr_O1Ef3h0AFnFXmCehK8
  128. //
  129. #define DOGLCD_A0 PE9
  130. #define DOGLCD_CS PE8
  131. #define LCD_BACKLIGHT_PIN -1
  132. #define LCD_RESET_PIN PB12 // Must be high or open for LCD to operate normally.
  133. #if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
  134. #ifndef RGB_LED_R_PIN
  135. #define RGB_LED_R_PIN PB13
  136. #endif
  137. #ifndef RGB_LED_G_PIN
  138. #define RGB_LED_G_PIN PB14
  139. #endif
  140. #ifndef RGB_LED_B_PIN
  141. #define RGB_LED_B_PIN PB15
  142. #endif
  143. #elif ENABLED(FYSETC_MINI_12864_2_1)
  144. #define NEOPIXEL_PIN PB13
  145. #endif
  146. #else
  147. #define LCD_PINS_RS PE9
  148. #define LCD_PINS_ENABLE PE8
  149. #define LCD_PINS_D4 PB12
  150. #define LCD_PINS_D5 PB13
  151. #define LCD_PINS_D6 PB14
  152. #define LCD_PINS_D7 PB15
  153. #if ENABLED(MKS_MINI_12864)
  154. #define DOGLCD_CS PB13
  155. #define DOGLCD_A0 PB14
  156. #endif
  157. #endif
  158. #define BTN_EN1 PC4
  159. #define BTN_EN2 PC5
  160. #define BTN_ENC PC3
  161. //
  162. // Extension pins
  163. //
  164. #define EXT0_PIN PB0
  165. #define EXT1_PIN PB1
  166. #define EXT2_PIN PB2
  167. #define EXT3_PIN PD8
  168. #define EXT4_PIN PD9
  169. #define EXT5_PIN PD10
  170. #define EXT6_PIN PD11
  171. #define EXT7_PIN PD12
  172. #define EXT8_PIN PB10
  173. #define EXT9_PIN PB11