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_RUMBA32_common.h 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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 <http://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. /**
  24. * Common pin assignments for all RUMBA32 boards
  25. */
  26. #ifndef STM32F4
  27. #error "Oops! Select an STM32F4 board in 'Tools > Board.'"
  28. #elif HOTENDS > 3 || E_STEPPERS > 3
  29. #error "RUMBA32 boards support up to 3 hotends / E-steppers."
  30. #endif
  31. #define RUMBA32_V1_0
  32. #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
  33. //#define I2C_EEPROM
  34. #ifdef E2END
  35. #undef E2END
  36. #endif
  37. #define E2END 0xFFF // 4KB
  38. //
  39. // Limit Switches
  40. //
  41. #define X_MIN_PIN PB12
  42. #define X_MAX_PIN PB13
  43. #define Y_MIN_PIN PB15
  44. #define Y_MAX_PIN PD8
  45. #define Z_MIN_PIN PD9
  46. #define Z_MAX_PIN PD10
  47. //
  48. // Steppers
  49. //
  50. #define X_STEP_PIN PA0
  51. #define X_DIR_PIN PC15
  52. #define X_ENABLE_PIN PC11
  53. #define X_CS_PIN PC14
  54. #define Y_STEP_PIN PE5
  55. #define Y_DIR_PIN PE6
  56. #define Y_ENABLE_PIN PE3
  57. #define Y_CS_PIN PE4
  58. #define Z_STEP_PIN PE1
  59. #define Z_DIR_PIN PE2
  60. #define Z_ENABLE_PIN PB7
  61. #define Z_CS_PIN PE0
  62. #define E0_STEP_PIN PB5
  63. #define E0_DIR_PIN PB6
  64. #define E0_ENABLE_PIN PC12
  65. #define E0_CS_PIN PC13
  66. #define E1_STEP_PIN PD6
  67. #define E1_DIR_PIN PD7
  68. #define E1_ENABLE_PIN PD4
  69. #define E1_CS_PIN PD5
  70. #define E2_STEP_PIN PD2
  71. #define E2_DIR_PIN PD3
  72. #define E2_ENABLE_PIN PD0
  73. #define E2_CS_PIN PD1
  74. //
  75. // Temperature Sensors
  76. //
  77. #define TEMP_0_PIN PC4
  78. #define TEMP_1_PIN PC3
  79. #define TEMP_2_PIN PC2
  80. #define TEMP_3_PIN PC1
  81. #define TEMP_BED_PIN PC0
  82. //
  83. // Heaters / Fans
  84. //
  85. #define HEATER_0_PIN PC6
  86. #define HEATER_1_PIN PC7
  87. #define HEATER_2_PIN PC8
  88. #define HEATER_BED_PIN PA1
  89. #define FAN_PIN PC9
  90. #define FAN1_PIN PA8
  91. //
  92. // I2C
  93. //
  94. #define SCK_PIN PA5
  95. #define MISO_PIN PA6
  96. #define MOSI_PIN PA7
  97. //
  98. // Misc. Functions
  99. //
  100. #define LED_PIN PB14
  101. #define BTN_PIN PC10
  102. #define PS_ON_PIN PE11
  103. #define KILL_PIN PC5
  104. #define SDSS PA2
  105. #define SD_DETECT_PIN PB0
  106. #define BEEPER_PIN PE8
  107. //
  108. // LCD / Controller
  109. //
  110. #if HAS_SPI_LCD
  111. #define BTN_EN1 PB2
  112. #define BTN_EN2 PB1
  113. #define BTN_ENC PE7
  114. #define LCD_PINS_RS PE10
  115. #define LCD_PINS_ENABLE PE9
  116. #define LCD_PINS_D4 PE12
  117. #if ENABLED(MKS_MINI_12864)
  118. #define DOGLCD_CS PE13
  119. #define DOGLCD_A0 PE14
  120. #endif
  121. #if ENABLED(ULTIPANEL)
  122. #define LCD_PINS_D5 PE13
  123. #define LCD_PINS_D6 PE14
  124. #define LCD_PINS_D7 PE15
  125. #endif
  126. #endif