My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pins_ARMED.h 4.0KB

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