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