Prusa MINI Firmware overview
pins_RAMPS_DUO.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  * Arduino Mega or Due with RAMPS Duo pin assignments
26  *
27  * Applies to the following boards:
28  *
29  * RAMPS_DUO_EFB (Hotend, Fan, Bed)
30  * RAMPS_DUO_EEB (Hotend0, Hotend1, Bed)
31  * RAMPS_DUO_EFF (Hotend, Fan0, Fan1)
32  * RAMPS_DUO_EEF (Hotend0, Hotend1, Fan)
33  * RAMPS_DUO_SF (Spindle, Controller Fan)
34  *
35  * Differences between
36  * RAMPS_14 | RAMPS_DUO
37  * A9/D63 | A12/D66
38  * A10/D64 | A13/D67
39  * A11/D65 | A14/D68
40  * A12/D66 | A15/D69
41  * A13 | A9
42  * A14 | A10
43  * A15 | A11
44  */
45 
46 #if !defined(__SAM3X8E__) && !defined(__AVR_ATmega2560__)
47  #error "Oops! Select 'Arduino Due' or 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
48 #endif
49 
50 #define BOARD_INFO_NAME "RAMPS Duo"
51 
52 #define IS_RAMPS_DUO
53 #include "../ramps/pins_RAMPS.h"
54 
55 //
56 // Temperature Sensors
57 //
58 #undef TEMP_0_PIN
59 #define TEMP_0_PIN 9 // Analog Input
60 
61 #undef TEMP_1_PIN
62 #define TEMP_1_PIN 11 // Analog Input
63 
64 #undef TEMP_BED_PIN
65 #define TEMP_BED_PIN 10 // Analog Input
66 
67 // SPI for Max6675 or Max31855 Thermocouple
68 #undef MAX6675_SS_PIN
69 #if DISABLED(SDSUPPORT)
70  #define MAX6675_SS_PIN 69 // Don't use 53 if there is even the remote possibility of using Display/SD card
71 #else
72  #define MAX6675_SS_PIN 69 // 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
73 #endif
74 
75 //
76 // LCD / Controller
77 //
78 #if HAS_SPI_LCD
79 
80  #if BOTH(NEWPANEL, PANEL_ONE)
81  #undef LCD_PINS_D4
82  #define LCD_PINS_D4 68
83 
84  #undef LCD_PINS_D5
85  #define LCD_PINS_D5 69
86 
87  #undef LCD_PINS_D7
88  #define LCD_PINS_D7 67
89  #endif
90 
91  #if ENABLED(NEWPANEL)
92 
93  #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
94 
95  #undef BTN_EN1
96  #define BTN_EN1 67
97 
98  #undef BTN_ENC
99  #define BTN_ENC 66
100 
101  #elif ENABLED(MINIPANEL)
102 
103  #undef DOGLCD_CS
104  #define DOGLCD_CS 69
105 
106  #undef LCD_BACKLIGHT_PIN
107  #define LCD_BACKLIGHT_PIN 68 // backlight LED on A14/D68
108 
109  #undef KILL_PIN
110  #define KILL_PIN 67
111 
112  #undef BTN_EN2
113  #define BTN_EN2 66
114 
115  #else
116 
117  #if ENABLED(REPRAPWORLD_KEYPAD)
118  #undef BTN_EN1
119  #define BTN_EN1 67 // encoder
120 
121  #undef BTN_ENC
122  #define BTN_ENC 66 // enter button
123  #elif ENABLED(PANEL_ONE)
124  #undef BTN_EN2
125  #define BTN_EN2 66 // AUX2 PIN 4
126  #endif
127  #endif
128 
129  #endif // NEWPANEL
130 
131 #endif // HAS_SPI_LCD