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
 * Geeetech GT2560 Revision A board pin assignments, based on the work of
25
 * George Robles (https://georges3dprinters.com) and
26
 * Richard Smith <galorin@gmail.com>
27
 */
28
 
29
#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
30
  #error "Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."
31
#endif
32
 
33
#ifndef BOARD_NAME
34
  #define BOARD_NAME "GT2560 Rev.A"
35
#endif
36
#define DEFAULT_MACHINE_NAME "Prusa i3 Pro B"
37
 
38
//
39
// Limit Switches
40
//
41
#define X_MIN_PIN          22
42
#define X_MAX_PIN          24
43
#define Y_MIN_PIN          26
44
#define Y_MAX_PIN          28
45
#define Z_MIN_PIN          30
46
#define Z_MAX_PIN          32
47
 
48
//
49
// Steppers
50
//
51
#define X_STEP_PIN         25
52
#define X_DIR_PIN          23
53
#define X_ENABLE_PIN       27
54
 
55
#define Y_STEP_PIN         31
56
#define Y_DIR_PIN          33
57
#define Y_ENABLE_PIN       29
58
 
59
#define Z_STEP_PIN         37
60
#define Z_DIR_PIN          39
61
#define Z_ENABLE_PIN       35
62
 
63
#define E0_STEP_PIN        43
64
#define E0_DIR_PIN         45
65
#define E0_ENABLE_PIN      41
66
 
67
#define E1_STEP_PIN        49
68
#define E1_DIR_PIN         47
69
#define E1_ENABLE_PIN      48
70
 
71
//
72
// Temperature Sensors
73
//
74
#define TEMP_0_PIN          8
75
#define TEMP_1_PIN          9
76
#define TEMP_BED_PIN       10
77
 
78
//
79
// Heaters / Fans
80
//
81
#define HEATER_0_PIN        2
82
#define HEATER_1_PIN        3
83
#define HEATER_BED_PIN      4
84
#ifndef FAN_PIN
85
  #define FAN_PIN           7
86
#endif
87
 
88
//
89
// Misc. Functions
90
//
91
#define SDPOWER            -1
92
#define SDSS               53
93
#define LED_PIN            13
94
#define PS_ON_PIN          12
95
#define SUICIDE_PIN        54   // Must be enabled at startup to keep power flowing
96
#define KILL_PIN           -1
97
 
98
#if ENABLED(ULTRA_LCD)
99
 
100
  #define BEEPER_PIN       18
101
 
102
  #if ENABLED(NEWPANEL)
103
 
104
    #if ENABLED(MKS_MINI_12864)
105
      #define DOGLCD_A0     5
106
      #define DOGLCD_CS    21
107
      #define BTN_EN1      40
108
      #define BTN_EN2      42
109
    #else
110
      #define LCD_PINS_RS  20
111
      #define LCD_PINS_ENABLE 17
112
      #define LCD_PINS_D4  16
113
      #define LCD_PINS_D5  21
114
      #define LCD_PINS_D6   5
115
      #define LCD_PINS_D7   6
116
      #define BTN_EN1      42
117
      #define BTN_EN2      40
118
    #endif
119
 
120
    #define BTN_ENC        19
121
    #define SD_DETECT_PIN  38
122
 
123
  #else // !NEWPANEL
124
 
125
    #define SHIFT_CLK      38
126
    #define SHIFT_LD       42
127
    #define SHIFT_OUT      40
128
    #define SHIFT_EN       17
129
 
130
    #define LCD_PINS_RS    16
131
    #define LCD_PINS_ENABLE 5
132
    #define LCD_PINS_D4     6
133
    #define LCD_PINS_D5    21
134
    #define LCD_PINS_D6    20
135
    #define LCD_PINS_D7    19
136
 
137
    #define SD_DETECT_PIN  -1
138
 
139
  #endif // !NEWPANEL
140
 
141
#endif // ULTRA_LCD