Advertisement
Guest User

fabktr1.5_pins file

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