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 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. /**
  23. * STM32F407VET6 with RAMPS-like shield
  24. * 'Black' STM32F407VET6 board - http://wiki.stm32duino.com/index.php?title=STM32F407
  25. * Shield - https://github.com/jmz52/Hardware
  26. */
  27. #pragma once
  28. #if !defined(STM32F4) && !defined(STM32F4xx)
  29. #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
  30. #endif
  31. #define DEFAULT_MACHINE_NAME "STM32F407VET6"
  32. //#define BOARD_NAME "Black STM32F4VET6"
  33. //#define I2C_EEPROM
  34. //#define E2END 0x1FFF // EEPROM end address (8kB)
  35. #define EEPROM_EMULATED_WITH_SRAM
  36. #if HOTENDS > 2 || E_STEPPERS > 2
  37. #error "Black STM32F4VET6 supports up to 2 hotends / E-steppers."
  38. #endif
  39. //
  40. // Servos
  41. //
  42. #define SERVO0_PIN PC6
  43. #define SERVO1_PIN PC7
  44. //
  45. // Limit Switches
  46. //
  47. #define X_MIN_PIN PC13
  48. #define X_MAX_PIN PA15
  49. #define Y_MIN_PIN PA5
  50. #define Y_MAX_PIN PD12
  51. #define Z_MIN_PIN PD14
  52. #define Z_MAX_PIN PD15
  53. //
  54. // Steppers
  55. //
  56. #define X_STEP_PIN PC4
  57. #define X_DIR_PIN PA4
  58. #define X_ENABLE_PIN PE7
  59. #define Y_STEP_PIN PE5
  60. #define Y_DIR_PIN PE2
  61. #define Y_ENABLE_PIN PE6
  62. #define Z_STEP_PIN PD5
  63. #define Z_DIR_PIN PD3
  64. #define Z_ENABLE_PIN PD6
  65. #define E0_STEP_PIN PD7
  66. #define E0_DIR_PIN PD0
  67. #define E0_ENABLE_PIN PB9
  68. #define E1_STEP_PIN PE0
  69. #define E1_DIR_PIN PE1
  70. #define E1_ENABLE_PIN PB8
  71. //
  72. // Temperature Sensors
  73. //
  74. #define TEMP_0_PIN PC0 // T0
  75. #define TEMP_1_PIN PC1 // T1
  76. #define TEMP_BED_PIN PC2 // TB
  77. #define TEMP_CHAMBER_PIN PC3 // TC
  78. //
  79. // Heaters / Fans
  80. //
  81. #define HEATER_0_PIN PA2 // Heater0
  82. #define HEATER_1_PIN PA3 // Heater1
  83. #define HEATER_BED_PIN PA1 // Hotbed
  84. #define FAN_PIN PE9 // Fan0
  85. #define FAN1_PIN PE11 // Fan1
  86. #define FAN2_PIN PE13 // Fan2
  87. #define FAN3_PIN PE14 // Fan3
  88. //
  89. // Misc. Functions
  90. //
  91. #define SDSS PB12
  92. #define LED_PIN PA6
  93. //#define LED_PIN PA7
  94. #define KILL_PIN PB1
  95. //
  96. // LCD / Controller
  97. //
  98. #define SD_DETECT_PIN PC5
  99. //#define SD_DETECT_PIN PA8 // SDIO SD_DETECT_PIN, external SDIO card reader only
  100. #define BEEPER_PIN PD10
  101. #define LCD_PINS_RS PE15
  102. #define LCD_PINS_ENABLE PD8
  103. #define LCD_PINS_D4 PE10
  104. #define LCD_PINS_D5 PE12
  105. #define LCD_PINS_D6 PD1
  106. #define LCD_PINS_D7 PE8
  107. #define BTN_ENC PD9
  108. #define BTN_EN1 PD4
  109. #define BTN_EN2 PD13
  110. #define DOGLCD_CS LCD_PINS_D5
  111. #define DOGLCD_A0 LCD_PINS_D6