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_FYSETC_SPIDER.h 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2021 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. #ifndef BOARD_INFO_NAME
  24. #define BOARD_INFO_NAME "FYSETC SPIDER"
  25. #endif
  26. #ifndef DEFAULT_MACHINE_NAME
  27. #define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
  28. #endif
  29. //
  30. // EEPROM Emulation
  31. //
  32. #if NO_EEPROM_SELECTED
  33. #undef NO_EEPROM_SELECTED
  34. //#define FLASH_EEPROM_EMULATION
  35. //#define SRAM_EEPROM_EMULATION
  36. #define I2C_EEPROM
  37. #endif
  38. #if ENABLED(I2C_EEPROM)
  39. #define MARLIN_EEPROM_SIZE 0x1000 // 4K
  40. #endif
  41. //
  42. // Steppers
  43. //
  44. #define X2_STEP_PIN PD12
  45. #define X2_DIR_PIN PC4
  46. #define X2_ENABLE_PIN PE8
  47. #define X2_CS_PIN PA15
  48. #define Z2_STEP_PIN PE1
  49. #define Z2_DIR_PIN PE0
  50. #define Z2_ENABLE_PIN PC5
  51. #define Z2_CS_PIN PD11
  52. //
  53. // Heaters / Fans
  54. //
  55. #define HEATER_0_PIN PB15
  56. #define HEATER_1_PIN PC8
  57. #define HEATER_2_PIN PB3
  58. #define HEATER_BED_PIN PB4
  59. //
  60. // Steppers
  61. //
  62. #define X_ENABLE_PIN PE9
  63. //
  64. // Servos
  65. // Z_MAX_PIN only works in input mode
  66. //
  67. #define SERVO0_PIN PA2
  68. #if HAS_TMC_UART
  69. #define X_SERIAL_TX_PIN PE7
  70. #define X_SERIAL_RX_PIN X_SERIAL_TX_PIN
  71. #define X2_SERIAL_TX_PIN PA15
  72. #define X2_SERIAL_RX_PIN X2_SERIAL_TX_PIN
  73. #define Y_SERIAL_TX_PIN PE15
  74. #define Y_SERIAL_RX_PIN Y_SERIAL_TX_PIN
  75. #define Z_SERIAL_TX_PIN PD10
  76. #define Z_SERIAL_RX_PIN Z_SERIAL_TX_PIN
  77. #define Z2_SERIAL_TX_PIN PD11
  78. #define Z2_SERIAL_RX_PIN Z2_SERIAL_TX_PIN
  79. #define E0_SERIAL_TX_PIN PD7
  80. #define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN
  81. #define E1_SERIAL_TX_PIN PC14
  82. #define E1_SERIAL_RX_PIN E1_SERIAL_TX_PIN
  83. #define E2_SERIAL_TX_PIN PC15
  84. #define E2_SERIAL_RX_PIN E2_SERIAL_TX_PIN
  85. #endif
  86. //
  87. // Software SPI pins for TMC2130 stepper drivers
  88. //
  89. #define TMC_USE_SW_SPI
  90. #if ENABLED(TMC_USE_SW_SPI)
  91. #ifndef TMC_SW_MOSI
  92. #define TMC_SW_MOSI PE14
  93. #endif
  94. #ifndef TMC_SW_MISO
  95. #define TMC_SW_MISO PE13
  96. #endif
  97. #ifndef TMC_SW_SCK
  98. #define TMC_SW_SCK PE12
  99. #endif
  100. #endif
  101. #if HOTENDS > 3 || E_STEPPERS > 3
  102. #error "FYSETC SPIDER supports up to 3 hotends / E steppers."
  103. #else
  104. #include "pins_FYSETC_S6.h"
  105. #endif