My Marlin configs for Fabrikator Mini and CTC i3 Pro B
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

pins_MKS_13.h 3.4KB

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