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_13.h 3.3KB

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