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_ARMED.h 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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. #pragma once
  23. #ifndef STM32F4
  24. #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
  25. #endif
  26. #ifndef ARMED_V1_0
  27. #define ARMED_V1_1
  28. #endif
  29. #define DEFAULT_MACHINE_NAME "Arm'ed"
  30. #undef BOARD_NAME
  31. #define BOARD_NAME "Arm'ed"
  32. #define I2C_EEPROM
  33. #undef E2END
  34. #define E2END 0xFFF // EEPROM end address (4kB)
  35. #if HOTENDS > 2 || E_STEPPERS > 2
  36. #error "Arm'ed supports up to 2 hotends / E-steppers."
  37. #endif
  38. //
  39. // Limit Switches
  40. //
  41. #define X_MIN_PIN PE0
  42. #define X_MAX_PIN -1
  43. #define Y_MIN_PIN PE1
  44. #define Y_MAX_PIN -1
  45. #define Z_MIN_PIN PE14
  46. #define Z_MAX_PIN -1
  47. //
  48. // Z Probe (when not Z_MIN_PIN)
  49. //
  50. // #ifndef Z_MIN_PROBE_PIN
  51. // #define Z_MIN_PROBE_PIN PA4
  52. // #endif
  53. //
  54. // Steppers
  55. //
  56. #ifdef ARMED_SWAP_X_E1
  57. #define X_STEP_PIN PE4
  58. #define X_DIR_PIN PE2
  59. #define X_ENABLE_PIN PE3
  60. #define X_CS_PIN PE5
  61. #else
  62. #define X_STEP_PIN PD3
  63. #define X_DIR_PIN PD2
  64. #define X_ENABLE_PIN PD0
  65. #define X_CS_PIN PD1
  66. #endif
  67. #define Y_STEP_PIN PE11
  68. #define Y_DIR_PIN PE10
  69. #define Y_ENABLE_PIN PE13
  70. #define Y_CS_PIN PE12
  71. #define Z_STEP_PIN PD6
  72. #define Z_DIR_PIN PD7
  73. #define Z_ENABLE_PIN PD4
  74. #define Z_CS_PIN PD5
  75. #define E0_STEP_PIN PB5
  76. #define E0_DIR_PIN PB6
  77. #define E0_CS_PIN PB4
  78. #ifdef ARMED_V1_0
  79. #define E0_ENABLE_PIN PB3
  80. #else
  81. #define E0_ENABLE_PIN PC12
  82. #endif
  83. #ifdef ARMED_SWAP_X_E1
  84. #define E1_STEP_PIN PD3
  85. #define E1_DIR_PIN PD2
  86. #define E1_ENABLE_PIN PD0
  87. #define E1_CS_PIN PD1
  88. #else
  89. #define E1_STEP_PIN PE4
  90. #define E1_DIR_PIN PE2
  91. #define E1_ENABLE_PIN PE3
  92. #define E1_CS_PIN PE5
  93. #endif
  94. //
  95. // Temperature Sensors
  96. //
  97. #define TEMP_0_PIN PC0 // Analog Input
  98. #define TEMP_1_PIN PC1 // Analog Input
  99. #define TEMP_BED_PIN PC2 // Analog Input
  100. //
  101. // Heaters / Fans
  102. //
  103. #define HEATER_0_PIN PA1 // PWM pin
  104. #define HEATER_1_PIN PA2 // PWM pin
  105. #define HEATER_BED_PIN PA0 // PWM pin
  106. #define FAN_PIN PC6 // PWM pin, Part cooling fan
  107. #define FAN1_PIN PC7 // PWM pin, Extruder fan
  108. #define FAN2_PIN PC8 // PWM pin, Controller fan
  109. //
  110. // Misc functions
  111. //
  112. #define SDSS PE7
  113. #define LED_PIN PB7 // Heart beat
  114. #define PS_ON_PIN PA10
  115. #define KILL_PIN PA8
  116. #define PWR_LOSS PA4 // Power loss / nAC_FAULT
  117. //
  118. // LCD / Controller
  119. //
  120. #define SD_DETECT_PIN PA15
  121. #define BEEPER_PIN PC9
  122. #define LCD_PINS_RS PE9
  123. #define LCD_PINS_ENABLE PE8
  124. #define LCD_PINS_D4 PB12
  125. #define LCD_PINS_D5 PB13
  126. #define LCD_PINS_D6 PB14
  127. #define LCD_PINS_D7 PB15
  128. #define BTN_EN1 PC4
  129. #define BTN_EN2 PC5
  130. #define BTN_ENC PC3
  131. //
  132. // Filament runout detection
  133. //
  134. #define FIL_RUNOUT_PIN PA3
  135. //
  136. // Extension pins
  137. //
  138. #define EXT0_PIN PB0
  139. #define EXT1_PIN PB1
  140. #define EXT2_PIN PB2
  141. #define EXT3_PIN PD8
  142. #define EXT4_PIN PD9
  143. #define EXT5_PIN PD10
  144. #define EXT6_PIN PD11
  145. #define EXT7_PIN PD12
  146. #define EXT8_PIN PB10
  147. #define EXT9_PIN PB11