Prusa MINI Firmware overview
Main Page
Modules
Classes
Files
File List
File Members
pins_GT2560_REV_A.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
* Geeetech GT2560 Revision A board pin assignments, based on the work of
26
* George Robles (https://georges3dprinters.com) and
27
* Richard Smith <galorin@gmail.com>
28
*/
29
30
#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
31
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
32
#endif
33
34
#ifndef BOARD_INFO_NAME
35
#define BOARD_INFO_NAME "GT2560 Rev.A"
36
#endif
37
#define DEFAULT_MACHINE_NAME "Prusa i3 Pro B"
38
39
//
40
// Limit Switches
41
//
42
#define X_MIN_PIN 22
43
#define X_MAX_PIN 24
44
#define Y_MIN_PIN 26
45
#define Y_MAX_PIN 28
46
#define Z_MIN_PIN 30
47
#define Z_MAX_PIN 32
48
49
//
50
// Steppers
51
//
52
#define X_STEP_PIN 25
53
#define X_DIR_PIN 23
54
#define X_ENABLE_PIN 27
55
56
#define Y_STEP_PIN 31
57
#define Y_DIR_PIN 33
58
#define Y_ENABLE_PIN 29
59
60
#define Z_STEP_PIN 37
61
#define Z_DIR_PIN 39
62
#define Z_ENABLE_PIN 35
63
64
#define E0_STEP_PIN 43
65
#define E0_DIR_PIN 45
66
#define E0_ENABLE_PIN 41
67
68
#define E1_STEP_PIN 49
69
#define E1_DIR_PIN 47
70
#define E1_ENABLE_PIN 48
71
72
//
73
// Temperature Sensors
74
//
75
#define TEMP_0_PIN 8
76
#define TEMP_1_PIN 9
77
#define TEMP_BED_PIN 10
78
79
//
80
// Heaters / Fans
81
//
82
#define HEATER_0_PIN 2
83
#define HEATER_1_PIN 3
84
#define HEATER_BED_PIN 4
85
#ifndef FAN_PIN
86
#define FAN_PIN 7
87
#endif
88
89
//
90
// Misc. Functions
91
//
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 HAS_SPI_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 // HAS_SPI_LCD
Prusa-Firmware-Buddy-Private1
lib
Marlin
Marlin
src
pins
mega
pins_GT2560_REV_A.h
Generated by
1.8.16