pins_MKS_GEN_L_V2.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (C) 2016 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. * MKS GEN L V2 – Arduino Mega2560 with RAMPS v1.4 pin assignments
  24. */
  25. #if HOTENDS > 2 || E_STEPPERS > 2
  26. #error "MKS GEN L V2 supports up to 2 hotends / E-steppers. Comment out this line to continue."
  27. #endif
  28. #define BOARD_NAME "MKS GEN L V2"
  29. //
  30. // Servos
  31. //
  32. #ifndef SERVO1_PIN
  33. #define SERVO1_PIN 12
  34. #endif
  35. #ifndef SERVO2_PIN
  36. #define SERVO2_PIN 39
  37. #endif
  38. #ifndef SERVO3_PIN
  39. #define SERVO3_PIN 32
  40. #endif
  41. //
  42. // Heaters / Fans
  43. //
  44. // Power outputs EFBF or EFBE
  45. #define MOSFET_D_PIN 7
  46. //
  47. // CS Pins wired to avoid conflict with the LCD
  48. // See https://www.thingiverse.com/asset:66604
  49. //
  50. #ifndef X_CS_PIN
  51. #define X_CS_PIN 63
  52. #endif
  53. #ifndef Y_CS_PIN
  54. #define Y_CS_PIN 64
  55. #endif
  56. #ifndef Z_CS_PIN
  57. #define Z_CS_PIN 65
  58. #endif
  59. #ifndef E0_CS_PIN
  60. #define E0_CS_PIN 66
  61. #endif
  62. #ifndef E1_CS_PIN
  63. #define E1_CS_PIN 21
  64. #endif
  65. // TMC2130 Diag Pins (currently just for reference)
  66. #define X_DIAG_PIN 3
  67. #define Y_DIAG_PIN 14
  68. #define Z_DIAG_PIN 18
  69. #define E0_DIAG_PIN 2
  70. #define E1_DIAG_PIN 15
  71. #ifndef E1_SERIAL_TX_PIN
  72. #define E1_SERIAL_TX_PIN 20
  73. #endif
  74. #ifndef E1_SERIAL_RX_PIN
  75. #define E1_SERIAL_RX_PIN 21
  76. #endif
  77. #include "pins_RAMPS.h"