Prusa MINI Firmware overview
Main Page
Modules
Classes
Files
File List
File Members
pins_MEGACONTROLLER.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
* Mega controller pin assignments
26
*/
27
28
#ifndef __AVR_ATmega2560__
29
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
30
#elif HOTENDS > 2 || E_STEPPERS > 2
31
#error "Mega Controller supports up to 2 hotends / E-steppers. Comment out this line to continue."
32
#endif
33
34
#define BOARD_INFO_NAME "Mega Controller"
35
36
//
37
// Servos
38
//
39
#define SERVO0_PIN 30
40
#define SERVO1_PIN 31
41
#define SERVO2_PIN 32
42
#define SERVO3_PIN 33
43
44
//
45
// Limit Switches
46
//
47
#define X_MIN_PIN 43
48
#define X_MAX_PIN 42
49
#define Y_MIN_PIN 38
50
#define Y_MAX_PIN 41
51
#define Z_MIN_PIN 40
52
#define Z_MAX_PIN 37
53
54
//
55
// Z Probe (when not Z_MIN_PIN)
56
//
57
#ifndef Z_MIN_PROBE_PIN
58
#define Z_MIN_PROBE_PIN 37
59
#endif
60
61
//
62
// Steppers
63
//
64
#define X_STEP_PIN 62 // A8
65
#define X_DIR_PIN 63 // A9
66
#define X_ENABLE_PIN 61 // A7
67
68
#define Y_STEP_PIN 65 // A11
69
#define Y_DIR_PIN 66 // A12
70
#define Y_ENABLE_PIN 64 // A10
71
72
#define Z_STEP_PIN 68 // A14
73
#define Z_DIR_PIN 69 // A15
74
#define Z_ENABLE_PIN 67 // A13
75
76
#define E0_STEP_PIN 23
77
#define E0_DIR_PIN 24
78
#define E0_ENABLE_PIN 22
79
80
#define E1_STEP_PIN 26
81
#define E1_DIR_PIN 27
82
#define E1_ENABLE_PIN 25
83
84
//
85
// Temperature Sensors
86
//
87
#if TEMP_SENSOR_0 == -1
88
#define TEMP_0_PIN 4 // Analog Input
89
#else
90
#define TEMP_0_PIN 0 // Analog Input
91
#endif
92
93
#if TEMP_SENSOR_1 == -1
94
#define TEMP_1_PIN 5 // Analog Input
95
#else
96
#define TEMP_1_PIN 2 // Analog Input
97
#endif
98
99
#define TEMP_2_PIN 3 // Analog Input
100
101
#if TEMP_SENSOR_BED == -1
102
#define TEMP_BED_PIN 6 // Analog Input
103
#else
104
#define TEMP_BED_PIN 1 // Analog Input
105
#endif
106
107
//
108
// Heaters / Fans
109
//
110
#define HEATER_0_PIN 29
111
#define HEATER_1_PIN 34
112
#define HEATER_BED_PIN 28
113
114
#ifndef FAN_PIN
115
#define FAN_PIN 39
116
#endif
117
#define FAN1_PIN 35
118
#define FAN2_PIN 36
119
120
#ifndef CONTROLLER_FAN_PIN
121
#define CONTROLLER_FAN_PIN FAN2_PIN
122
#endif
123
124
#define FAN_SOFT_PWM
125
126
//
127
// Misc. Functions
128
//
129
#define SDSS 53
130
#define LED_PIN 13
131
#define CASE_LIGHT_PIN 2
132
133
//
134
// LCD / Controller
135
//
136
#if ENABLED(MINIPANEL)
137
138
#define BEEPER_PIN 46
139
// Pins for DOGM SPI LCD Support
140
#define DOGLCD_A0 47
141
#define DOGLCD_CS 45
142
#define LCD_BACKLIGHT_PIN 44 // backlight LED on PA3
143
144
#define KILL_PIN 12
145
// GLCD features
146
// Uncomment screen orientation
147
//#define LCD_SCREEN_ROT_90
148
//#define LCD_SCREEN_ROT_180
149
//#define LCD_SCREEN_ROT_270
150
151
#define BTN_EN1 48
152
#define BTN_EN2 11
153
#define BTN_ENC 10
154
155
#define SD_DETECT_PIN 49
156
157
#endif // MINIPANEL
158
159
//
160
// M3/M4/M5 - Spindle/Laser Control
161
//
162
#define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
163
#define SPINDLE_LASER_ENA_PIN 7 // Pullup!
164
#define SPINDLE_DIR_PIN 8
Prusa-Firmware-Buddy-Private1
lib
Marlin
Marlin
src
pins
mega
pins_MEGACONTROLLER.h
Generated by
1.8.16