| 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 |
* RIGIDBOARD Arduino Mega with RAMPS v1.4 pin assignments
|
|
|
25 |
*/
|
|
|
26 |
|
|
|
27 |
#define BOARD_NAME "RigidBoard"
|
|
|
28 |
|
|
|
29 |
//
|
|
|
30 |
// Z Probe (when not Z_MIN_PIN)
|
|
|
31 |
//
|
|
|
32 |
#ifndef Z_MIN_PROBE_PIN
|
|
|
33 |
#define Z_MIN_PROBE_PIN 19 // Z-MAX pin J14 End Stops
|
|
|
34 |
#endif
|
|
|
35 |
|
|
|
36 |
//
|
|
|
37 |
// MOSFET changes
|
|
|
38 |
//
|
|
|
39 |
#define RAMPS_D9_PIN 8 // FAN (by default)
|
|
|
40 |
#define RAMPS_D10_PIN 9 // EXTRUDER 1
|
|
|
41 |
#define MOSFET_D_PIN 12 // EXTRUDER 2 or FAN
|
|
|
42 |
|
|
|
43 |
#include "pins_RAMPS.h"
|
|
|
44 |
|
|
|
45 |
//
|
|
|
46 |
// Steppers
|
|
|
47 |
//
|
|
|
48 |
// RigidBot swaps E0 / E1 plugs vs RAMPS 1.3
|
|
|
49 |
#undef E0_STEP_PIN
|
|
|
50 |
#undef E0_DIR_PIN
|
|
|
51 |
#undef E0_ENABLE_PIN
|
|
|
52 |
#define E0_STEP_PIN 36
|
|
|
53 |
#define E0_DIR_PIN 34
|
|
|
54 |
#define E0_ENABLE_PIN 30
|
|
|
55 |
|
|
|
56 |
#undef E1_STEP_PIN
|
|
|
57 |
#undef E1_DIR_PIN
|
|
|
58 |
#undef E1_ENABLE_PIN
|
|
|
59 |
#define E1_STEP_PIN 26
|
|
|
60 |
#define E1_DIR_PIN 28
|
|
|
61 |
#define E1_ENABLE_PIN 24
|
|
|
62 |
|
|
|
63 |
#define STEPPER_RESET_PIN 41 // Stepper drivers have a reset on RigidBot
|
|
|
64 |
|
|
|
65 |
//
|
|
|
66 |
// Temperature Sensors
|
|
|
67 |
//
|
|
|
68 |
#undef TEMP_0_PIN
|
|
|
69 |
#undef TEMP_1_PIN
|
|
|
70 |
#undef TEMP_BED_PIN
|
|
|
71 |
#define TEMP_0_PIN 14 // Analog Input
|
|
|
72 |
#define TEMP_1_PIN 13 // Analog Input
|
|
|
73 |
#define TEMP_BED_PIN 15 // Analog Input
|
|
|
74 |
|
|
|
75 |
// SPI for Max6675 or Max31855 Thermocouple
|
|
|
76 |
#undef MAX6675_SS
|
|
|
77 |
#if DISABLED(SDSUPPORT)
|
|
|
78 |
#define MAX6675_SS 53 // Don't use pin 53 if there is even the remote possibility of using Display/SD card
|
|
|
79 |
#else
|
|
|
80 |
#define MAX6675_SS 49 // Don't use pin 49 as this is tied to the switch inside the SD card socket to detect if there is an SD card present
|
|
|
81 |
#endif
|
|
|
82 |
|
|
|
83 |
//
|
|
|
84 |
// Heaters / Fans
|
|
|
85 |
//
|
|
|
86 |
#undef HEATER_BED_PIN
|
|
|
87 |
#define HEATER_BED_PIN 10
|
|
|
88 |
|
|
|
89 |
#ifndef FAN_PIN
|
|
|
90 |
#define FAN_PIN 8 // Same as RAMPS_13_EEF
|
|
|
91 |
#endif
|
|
|
92 |
|
|
|
93 |
//
|
|
|
94 |
// Misc. Functions
|
|
|
95 |
//
|
|
|
96 |
#undef PS_ON_PIN
|
|
|
97 |
#define PS_ON_PIN -1
|
|
|
98 |
|
|
|
99 |
//
|
|
|
100 |
// LCD / Controller
|
|
|
101 |
//
|
|
|
102 |
// LCD Panel options for the RigidBoard
|
|
|
103 |
#if ENABLED(RIGIDBOT_PANEL)
|
|
|
104 |
|
|
|
105 |
#undef BEEPER_PIN
|
|
|
106 |
#define BEEPER_PIN -1
|
|
|
107 |
|
|
|
108 |
// Direction buttons
|
|
|
109 |
#define BTN_UP 37
|
|
|
110 |
#define BTN_DWN 35
|
|
|
111 |
#define BTN_LFT 33
|
|
|
112 |
#define BTN_RT 32
|
|
|
113 |
|
|
|
114 |
// 'R' button
|
|
|
115 |
#undef BTN_ENC
|
|
|
116 |
#define BTN_ENC 31
|
|
|
117 |
|
|
|
118 |
// Disable encoder
|
|
|
119 |
#undef BTN_EN1
|
|
|
120 |
#define BTN_EN1 -1
|
|
|
121 |
#undef BTN_EN2
|
|
|
122 |
#define BTN_EN2 -1
|
|
|
123 |
|
|
|
124 |
#undef SD_DETECT_PIN
|
|
|
125 |
#define SD_DETECT_PIN 22
|
|
|
126 |
|
|
|
127 |
#elif ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
|
|
|
128 |
|
|
|
129 |
#undef SD_DETECT_PIN
|
|
|
130 |
#define SD_DETECT_PIN 22
|
|
|
131 |
|
|
|
132 |
#undef KILL_PIN
|
|
|
133 |
#define KILL_PIN 32
|
|
|
134 |
|
|
|
135 |
#endif
|