My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

pins_MKS_13.h 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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. * Arduino Mega with RAMPS v1.4 adjusted pin assignments
  24. *
  25. * MKS v1.3 (Extruder, Fan, Bed)
  26. * MKS v1.3 (Extruder, Extruder, Fan, Bed)
  27. * MKS v1.4 (Extruder, Fan, Bed)
  28. * MKS v1.4 (Extruder, Extruder, Fan, Bed)
  29. */
  30. #if HOTENDS > 2 || E_STEPPERS > 2
  31. #error "MKS 1.3/1.4 supports up to 2 hotends / E-steppers. Comment out this line to continue."
  32. #endif
  33. #define BOARD_NAME "MKS > v1.3"
  34. //
  35. // Heaters / Fans
  36. //
  37. // Power outputs EFBF or EFBE
  38. #define MOSFET_D_PIN 7
  39. //
  40. // PSU / SERVO
  41. //
  42. // If POWER_SUPPLY is specified, always hijack Servo 3
  43. //
  44. #if POWER_SUPPLY > 0
  45. #define SERVO3_PIN -1
  46. #define PS_ON_PIN 4
  47. #endif
  48. #include "pins_RAMPS.h"
  49. //
  50. // LCD / Controller
  51. //
  52. #if ENABLED(VIKI2) || ENABLED(miniVIKI)
  53. /**
  54. * VIKI2 Has two groups of wires with...
  55. *
  56. * +Vin + Input supply, requires 120ma for LCD and mSD card
  57. * GND Ground Pin
  58. * MOSI Data input for LCD and SD
  59. * MISO Data output for SD
  60. * SCK Clock for LCD and SD
  61. * AO Reg. Sel for LCD
  62. * LCS Chip Select for LCD
  63. * SDCS Chip Select for SD
  64. * SDCD Card Detect pin for SD
  65. * ENCA Encoder output A
  66. * ENCB Encoder output B
  67. * ENCBTN Encoder button switch
  68. *
  69. * BTN Panel mounted button switch
  70. * BUZZER Piezo buzzer
  71. * BLUE-LED Blue LED ring pin (3 to 5v, mosfet buffered)
  72. * RED-LED Red LED ring pin (3 to 5v, mosfet buffered)
  73. *
  74. * This configuration uses the following arrangement:
  75. *
  76. * EXP1 D37 = EN2 D35 = EN1 EXP2 D50 = MISO D52 = SCK
  77. * D17 = BLUE D16 = RED D31 = ENC D53 = SDCS
  78. * D23 = KILL D25 = BUZZ D33 = --- D51 = MOSI
  79. * D27 = A0 D29 = LCS D49 = SDCD RST = ---
  80. * GND = GND 5V = 5V GND = --- D41 = ---
  81. */
  82. #undef BTN_EN1
  83. #undef BTN_EN2
  84. #undef BTN_ENC
  85. #undef DOGLCD_A0
  86. #undef DOGLCD_CS
  87. #undef SD_DETECT_PIN
  88. #undef BEEPER_PIN
  89. #undef KILL_PIN
  90. //
  91. // VIKI2 12-wire lead
  92. //
  93. // orange/white SDCD
  94. #define SD_DETECT_PIN 49
  95. // white ENCA
  96. #define BTN_EN1 35
  97. // green ENCB
  98. #define BTN_EN2 37
  99. // purple ENCBTN
  100. #define BTN_ENC 31
  101. // brown A0
  102. #define DOGLCD_A0 27
  103. // green/white LCS
  104. #define DOGLCD_CS 29
  105. // 50 gray MISO
  106. // 51 yellow MOSI
  107. // 52 orange SCK
  108. // blue SDCS
  109. //#define SDSS 53
  110. //
  111. // VIKI2 4-wire lead
  112. //
  113. // blue BTN
  114. #define KILL_PIN 23
  115. // green BUZZER
  116. #define BEEPER_PIN 25
  117. // yellow RED-LED
  118. #define STAT_LED_RED_PIN 16
  119. // white BLUE-LED
  120. #define STAT_LED_BLUE_PIN 17
  121. #endif