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_THE_BORG.h 5.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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. #pragma once
  23. #if NOT_TARGET(STM32F7)
  24. #error "Oops! Select an STM32F7 board in 'Tools > Board.'"
  25. #elif HOTENDS > 3 || E_STEPPERS > 3
  26. #error "The-Borg supports up to 3 hotends / E-steppers."
  27. #endif
  28. #define BOARD_INFO_NAME "The-Borge"
  29. #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
  30. #ifndef MARLIN_EEPROM_SIZE
  31. #define MARLIN_EEPROM_SIZE 0x1000
  32. #endif
  33. // Ignore temp readings during development.
  34. //#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000
  35. //
  36. // Limit Switches
  37. //
  38. #define X_MIN_PIN PE9
  39. #define X_MAX_PIN PE10
  40. #define Y_MIN_PIN PE7
  41. #define Y_MAX_PIN PE8
  42. #define Z_MIN_PIN PF15
  43. #define Z_MAX_PIN PG0
  44. #define E_MIN_PIN PE2
  45. #define E_MAX_PIN PE3
  46. //
  47. // Z Probe (when not Z_MIN_PIN)
  48. //
  49. #ifndef Z_MIN_PROBE_PIN
  50. #define Z_MIN_PROBE_PIN PA4
  51. #endif
  52. //
  53. // Steppers
  54. //
  55. #define STEPPER_ENABLE_PIN PE0
  56. #define X_STEP_PIN PC6 // 96, 39 in Arduino
  57. #define X_DIR_PIN PC7
  58. #define X_ENABLE_PIN PC8
  59. #define Y_STEP_PIN PD9
  60. #define Y_DIR_PIN PD10
  61. #define Y_ENABLE_PIN PD11
  62. #define Z_STEP_PIN PE15
  63. #define Z_DIR_PIN PG1
  64. #define Z_ENABLE_PIN PD8
  65. #define E0_STEP_PIN PB1
  66. #define E0_DIR_PIN PB2
  67. #define E0_ENABLE_PIN PE11
  68. #define E1_STEP_PIN PC4
  69. #define E1_DIR_PIN PC5
  70. #define E1_ENABLE_PIN PB0
  71. #define E2_STEP_PIN PC13
  72. #define E2_DIR_PIN PC14
  73. #define E2_ENABLE_PIN PC15
  74. #define Z2_STEP_PIN PC13
  75. #define Z2_DIR_PIN PC14
  76. #define Z2_ENABLE_PIN PC15
  77. #define SCK_PIN PA5
  78. #define MISO_PIN PA6
  79. #define MOSI_PIN PA7
  80. #define SPI1_SCK_PIN PA5
  81. #define SPI1_MISO_PIN PA6
  82. #define SPI1_MOSI_PIN PA7
  83. #define SPI6_SCK_PIN PG13
  84. #define SPI6_MISO_PIN PG12
  85. #define SPI6_MOSI_PIN PG14
  86. //
  87. // Temperature Sensors
  88. //
  89. #define TEMP_0_PIN PC3 // Analog Input
  90. #define TEMP_1_PIN PC2 // Analog Input
  91. #define TEMP_2_PIN PC1 // Analog Input
  92. #define TEMP_3_PIN PC0 // Analog Input
  93. #define TEMP_BED_PIN PF10 // Analog Input
  94. #define TEMP_5_PIN PE12 // Analog Input, Probe temp
  95. //
  96. // Heaters / Fans
  97. //
  98. #define HEATER_0_PIN PD15
  99. #define HEATER_1_PIN PD14
  100. #define HEATER_BED_PIN PF6
  101. #ifndef FAN_PIN
  102. #define FAN_PIN PD13
  103. #endif
  104. #define FAN1_PIN PA0
  105. #define FAN2_PIN PA1
  106. #ifndef E0_AUTO_FAN_PIN
  107. #define E0_AUTO_FAN_PIN PA1
  108. #endif
  109. //
  110. // Misc. Functions
  111. //
  112. //#define CASE_LIGHT_PIN_CI PF13
  113. //#define CASE_LIGHT_PIN_DO PF14
  114. //#define NEOPIXEL_PIN PF13
  115. //
  116. // Průša i3 MK2 Multi Material Multiplexer Support
  117. //
  118. #define E_MUX0_PIN PG3
  119. #define E_MUX1_PIN PG4
  120. //
  121. // Servos
  122. //
  123. #define SERVO0_PIN PE13
  124. #define SERVO1_PIN PE14
  125. #define SDSS PA8
  126. #define SS_PIN PA8
  127. #define LED_PIN PA2 // Alive
  128. #define PS_ON_PIN PA3
  129. #define KILL_PIN -1 //PD5 // EXP2-10
  130. #define PWR_LOSS PG5 // Power loss / nAC_FAULT
  131. //
  132. // MAX7219_DEBUG
  133. //
  134. #define MAX7219_CLK_PIN PG10 // EXP1-1
  135. #define MAX7219_DIN_PIN PD7 // EXP1-3
  136. #define MAX7219_LOAD_PIN PD1 // EXP1-5
  137. //
  138. // LCD / Controller
  139. //
  140. //#define SD_DETECT_PIN -1 //PB6) // EXP2-4
  141. #define BEEPER_PIN PG10 // EXP1-1
  142. #define LCD_PINS_RS PG9 // EXP1-4
  143. #define LCD_PINS_ENABLE PD7 // EXP1-3
  144. #define LCD_PINS_D4 PD1 // EXP1-5
  145. #define LCD_PINS_D5 PF0 // EXP1-6
  146. #define LCD_PINS_D6 PD3 // EXP1-7
  147. #define LCD_PINS_D7 PD4 // EXP1-8
  148. #define BTN_EN1 PD6 // EXP2-5
  149. #define BTN_EN2 PD0 // EXP2-3
  150. #define BTN_ENC PG11 // EXP1-2