Prusa MINI Firmware overview
Main Page
Modules
Classes
Files
File List
File Members
pins_FORMBOT_TREX3.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
* Formbot 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 "Formbot supports up to 2 hotends / E-steppers. Comment out this line to continue."
32
#endif
33
34
#define BOARD_INFO_NAME "Formbot"
35
#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME
36
37
//
38
// Servos
39
//
40
#define SERVO0_PIN 11
41
#define SERVO1_PIN -1 // was 6
42
#define SERVO2_PIN -1
43
#define SERVO3_PIN -1
44
45
//
46
// Limit Switches
47
//
48
#define X_MIN_PIN 3
49
#ifndef X_MAX_PIN
50
#define X_MAX_PIN 2
51
#endif
52
#define Y_MIN_PIN 14
53
#define Y_MAX_PIN 15
54
#define Z_MIN_PIN 18
55
#define Z_MAX_PIN 19
56
57
//
58
// Z Probe (when not Z_MIN_PIN)
59
//
60
#ifndef Z_MIN_PROBE_PIN
61
#define Z_MIN_PROBE_PIN 32
62
#endif
63
64
//
65
// Steppers
66
//
67
#define X_STEP_PIN 54
68
#define X_DIR_PIN 55
69
#define X_ENABLE_PIN 38
70
#ifndef X_CS_PIN
71
#define X_CS_PIN 53
72
#endif
73
74
#define Y_STEP_PIN 60
75
#define Y_DIR_PIN 61
76
#define Y_ENABLE_PIN 56
77
#ifndef Y_CS_PIN
78
#define Y_CS_PIN 49
79
#endif
80
81
#define Z_STEP_PIN 46
82
#define Z_DIR_PIN 48
83
#define Z_ENABLE_PIN 62
84
#ifndef Z_CS_PIN
85
#define Z_CS_PIN 40
86
#endif
87
88
#define E0_STEP_PIN 26
89
#define E0_DIR_PIN 28
90
#define E0_ENABLE_PIN 24
91
#ifndef E0_CS_PIN
92
#define E0_CS_PIN 42
93
#endif
94
95
#define E1_STEP_PIN 36
96
#define E1_DIR_PIN 34
97
#define E1_ENABLE_PIN 30
98
#ifndef E1_CS_PIN
99
#define E1_CS_PIN 44
100
#endif
101
102
#define E2_STEP_PIN 42
103
#define E2_DIR_PIN 43
104
#define E2_ENABLE_PIN 44
105
106
//
107
// Temperature Sensors
108
//
109
#define TEMP_0_PIN 13 // Analog Input
110
#define TEMP_1_PIN 15 // Analog Input
111
#define TEMP_BED_PIN 14 // Analog Input
112
113
// SPI for Max6675 or Max31855 Thermocouple
114
#if DISABLED(SDSUPPORT)
115
#define MAX6675_SS_PIN 66 // Don't use 53 if there is even the remote possibility of using Display/SD card
116
#else
117
#define MAX6675_SS_PIN 66 // Don't use 49 as this is tied to the switch inside the SD card socket to detect if there is an SD card present
118
#endif
119
120
121
122
//
123
// Heaters / Fans
124
//
125
#define HEATER_0_PIN 10
126
#define HEATER_1_PIN 7
127
#define HEATER_BED_PIN 8
128
129
#define FAN_PIN 9
130
#define FAN1_PIN 12
131
132
#define NUM_RUNOUT_SENSORS 2
133
#define FIL_RUNOUT_PIN 22
134
#define FIL_RUNOUT2_PIN 21
135
136
//
137
// Misc. Functions
138
//
139
#define CASE_LIGHT_PIN 5
140
#define SDSS 53
141
#ifndef LED_PIN
142
#define LED_PIN 13
143
#endif
144
145
#define SPINDLE_LASER_PWM_PIN -1 // Hardware PWM
146
#define SPINDLE_LASER_ENA_PIN 4 // Pullup!
147
148
// Use the RAMPS 1.4 Analog input 5 on the AUX2 connector
149
#define FILWIDTH_PIN 5 // Analog Input
150
151
//
152
// LCD / Controller
153
//
154
// Formbot only supports REPRAP_DISCOUNT_SMART_CONTROLLER
155
//
156
#if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
157
#define LCD_PINS_RS 16
158
#define LCD_PINS_ENABLE 17
159
#define LCD_PINS_D4 23
160
#define LCD_PINS_D5 25
161
#define LCD_PINS_D6 27
162
#define LCD_PINS_D7 29
163
#define BTN_EN1 31
164
#define BTN_EN2 33
165
#define BTN_ENC 35
166
#define SD_DETECT_PIN 49
167
#ifndef KILL_PIN
168
#define KILL_PIN 41
169
#endif
170
#ifndef BEEPER_PIN
171
#define BEEPER_PIN 37
172
#endif
173
#endif
Prusa-Firmware-Buddy-Private1
lib
Marlin
Marlin
src
pins
ramps
pins_FORMBOT_TREX3.h
Generated by
1.8.16