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_MKS_BASE_common.h 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. * MKS BASE – Arduino Mega2560 with RAMPS pin assignments
  25. */
  26. #ifndef BOARD_INFO_NAME
  27. #define BOARD_INFO_NAME "MKS BASE"
  28. #endif
  29. #if MKS_BASE_VERSION == 14 || MKS_BASE_VERSION == 15
  30. //
  31. // Heaters / Fans
  32. //
  33. // Power outputs EFBF or EFBE
  34. #define MOSFET_D_PIN 7
  35. //
  36. // M3/M4/M5 - Spindle/Laser Control
  37. //
  38. #if HAS_CUTTER
  39. #define SPINDLE_LASER_PWM_PIN 2 // Hardware PWM
  40. #define SPINDLE_LASER_ENA_PIN 15 // Pullup!
  41. #define SPINDLE_DIR_PIN 19
  42. #endif
  43. #ifndef CASE_LIGHT_PIN
  44. #define CASE_LIGHT_PIN 2
  45. #endif
  46. #endif
  47. //
  48. // Microstepping pins
  49. //
  50. #if MKS_BASE_VERSION >= 14 // |===== 1.4 =====|===== 1.5+ =====|
  51. #define X_MS1_PIN 5 // PE3 | Pin 5 | PWM5 | | D3 | SERVO2_PIN
  52. #define X_MS2_PIN 6 // PH3 | Pin 15 | PWM6 | Pin 14 | D6 | SERVO1_PIN
  53. #define Y_MS1_PIN 59 // PF5 | Pin 92 | A5 | | |
  54. #define Y_MS2_PIN 58 // PF4 | Pin 93 | A4 | | |
  55. #define Z_MS1_PIN 22 // PA0 | Pin 78 | D22 | | |
  56. #define Z_MS2_PIN 39 // PG2 | Pin 70 | D39 | | |
  57. #if MKS_BASE_VERSION == 14
  58. #define E0_MS1_PIN 64 // PK2 | Pin 87 | A10 | | |
  59. #define E0_MS2_PIN 63 // PK1 | Pin 88 | A9 | | |
  60. #else
  61. #define E0_MS1_PIN 63 // PK1 | | | Pin 86 | A9 |
  62. #define E0_MS2_PIN 64 // PK2 | | | Pin 87 | A10 |
  63. #endif
  64. #define E1_MS1_PIN 57 // PF3 | Pin 94 | A3 | Pin 93 | A3 |
  65. #define E1_MS2_PIN 4 // PG5 | Pin 1 | PWM4 | | D4 | SERVO3_PIN
  66. #endif
  67. #include "pins_RAMPS.h"