Subversion Repositories Tronxy-X3A-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-Rambo 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 Rambo"
32
 
33
//
34
// TMC2130 Configuration_adv defaults for EinsyRambo
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 EinsyRambo."
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_STOP_PIN       12
58
  #define Y_STOP_PIN       11
59
  #define Z_STOP_PIN       10
60
 
61
#else
62
 
63
  #define X_STOP_PIN       X_DIAG_PIN
64
  #define Y_STOP_PIN       Y_DIAG_PIN
65
 
66
  #if ENABLED(BLTOUCH)
67
    #define Z_STOP_PIN     11   // Y-MIN
68
    #define SERVO0_PIN     10   // Z-MIN
69
  #else
70
    #define Z_STOP_PIN     10
71
  #endif
72
 
73
#endif
74
 
75
//
76
// Z Probe (when not Z_MIN_PIN)
77
//
78
#ifndef Z_MIN_PROBE_PIN
79
  #define Z_MIN_PROBE_PIN  10
80
#endif
81
 
82
//
83
// Steppers
84
//
85
#define X_STEP_PIN         37
86
#define X_DIR_PIN          49
87
#define X_ENABLE_PIN       29
88
#define X_CS_PIN           41
89
 
90
#define Y_STEP_PIN         36
91
#define Y_DIR_PIN          48
92
#define Y_ENABLE_PIN       28
93
#define Y_CS_PIN           39
94
 
95
#define Z_STEP_PIN         35
96
#define Z_DIR_PIN          47
97
#define Z_ENABLE_PIN       27
98
#define Z_CS_PIN           67
99
 
100
#define E0_STEP_PIN        34
101
#define E0_DIR_PIN         43
102
#define E0_ENABLE_PIN      26
103
#define E0_CS_PIN          66
104
 
105
//
106
// Temperature Sensors
107
//
108
#define TEMP_0_PIN          0   // Analog Input
109
#define TEMP_1_PIN          1   // Analog Input
110
#define TEMP_BED_PIN        2   // Analog Input
111
 
112
//
113
// Heaters / Fans
114
//
115
#define HEATER_0_PIN        3
116
#define HEATER_BED_PIN      4
117
 
118
#ifndef FAN_PIN
119
  #define FAN_PIN           8
120
#endif
121
 
122
#ifndef FAN1_PIN
123
  #define FAN1_PIN          6
124
#endif
125
 
126
//
127
// Misc. Functions
128
//
129
#define SDSS               77
130
#define LED_PIN            13
131
#define CASE_LIGHT_PIN      9
132
 
133
//
134
// M3/M4/M5 - Spindle/Laser Control
135
//
136
// use P1 connector for spindle pins
137
#define SPINDLE_LASER_PWM_PIN     9   // MUST BE HARDWARE PWM
138
#define SPINDLE_LASER_ENABLE_PIN 18   // Pin should have a pullup!
139
#define SPINDLE_DIR_PIN          19
140
 
141
//
142
// Průša i3 MK2 Multiplexer Support
143
//
144
#define E_MUX0_PIN         17
145
#define E_MUX1_PIN         16
146
#define E_MUX2_PIN         78   // 84 in MK2 Firmware, with BEEPER as 78
147
 
148
//
149
// LCD / Controller
150
//
151
#if ENABLED(ULTRA_LCD)
152
 
153
  #define KILL_PIN         32
154
 
155
  #if ENABLED(NEWPANEL)
156
 
157
    #if ENABLED(CR10_STOCKDISPLAY)
158
      #define LCD_PINS_RS     85
159
      #define LCD_PINS_ENABLE 71
160
      #define LCD_PINS_D4     70
161
      #define BTN_EN1         61
162
      #define BTN_EN2         59
163
    #else
164
      #define LCD_PINS_RS     82
165
      #define LCD_PINS_ENABLE 61
166
      #define LCD_PINS_D4     59
167
      #define LCD_PINS_D5     70
168
      #define LCD_PINS_D6     85
169
      #define LCD_PINS_D7     71
170
      #define BTN_EN1         14
171
      #define BTN_EN2         72
172
    #endif
173
 
174
    #define BTN_ENC            9   // AUX-2
175
    #define BEEPER_PIN        84   // AUX-4
176
    #define SD_DETECT_PIN     15
177
 
178
  #endif // NEWPANEL
179
#endif // ULTRA_LCD