1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
|
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once
/**
* Arduino Mega or Due with RAMPS Duo pin assignments
*
* Applies to the following boards:
*
* RAMPS_DUO_EFB (Hotend, Fan, Bed)
* RAMPS_DUO_EEB (Hotend0, Hotend1, Bed)
* RAMPS_DUO_EFF (Hotend, Fan0, Fan1)
* RAMPS_DUO_EEF (Hotend0, Hotend1, Fan)
* RAMPS_DUO_SF (Spindle, Controller Fan)
*
* Differences between
* RAMPS_14 | RAMPS_DUO
* A9/D63 | A12/D66
* A10/D64 | A13/D67
* A11/D65 | A14/D68
* A12/D66 | A15/D69
* A13 | A9
* A14 | A10
* A15 | A11
*/
#if NOT_TARGET(__SAM3X8E__, __AVR_ATmega2560__)
#error "Oops! Select 'Arduino Due' or 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif
#define BOARD_INFO_NAME "RAMPS Duo"
#define IS_RAMPS_DUO
#include "../ramps/pins_RAMPS.h"
//
// Temperature Sensors
//
#undef TEMP_0_PIN
#define TEMP_0_PIN 9 // Analog Input
#undef TEMP_1_PIN
#define TEMP_1_PIN 11 // Analog Input
#undef TEMP_BED_PIN
#define TEMP_BED_PIN 10 // Analog Input
// SPI for Max6675 or Max31855 Thermocouple
#undef MAX6675_SS_PIN
#if DISABLED(SDSUPPORT)
#define MAX6675_SS_PIN 69 // Don't use 53 if using Display/SD card
#else
#define MAX6675_SS_PIN 69 // Don't use 49 (SD_DETECT_PIN)
#endif
//
// LCD / Controller
//
#if HAS_WIRED_LCD
#if BOTH(IS_NEWPANEL, PANEL_ONE)
#undef LCD_PINS_D4
#define LCD_PINS_D4 68
#undef LCD_PINS_D5
#define LCD_PINS_D5 69
#undef LCD_PINS_D7
#define LCD_PINS_D7 67
#endif
#if IS_NEWPANEL
#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
#undef BTN_EN1
#define BTN_EN1 67
#undef BTN_ENC
#define BTN_ENC 66
#elif ENABLED(MINIPANEL)
#undef DOGLCD_CS
#define DOGLCD_CS 69
#undef LCD_BACKLIGHT_PIN
#define LCD_BACKLIGHT_PIN 68 // backlight LED on A14/D68
#undef KILL_PIN
#define KILL_PIN 67
#undef BTN_EN2
#define BTN_EN2 66
#else
#if IS_RRW_KEYPAD
#undef BTN_EN1
#define BTN_EN1 67 // encoder
#undef BTN_ENC
#define BTN_ENC 66 // enter button
#elif ENABLED(PANEL_ONE)
#undef BTN_EN2
#define BTN_EN2 66 // AUX2 PIN 4
#endif
#endif
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#define BTN_ENC_EN LCD_PINS_D7 // Detect the presence of the encoder
#endif
#endif // IS_NEWPANEL
#endif // HAS_WIRED_LCD
|