Procházet zdrojové kódy

Support for VIKI2 with MKS Gen 1.3 / 1.4

Scott Lahteine před 8 roky
rodič
revize
9b1ba1012a
1 změnil soubory, kde provedl 84 přidání a 2 odebrání
  1. 84
    2
      Marlin/pins_MKS_13.h

+ 84
- 2
Marlin/pins_MKS_13.h Zobrazit soubor

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

Loading…
Zrušit
Uložit