Subversion Repositories MK-Marlin

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 ron 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
 * Einsy-Retro pin assignments
25
 */
26
 
27
#ifndef __AVR_ATmega2560__
28
  #error "Oops!  Make sure you have 'Arduino Mega 2560 or Rambo' selected from the 'Tools -> Boards' menu."
29
#endif
30
 
31
#define BOARD_NAME         "Einsy Retro"
32
 
33
//
34
// TMC2130 Configuration_adv defaults for EinsyRetro
35
//
36
#if !AXIS_DRIVER_TYPE(X, TMC2130) || !AXIS_DRIVER_TYPE(Y, TMC2130) || !AXIS_DRIVER_TYPE(Z, TMC2130) || !AXIS_DRIVER_TYPE(E0, TMC2130)
37
  #error "You must set ([XYZ]|E0)_DRIVER_TYPE to TMC2130 in Configuration.h for EinsyRetro."
38
#endif
39
 
40
// TMC2130 Diag Pins (currently just for reference)
41
#define X_DIAG_PIN         64
42
#define Y_DIAG_PIN         69
43
#define Z_DIAG_PIN         68
44
#define E0_DIAG_PIN        65
45
 
46
//
47
// Limit Switches
48
//
49
// Only use Diag Pins when SENSORLESS_HOMING is enabled for the TMC2130 drivers.
50
// Otherwise use a physical endstop based configuration.
51
//
52
// SERVO0_PIN and Z_MIN_PIN configuration for BLTOUCH sensor when combined with SENSORLESS_HOMING.
53
//
54
 
55
#if DISABLED(SENSORLESS_HOMING)
56
 
57
  #define X_MIN_PIN        12
58
  #define Y_MIN_PIN        11
59
  #define Z_MIN_PIN        10
60
  #define X_MAX_PIN        81
61
  #define Y_MAX_PIN        57
62
 
63
#else
64
 
65
  #if X_HOME_DIR == -1
66
    #define X_MIN_PIN      X_DIAG_PIN
67
    #define X_MAX_PIN      81
68
  #else
69
    #define X_MIN_PIN      12
70
    #define X_MAX_PIN      X_DIAG_PIN
71
  #endif
72
 
73
  #if Y_HOME_DIR == -1
74
    #define Y_MIN_PIN      Y_DIAG_PIN
75
    #define Y_MAX_PIN      57
76
  #else
77
    #define Y_MIN_PIN      11
78
    #define Y_MAX_PIN      Y_DIAG_PIN
79
  #endif
80
 
81
  #if ENABLED(BLTOUCH)
82
    #define Z_MIN_PIN      11   // Y-MIN
83
    #define SERVO0_PIN     10   // Z-MIN
84
  #else
85
    #define Z_MIN_PIN      10
86
  #endif
87
 
88
#endif
89
 
90
#define Z_MAX_PIN           7
91
 
92
//
93
// Z Probe (when not Z_MIN_PIN)
94
//
95
#ifndef Z_MIN_PROBE_PIN
96
  #define Z_MIN_PROBE_PIN  10
97
#endif
98
 
99
//
100
// Steppers
101
//
102
#define X_STEP_PIN         37
103
#define X_DIR_PIN          49
104
#define X_ENABLE_PIN       29
105
#define X_CS_PIN           41
106
 
107
#define Y_STEP_PIN         36
108
#define Y_DIR_PIN          48
109
#define Y_ENABLE_PIN       28
110
#define Y_CS_PIN           39
111
 
112
#define Z_STEP_PIN         35
113
#define Z_DIR_PIN          47
114
#define Z_ENABLE_PIN       27
115
#define Z_CS_PIN           67
116
 
117
#define E0_STEP_PIN        34
118
#define E0_DIR_PIN         43
119
#define E0_ENABLE_PIN      26
120
#define E0_CS_PIN          66
121
 
122
//
123
// Temperature Sensors
124
//
125
#define TEMP_0_PIN          0   // Analog Input
126
#define TEMP_1_PIN          1   // Analog Input
127
#define TEMP_BED_PIN        2   // Analog Input
128
 
129
//
130
// Heaters / Fans
131
//
132
#define HEATER_0_PIN        3
133
#define HEATER_BED_PIN      4
134
 
135
#ifndef FAN_PIN
136
  #define FAN_PIN           8
137
#endif
138
#define FAN1_PIN            6
139
 
140
//
141
// Misc. Functions
142
//
143
#define SDSS               53
144
#define LED_PIN            13
145
#define CASE_LIGHT_PIN      9
146
 
147
//
148
// M3/M4/M5 - Spindle/Laser Control
149
//
150
// use P1 connector for spindle pins
151
#define SPINDLE_LASER_PWM_PIN     9   // MUST BE HARDWARE PWM
152
#define SPINDLE_LASER_ENABLE_PIN 18   // Pin should have a pullup!
153
#define SPINDLE_DIR_PIN          19
154
 
155
//
156
// Průša i3 MK2 Multiplexer Support
157
//
158
#define E_MUX0_PIN         17
159
#define E_MUX1_PIN         16
160
#define E_MUX2_PIN         78   // 84 in MK2 Firmware, with BEEPER as 78
161
 
162
//
163
// LCD / Controller
164
//
165
#if ENABLED(ULTRA_LCD)
166
 
167
  #define KILL_PIN         32
168
 
169
  #if ENABLED(NEWPANEL)
170
 
171
    #if ENABLED(CR10_STOCKDISPLAY)
172
      #define LCD_PINS_RS     85
173
      #define LCD_PINS_ENABLE 71
174
      #define LCD_PINS_D4     70
175
      #define BTN_EN1         18
176
      #define BTN_EN2         19
177
    #else
178
      #define LCD_PINS_RS     82
179
      #define LCD_PINS_ENABLE 18
180
      #define LCD_PINS_D4     19
181
      #define LCD_PINS_D5     70
182
      #define LCD_PINS_D6     85
183
      #define LCD_PINS_D7     71
184
      #define BTN_EN1         14
185
      #define BTN_EN2         72
186
    #endif
187
 
188
    #define BTN_ENC            9   // AUX-2
189
    #define BEEPER_PIN        84   // AUX-4
190
    #define SD_DETECT_PIN     15
191
 
192
  #endif // NEWPANEL
193
#endif // ULTRA_LCD