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_BLACK_STM32F407VE.h 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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. /**
  24. * STM32F407VET6 with RAMPS-like shield
  25. * 'Black' STM32F407VET6 board - https://www.stm32duino.com/viewtopic.php?t=485
  26. * Shield - https://github.com/jmz52/Hardware
  27. */
  28. #if !defined(STM32F4) && !defined(STM32F4xx)
  29. #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
  30. #elif HOTENDS > 2 || E_STEPPERS > 2
  31. #error "Black STM32F4VET6 supports up to 2 hotends / E-steppers."
  32. #endif
  33. #ifndef BOARD_INFO_NAME
  34. #define BOARD_INFO_NAME "Black STM32F4VET6"
  35. #endif
  36. #define DEFAULT_MACHINE_NAME "STM32F407VET6"
  37. //#define I2C_EEPROM
  38. #define SRAM_EEPROM_EMULATION
  39. #define MARLIN_EEPROM_SIZE 0x2000 // 8KB
  40. //
  41. // Servos
  42. //
  43. #define SERVO0_PIN PC6
  44. #define SERVO1_PIN PC7
  45. //
  46. // Limit Switches
  47. //
  48. #define X_MIN_PIN PC13
  49. #define X_MAX_PIN PA15
  50. #define Y_MIN_PIN PA5
  51. #define Y_MAX_PIN PD12
  52. #define Z_MIN_PIN PD14
  53. #define Z_MAX_PIN PD15
  54. //
  55. // Steppers
  56. //
  57. #define X_STEP_PIN PC4
  58. #define X_DIR_PIN PA4
  59. #define X_ENABLE_PIN PE7
  60. #define Y_STEP_PIN PE5
  61. #define Y_DIR_PIN PE2
  62. #define Y_ENABLE_PIN PE6
  63. #define Z_STEP_PIN PD5
  64. #define Z_DIR_PIN PD3
  65. #define Z_ENABLE_PIN PD6
  66. #define E0_STEP_PIN PD7
  67. #define E0_DIR_PIN PD0
  68. #define E0_ENABLE_PIN PB9
  69. #define E1_STEP_PIN PE0
  70. #define E1_DIR_PIN PE1
  71. #define E1_ENABLE_PIN PB8
  72. //
  73. // Temperature Sensors
  74. //
  75. #define TEMP_0_PIN PC0 // T0
  76. #define TEMP_1_PIN PC1 // T1
  77. #define TEMP_BED_PIN PC2 // TB
  78. #ifndef TEMP_CHAMBER_PIN
  79. #define TEMP_CHAMBER_PIN PC3 // TC
  80. #endif
  81. //
  82. // Heaters / Fans
  83. //
  84. #define HEATER_0_PIN PA2 // Heater0
  85. #define HEATER_1_PIN PA3 // Heater1
  86. #define HEATER_BED_PIN PA1 // Hotbed
  87. #define FAN_PIN PE9 // Fan0
  88. #define FAN1_PIN PE11 // Fan1
  89. #define FAN2_PIN PE13 // Fan2
  90. #define FAN3_PIN PE14 // Fan3
  91. //
  92. // Misc. Functions
  93. //
  94. #define LED_PIN PA6
  95. //#define LED_PIN PA7
  96. #define KILL_PIN PB1
  97. //
  98. // LCD / Controller
  99. //
  100. //#define SD_DETECT_PIN PC5
  101. //#define SD_DETECT_PIN PA8 // SDIO SD_DETECT_PIN, external SDIO card reader only
  102. #define BEEPER_PIN PD10
  103. #define LCD_PINS_RS PE15
  104. #define LCD_PINS_ENABLE PD8
  105. #define LCD_PINS_D4 PE10
  106. #define LCD_PINS_D5 PE12
  107. #define LCD_PINS_D6 PD1
  108. #define LCD_PINS_D7 PE8
  109. #define BTN_ENC PD9
  110. #define BTN_EN1 PD4
  111. #define BTN_EN2 PD13
  112. #define DOGLCD_CS LCD_PINS_D5
  113. #define DOGLCD_A0 LCD_PINS_D6
  114. //
  115. // Onboard SD support
  116. //
  117. #define SDIO_D0_PIN PC8
  118. #define SDIO_D1_PIN PC9
  119. #define SDIO_D2_PIN PC10
  120. #define SDIO_D3_PIN PC11
  121. #define SDIO_CK_PIN PC12
  122. #define SDIO_CMD_PIN PD2
  123. #ifndef SDCARD_CONNECTION
  124. #define SDCARD_CONNECTION ONBOARD
  125. #endif
  126. #if SD_CONNECTION_IS(ONBOARD)
  127. #define SDIO_SUPPORT // Use SDIO for onboard SD
  128. #ifndef SDIO_SUPPORT
  129. #define SOFTWARE_SPI // Use soft SPI for onboard SD
  130. #define SDSS SDIO_D3_PIN
  131. #define SCK_PIN SDIO_CK_PIN
  132. #define MISO_PIN SDIO_D0_PIN
  133. #define MOSI_PIN SDIO_CMD_PIN
  134. #endif
  135. #endif