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_VAKE403D.h 5.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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 !defined(STM32F4) && !defined(STM32F4xx)
  24. #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
  25. #elif HOTENDS > 2 || E_STEPPERS > 2
  26. #error "STM32F4 supports up to 2 hotends / E-steppers."
  27. #endif
  28. #define DEFAULT_MACHINE_NAME "STM32F446VET6"
  29. #define BOARD_INFO_NAME "STM32F4 VAkE"
  30. //#define I2C_EEPROM
  31. #define MARLIN_EEPROM_SIZE 0x1000 // 4KB
  32. //
  33. // Servos
  34. //
  35. //#define SERVO0_PIN PE13
  36. //#define SERVO1_PIN PE14
  37. //
  38. // Limit Switches
  39. //
  40. #define X_STOP_PIN PE10
  41. #define Y_STOP_PIN PE9
  42. #define Z_STOP_PIN PE8
  43. //
  44. // Z Probe (when not Z_MIN_PIN)
  45. //
  46. #ifndef Z_MIN_PROBE_PIN
  47. #define Z_MIN_PROBE_PIN PA4
  48. #endif
  49. //
  50. // Filament runout
  51. //
  52. #define FIL_RUNOUT_PIN PA3
  53. //
  54. // Steppers
  55. //
  56. #define STEPPER_ENABLE_PIN PB2
  57. #define X_STEP_PIN PC6 // X_STEP
  58. #define X_DIR_PIN PC7 // X_DIR
  59. #define X_ENABLE_PIN PB2 //
  60. #ifndef X_CS_PIN
  61. #define X_CS_PIN PC8 // X_CS
  62. #endif
  63. #define Y_STEP_PIN PD9 // Y_STEP
  64. #define Y_DIR_PIN PD10 // Y_DIR
  65. #define Y_ENABLE_PIN PB2 //
  66. #ifndef Y_CS_PIN
  67. #define Y_CS_PIN PD11 // Y_CS
  68. #endif
  69. #define Z_STEP_PIN PE15 // Z_STEP
  70. #define Z_DIR_PIN PB10 // Z_DIR
  71. #define Z_ENABLE_PIN PB2
  72. #ifndef Z_CS_PIN
  73. #define Z_CS_PIN PD8
  74. #endif
  75. #define E0_STEP_PIN PB1
  76. #define E0_DIR_PIN PB13
  77. #define E0_ENABLE_PIN PB2
  78. #ifndef E0_CS_PIN
  79. #define E0_CS_PIN PE11
  80. #endif
  81. #define E1_STEP_PIN PC4
  82. #define E1_DIR_PIN PC5
  83. #define E1_ENABLE_PIN PB2
  84. #ifndef E1_CS_PIN
  85. #define E1_CS_PIN PB0
  86. #endif
  87. #define SCK_PIN PE12 // PA5 // SPI1 for SD card
  88. #define MISO_PIN PE13 // PA6
  89. #define MOSI_PIN PE14 // PA7
  90. // added for SD card : optional or not ???
  91. //#define SD_CHIP_SELECT_PIN SDSS // The default chip select pin for the SD card is SS.
  92. // The following three pins must not be redefined for hardware SPI.
  93. //#define SPI_MOSI_PIN MOSI_PIN // SPI Master Out Slave In pin
  94. //#define SPI_MISO_PIN MISO_PIN // SPI Master In Slave Out pin
  95. //#define SPI_SCK_PIN SCK_PIN // SPI Clock pin
  96. //
  97. // Temperature Sensors (Analog inputs)
  98. //
  99. #define TEMP_0_PIN PC0 // Analog Input
  100. #define TEMP_1_PIN PC1 // Analog Input
  101. #define TEMP_2_PIN PC2 // Analog Input
  102. #define TEMP_3_PIN PC3 // Analog Input
  103. #define TEMP_BED_PIN PC3 // Analog Input
  104. //
  105. // Heaters / Fans
  106. //
  107. #define HEATER_0_PIN PD15
  108. #define HEATER_1_PIN PD14
  109. #define HEATER_BED_PIN PD12
  110. #ifndef FAN_PIN
  111. #define FAN_PIN PD13
  112. #endif
  113. #define FAN1_PIN PB5 // PA0
  114. #define FAN2_PIN PB4 // PA1
  115. #ifndef E0_AUTO_FAN_PIN
  116. #define E0_AUTO_FAN_PIN PD13
  117. #endif
  118. //
  119. // Misc. Functions
  120. //
  121. //#define CASE_LIGHT_PIN_CI PF13
  122. //#define CASE_LIGHT_PIN_DO PF14
  123. //#define NEOPIXEL_PIN PF13
  124. //
  125. // Průša i3 MK2 Multi Material Multiplexer Support
  126. //
  127. //#define E_MUX0_PIN PG3
  128. //#define E_MUX1_PIN PG4
  129. #define LED_PIN PB14 // Alive
  130. #define PS_ON_PIN PE0
  131. #define KILL_PIN PD5
  132. #define POWER_LOSS_PIN PA4 // ?? Power loss / nAC_FAULT
  133. #if ENABLED(SDSUPPORT)
  134. #define SD_DETECT_PIN PB7
  135. #define SS_PIN PB_15 // USD_CS -> CS for onboard SD
  136. #endif
  137. //
  138. // LCD / Controller
  139. //
  140. #if HAS_SPI_LCD
  141. #if ENABLED(SDSUPPORT)
  142. #define SDSS PB6 // CS for SD card in LCD
  143. #endif
  144. #define BEEPER_PIN PC9
  145. #define LCD_PINS_RS PC12
  146. #define LCD_PINS_ENABLE PD7
  147. #define LCD_PINS_D4 PD1
  148. #define LCD_PINS_D5 PD2
  149. #define LCD_PINS_D6 PD3
  150. #define LCD_PINS_D7 PD4
  151. #define BTN_EN1 PD6
  152. #define BTN_EN2 PD0
  153. #define BTN_ENC PB12
  154. #endif
  155. //
  156. // ST7920 Delays
  157. //
  158. #ifndef BOARD_ST7920_DELAY_1
  159. #define BOARD_ST7920_DELAY_1 DELAY_NS(96)
  160. #endif
  161. #ifndef BOARD_ST7920_DELAY_2
  162. #define BOARD_ST7920_DELAY_2 DELAY_NS(48)
  163. #endif
  164. #ifndef BOARD_ST7920_DELAY_3
  165. #define BOARD_ST7920_DELAY_3 DELAY_NS(715)
  166. #endif