My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

pins_RUMBA32_MKS.h 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. * Pin assignments for the MKS RUMBA32
  25. *
  26. * https://github.com/makerbase-mks/MKS-RUMBA32
  27. *
  28. * The MKS and Aus3D versions have the same pinout but the MKS version
  29. * has some added resistors and LEDs. The resistors needed for the
  30. * TMC2208/9 UART interface are among the additions. Also added were
  31. * connectors and resistors dedicated to the TMC2130 sensorless homing
  32. * interface.
  33. */
  34. #define BOARD_INFO_NAME "MKS RUMBA32"
  35. #define RUMBA32_V1_0
  36. #define ENABLE_SPI1
  37. //#define I2C_EEPROM
  38. #include "pins_RUMBA32_common.h"
  39. //
  40. // Software SPI pins for TMC2130 stepper drivers
  41. //
  42. #if ENABLED(TMC_USE_SW_SPI)
  43. #ifndef TMC_SW_MOSI
  44. #define TMC_SW_MOSI PA7
  45. #endif
  46. #ifndef TMC_SW_MISO
  47. #define TMC_SW_MISO PA6
  48. #endif
  49. #ifndef TMC_SW_SCK
  50. #define TMC_SW_SCK PA5
  51. #endif
  52. #endif
  53. #if HAS_TMC220x
  54. /**
  55. * TMC2208/TMC2209 stepper drivers
  56. *
  57. * Hardware serial communication ports.
  58. * If undefined software serial is used according to the pins below
  59. */
  60. //#define X_HARDWARE_SERIAL Serial
  61. //#define X2_HARDWARE_SERIAL Serial1
  62. //#define Y_HARDWARE_SERIAL Serial1
  63. //#define Y2_HARDWARE_SERIAL Serial1
  64. //#define Z_HARDWARE_SERIAL Serial1
  65. //#define Z2_HARDWARE_SERIAL Serial1
  66. //#define E0_HARDWARE_SERIAL Serial1
  67. //#define E1_HARDWARE_SERIAL Serial1
  68. //#define E2_HARDWARE_SERIAL Serial1
  69. //#define E3_HARDWARE_SERIAL Serial1
  70. //#define E4_HARDWARE_SERIAL Serial1
  71. //
  72. // Software serial
  73. //
  74. #define X_SERIAL_TX_PIN PA3
  75. #define X_SERIAL_RX_PIN PC14
  76. #define Y_SERIAL_TX_PIN PA4
  77. #define Y_SERIAL_RX_PIN PE4
  78. #define Z_SERIAL_TX_PIN PD13
  79. #define Z_SERIAL_RX_PIN PE0
  80. #define E0_SERIAL_TX_PIN PD14
  81. #define E0_SERIAL_RX_PIN PC13
  82. #define E1_SERIAL_TX_PIN PD15
  83. #define E1_SERIAL_RX_PIN PD5
  84. #define E2_SERIAL_TX_PIN PD12
  85. #define E2_SERIAL_RX_PIN PD1
  86. #endif
  87. //
  88. // LCD / Controller
  89. //
  90. // Alter timing for graphical display
  91. #if HAS_GRAPHICAL_LCD
  92. #define BOARD_ST7920_DELAY_1 DELAY_NS(96)
  93. #define BOARD_ST7920_DELAY_2 DELAY_NS(48)
  94. #define BOARD_ST7920_DELAY_3 DELAY_NS(600)
  95. #endif