|
@@ -0,0 +1,151 @@
|
|
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
|
+ * ReprapWorld ULTRATRONICS v1.0
|
|
25
|
+ */
|
|
26
|
+
|
|
27
|
+#define KNOWN_BOARD
|
|
28
|
+#define BOARD_NAME "Ultratronics v1.0"
|
|
29
|
+
|
|
30
|
+#ifndef ARDUINO_ARCH_SAM
|
|
31
|
+ #error Oops! Make sure you have 'Arduino Due' selected from the 'Tools -> Boards' menu.
|
|
32
|
+#endif
|
|
33
|
+
|
|
34
|
+//
|
|
35
|
+// Servos
|
|
36
|
+//
|
|
37
|
+#if NUM_SERVOS > 0
|
|
38
|
+ #define SERVO0_PIN 11
|
|
39
|
+ #if NUM_SERVOS > 1
|
|
40
|
+ #define SERVO1_PIN 12
|
|
41
|
+ #endif
|
|
42
|
+#endif
|
|
43
|
+
|
|
44
|
+//
|
|
45
|
+// Limit Switches
|
|
46
|
+//
|
|
47
|
+#define X_MIN_PIN 31
|
|
48
|
+#define X_MAX_PIN 30
|
|
49
|
+#define Y_MIN_PIN 12
|
|
50
|
+#define Y_MAX_PIN 11
|
|
51
|
+#define Z_MIN_PIN 29
|
|
52
|
+#define Z_MAX_PIN 28
|
|
53
|
+
|
|
54
|
+//
|
|
55
|
+// Steppers
|
|
56
|
+//
|
|
57
|
+#define X_STEP_PIN 35
|
|
58
|
+#define X_DIR_PIN 34
|
|
59
|
+#define X_ENABLE_PIN 37
|
|
60
|
+
|
|
61
|
+#define Y_STEP_PIN 22
|
|
62
|
+#define Y_DIR_PIN 23
|
|
63
|
+#define Y_ENABLE_PIN 33
|
|
64
|
+
|
|
65
|
+#define Z_STEP_PIN 25
|
|
66
|
+#define Z_DIR_PIN 26
|
|
67
|
+#define Z_ENABLE_PIN 24
|
|
68
|
+
|
|
69
|
+#define E0_STEP_PIN 47
|
|
70
|
+#define E0_DIR_PIN 46
|
|
71
|
+#define E0_ENABLE_PIN 48
|
|
72
|
+
|
|
73
|
+#define E1_STEP_PIN 44
|
|
74
|
+#define E1_DIR_PIN 36
|
|
75
|
+#define E1_ENABLE_PIN 45
|
|
76
|
+
|
|
77
|
+#define E2_STEP_PIN 42
|
|
78
|
+#define E2_DIR_PIN 41
|
|
79
|
+#define E2_ENABLE_PIN 43
|
|
80
|
+
|
|
81
|
+#define E3_STEP_PIN 39
|
|
82
|
+#define E3_DIR_PIN 38
|
|
83
|
+#define E3_ENABLE_PIN 40
|
|
84
|
+
|
|
85
|
+//
|
|
86
|
+// Temperature Sensors
|
|
87
|
+//
|
|
88
|
+#define TEMP_0_PIN 0 // Analog Input
|
|
89
|
+#define TEMP_1_PIN 2 // Analog Input
|
|
90
|
+#define TEMP_2_PIN 3 // Analog Input
|
|
91
|
+#define TEMP_3_PIN 4 // Analog Input
|
|
92
|
+#define TEMP_BED_PIN 1 // Analog Input
|
|
93
|
+
|
|
94
|
+//
|
|
95
|
+// Heaters / Fans
|
|
96
|
+//
|
|
97
|
+#define HEATER_0_PIN 3
|
|
98
|
+#define HEATER_1_PIN 8
|
|
99
|
+#define HEATER_2_PIN 7
|
|
100
|
+#define HEATER_3_PIN 9
|
|
101
|
+#define HEATER_BED_PIN 2
|
|
102
|
+
|
|
103
|
+#define FAN_PIN 6
|
|
104
|
+#define FAN2_PIN 5
|
|
105
|
+
|
|
106
|
+//
|
|
107
|
+// Misc. Functions
|
|
108
|
+//
|
|
109
|
+#define SDSS 59
|
|
110
|
+#define SD_DETECT_PIN 60
|
|
111
|
+#define LED_PIN 13
|
|
112
|
+#define PS_ON_PIN 32
|
|
113
|
+
|
|
114
|
+//
|
|
115
|
+// SPI Buses
|
|
116
|
+//
|
|
117
|
+
|
|
118
|
+#define DAC0_SYNC 53 // PB14
|
|
119
|
+#define SPI_CHAN_DAC 1
|
|
120
|
+
|
|
121
|
+#define SPI_CHAN_EEPROM1 -1
|
|
122
|
+#define SPI_EEPROM1_CS -1
|
|
123
|
+#define SPI_EEPROM2_CS -1
|
|
124
|
+#define SPI_FLASH_CS -1
|
|
125
|
+
|
|
126
|
+// SPI for Max6675 or Max31855 Thermocouple
|
|
127
|
+#define MAX6675_SS 65
|
|
128
|
+#define MAX31855_SS0 65
|
|
129
|
+#define MAX31855_SS1 52
|
|
130
|
+#define MAX31855_SS2 50
|
|
131
|
+#define MAX31855_SS3 51
|
|
132
|
+
|
|
133
|
+#define ENC424_SS 61
|
|
134
|
+
|
|
135
|
+//
|
|
136
|
+// LCD / Controller
|
|
137
|
+//
|
|
138
|
+
|
|
139
|
+#define BEEPER_PIN 27
|
|
140
|
+
|
|
141
|
+#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
|
|
142
|
+
|
|
143
|
+ #define LCD_PINS_RS A8 // CS chip select / SS chip slave select
|
|
144
|
+ #define LCD_PINS_ENABLE MOSI // SID (MOSI)
|
|
145
|
+ #define LCD_PINS_D4 SCK // SCK (CLK) clock
|
|
146
|
+
|
|
147
|
+ #define BTN_EN1 20
|
|
148
|
+ #define BTN_EN2 21
|
|
149
|
+ #define BTN_ENC 64
|
|
150
|
+
|
|
151
|
+#endif // REPRAPWORLD_GRAPHICAL_LCD
|