Prusa MINI Firmware overview
pins_DUE3DOM_MINI.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  * DUE3DOM MINI pin assignments
26  */
27 
28 #ifndef __SAM3X8E__
29  #error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
30 #endif
31 
32 #define BOARD_INFO_NAME "DUE3DOM MINI"
33 
34 //
35 // Servos
36 //
37 #define SERVO0_PIN 5
38 #define SERVO1_PIN 6
39 #define SERVO2_PIN 8 // 4-pin header FAN0
40 #define SERVO3_PIN -1
41 
42 //
43 // Limit Switches
44 //
45 #define X_MIN_PIN 38
46 #define X_MAX_PIN -1
47 #define Y_MIN_PIN 34
48 #define Y_MAX_PIN -1
49 #define Z_MIN_PIN 30
50 #define Z_MAX_PIN -1
51 
52 //
53 // Steppers
54 //
55 #define X_STEP_PIN 17
56 #define X_DIR_PIN 16
57 #define X_ENABLE_PIN 22
58 
59 #define Y_STEP_PIN 2
60 #define Y_DIR_PIN 3
61 #define Y_ENABLE_PIN 26
62 
63 #define Z_STEP_PIN 64
64 #define Z_DIR_PIN 63
65 #define Z_ENABLE_PIN 15
66 
67 #define E0_STEP_PIN 61
68 #define E0_DIR_PIN 60
69 #define E0_ENABLE_PIN 62
70 
71 //
72 // Temperature Sensors
73 //
74 #define TEMP_0_PIN 0 // Analog Input (HOTEND0 thermistor)
75 #define TEMP_1_PIN 2 // Analog Input (unused)
76 #define TEMP_2_PIN 5 // Analog Input (OnBoard thermistor beta 3950)
77 #define TEMP_BED_PIN 1 // Analog Input (BED thermistor)
78 
79 // SPI for Max6675 or Max31855 Thermocouple
80 #if DISABLED(SDSUPPORT)
81  #define MAX6675_SS_PIN 53
82 #else
83  #define MAX6675_SS_PIN 53
84 #endif
85 
86 //
87 // Heaters / Fans
88 //
89 #define HEATER_0_PIN 13 // HOTEND0 MOSFET
90 #define HEATER_BED_PIN 7 // BED MOSFET
91 
92 #ifndef FAN_PIN
93  #define FAN_PIN 11 // FAN1 header on board - PRINT FAN
94 #endif
95 #define FAN1_PIN 12 // FAN2 header on board - CONTROLLER FAN
96 #define FAN2_PIN 9 // FAN3 header on board - EXTRUDER0 FAN
97 //#define FAN3_PIN 8 // FAN0 4-pin header on board
98 
99 //
100 // Misc. Functions
101 //
102 #define SDSS 4
103 #define PS_ON_PIN 40
104 
105 //
106 // LCD / Controller
107 //
108 #if HAS_SPI_LCD
109 
110  #define LCD_PINS_RS 42
111  #define LCD_PINS_ENABLE 43
112  #define LCD_PINS_D4 44
113  #define LCD_PINS_D5 45
114  #define LCD_PINS_D6 46
115  #define LCD_PINS_D7 47
116 
117  #if ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER)
118 
119  #define BEEPER_PIN 41
120 
121  #define BTN_EN1 50
122  #define BTN_EN2 52
123  #define BTN_ENC 48
124 
125  #define SDSS 4
126  #define SD_DETECT_PIN 14
127 
128  #elif ENABLED(RADDS_DISPLAY)
129 
130  #define BEEPER_PIN 41
131 
132  #define BTN_EN1 50
133  #define BTN_EN2 52
134  #define BTN_ENC 48
135 
136  #define BTN_BACK 71
137 
138  #undef SDSS
139  #define SDSS 4
140  #define SD_DETECT_PIN 14
141 
142  #elif HAS_SSD1306_OLED_I2C
143 
144  #define BTN_EN1 50
145  #define BTN_EN2 52
146  #define BTN_ENC 48
147  #define BEEPER_PIN 41
148  #define LCD_SDSS 4
149  #define SD_DETECT_PIN 14
150 
151  #elif ENABLED(SPARK_FULL_GRAPHICS)
152 
153  #define LCD_PINS_D4 29
154  #define LCD_PINS_ENABLE 27
155  #define LCD_PINS_RS 25
156 
157  #define BTN_EN1 35
158  #define BTN_EN2 33
159  #define BTN_ENC 37
160 
161  #define BEEPER_PIN -1
162 
163  #elif ENABLED(MINIPANEL)
164  #define BTN_EN1 52
165  #define BTN_EN2 50
166  #define BTN_ENC 48
167  #define LCD_SDSS 4
168  #define SD_DETECT_PIN 14
169  #define BEEPER_PIN 41
170  #define DOGLCD_A0 46
171  #define DOGLCD_CS 45
172 
173  #endif // SPARK_FULL_GRAPHICS
174 #endif // HAS_SPI_LCD