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_GEN_13.h 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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 <https://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #pragma once
  23. /**
  24. * Arduino Mega with RAMPS v1.4 adjusted pin assignments
  25. *
  26. * MKS GEN v1.3 (Extruder, Fan, Bed)
  27. * MKS GEN v1.3 (Extruder, Extruder, Fan, Bed)
  28. * MKS GEN v1.4 (Extruder, Fan, Bed)
  29. * MKS GEN v1.4 (Extruder, Extruder, Fan, Bed)
  30. */
  31. #if HOTENDS > 2 || E_STEPPERS > 2
  32. #error "MKS GEN 1.3/1.4 supports up to 2 hotends / E steppers."
  33. #endif
  34. #define BOARD_INFO_NAME "MKS GEN >= v1.3"
  35. //
  36. // Heaters / Fans
  37. //
  38. // Power outputs EFBF or EFBE
  39. #define MOSFET_D_PIN 7
  40. //
  41. // PSU / SERVO
  42. //
  43. // If PSU_CONTROL is specified, always hijack Servo 3
  44. //
  45. #if ENABLED(PSU_CONTROL)
  46. #define SERVO3_PIN -1
  47. #define PS_ON_PIN 4
  48. #endif
  49. #include "pins_RAMPS.h"
  50. #undef EXP2_03_PIN
  51. #define EXP2_03_PIN -1 // RESET
  52. //
  53. // LCD / Controller
  54. //
  55. #if EITHER(VIKI2, miniVIKI)
  56. /**
  57. * VIKI2 Has two groups of wires with...
  58. *
  59. * +Vin + Input supply, requires 120ma for LCD and mSD card
  60. * GND Ground Pin
  61. * MOSI Data input for LCD and SD
  62. * MISO Data output for SD
  63. * SCK Clock for LCD and SD
  64. * AO Reg. Sel for LCD
  65. * LCS Chip Select for LCD
  66. * SDCS Chip Select for SD
  67. * SDCD Card Detect pin for SD
  68. * ENCA Encoder output A
  69. * ENCB Encoder output B
  70. * ENCBTN Encoder button switch
  71. *
  72. * BTN Panel mounted button switch
  73. * BUZZER Piezo buzzer
  74. * BLUE-LED Blue LED ring pin (3 to 5v, mosfet buffered)
  75. * RED-LED Red LED ring pin (3 to 5v, mosfet buffered)
  76. *
  77. * This configuration uses the following arrangement:
  78. *
  79. * ------ ------
  80. * ENCB |10 9 | ENCA MISO |10 9 | SCK
  81. * BLUE_LED | 8 7 | RED_LED ENCBTN | 8 7 | SDCS
  82. * KILL 6 5 | BEEPER 6 5 | MOSI
  83. * A0 | 4 3 | LCD_CS SDCD | 4 3 |
  84. * GND | 2 1 | 5V GND | 2 1 | --
  85. * ------ ------
  86. * EXP1 EXP2
  87. */
  88. #undef SD_DETECT_PIN
  89. #undef BTN_EN1
  90. #undef BTN_EN2
  91. #undef BTN_ENC
  92. #undef DOGLCD_A0
  93. #undef DOGLCD_CS
  94. #undef BEEPER_PIN
  95. #undef KILL_PIN
  96. #undef STAT_LED_RED_PIN
  97. #undef STAT_LED_BLUE_PIN
  98. //
  99. // VIKI2 12-wire lead
  100. //
  101. #define SD_DETECT_PIN EXP2_04_PIN // SDCD orange/white
  102. #define BTN_EN1 EXP1_09_PIN // ENCA white
  103. #define BTN_EN2 EXP1_10_PIN // ENCB green
  104. #define BTN_ENC EXP2_08_PIN // ENCBTN purple
  105. #define DOGLCD_A0 EXP1_04_PIN // A0 brown
  106. #define DOGLCD_CS EXP1_03_PIN // LCS green/white
  107. // EXP2_10_PIN gray MISO
  108. // EXP2_05_PIN yellow MOSI
  109. // EXP2_09_PIN orange SCK
  110. //#define SDSS EXP2_07_PIN // SDCS blue
  111. //
  112. // VIKI2 4-wire lead
  113. //
  114. #define KILL_PIN EXP1_06_PIN // BTN blue
  115. #define BEEPER_PIN EXP1_05_PIN // BUZZER green
  116. #define STAT_LED_RED_PIN EXP1_07_PIN // RED-LED yellow
  117. #define STAT_LED_BLUE_PIN EXP1_08_PIN // BLUE-LED white
  118. #endif