Selaa lähdekoodia

Add Leapfrog Xeed 2015 support (#16400)

Jason Smith 4 vuotta sitten
vanhempi
commit
595e684658
3 muutettua tiedostoa jossa 118 lisäystä ja 0 poistoa
  1. 1
    0
      Marlin/src/core/boards.h
  2. 115
    0
      Marlin/src/pins/mega/pins_LEAPFROG_XEED2015.h
  3. 2
    0
      Marlin/src/pins/pins.h

+ 1
- 0
Marlin/src/core/boards.h Näytä tiedosto

@@ -138,6 +138,7 @@
138 138
 #define BOARD_GT2560_V3_A20           1318  // Geeetech GT2560 Rev B for A20(M/D)
139 139
 #define BOARD_EINSTART_S              1319  // Einstart retrofit
140 140
 #define BOARD_WANHAO_ONEPLUS          1320  // Wanhao 0ne+ i3 Mini
141
+#define BOARD_LEAPFROG_XEED2015       1321  // Leapfrog Xeed 2015
141 142
 
142 143
 //
143 144
 // ATmega1281, ATmega2561

+ 115
- 0
Marlin/src/pins/mega/pins_LEAPFROG_XEED2015.h Näytä tiedosto

@@ -0,0 +1,115 @@
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
+ * Leapfrog Xeed Driver board pin assignments
26
+ *
27
+ * This board is used by other Leapfrog printers in addition to the Xeed,
28
+ * such as the Creatr HS and Bolt. The pin assignments vary wildly between
29
+ * printer models. As such this file is currently specific to the Xeed.
30
+ */
31
+
32
+#ifndef __AVR_ATmega2560__
33
+  #error "Oops! Select 'Mega 2560' in 'Tools > Board.'"
34
+#endif
35
+
36
+#define BOARD_INFO_NAME "Leapfrog Xeed 2015"
37
+
38
+//
39
+// Limit Switches
40
+//
41
+#define X_STOP_PIN         47   // 'X Min'
42
+#define Y_STOP_PIN         48   // 'Y Min'
43
+#define Z_STOP_PIN         49   // 'Z Min'
44
+
45
+//
46
+// Steppers
47
+// The Xeed utilizes three Z-axis motors, which use the X, Y, and Z stepper connectors
48
+// on the board. The X and Y steppers use external drivers, attached to signal-level
49
+// Y-axis and X-axis connectors on the board, which map to distinct CPU pins from
50
+// the on-board X/Y stepper drivers.
51
+//
52
+
53
+// X-axis signal-level connector
54
+#define X_STEP_PIN         65
55
+#define X_DIR_PIN          64
56
+#define X_ENABLE_PIN       66   // Not actually used on Xeed, could be repurposed
57
+
58
+// Y-axis signal-level connector
59
+#define Y_STEP_PIN         23
60
+#define Y_DIR_PIN          22
61
+#define Y_ENABLE_PIN       24   // Not actually used on Xeed, could be repurposed
62
+
63
+// ZMOT connector (Front Right Z Motor)
64
+#define Z_STEP_PIN         31
65
+#define Z_DIR_PIN          32
66
+#define Z_ENABLE_PIN       30
67
+
68
+// XMOT connector (Rear Z Motor)
69
+#define Z2_STEP_PIN        28
70
+#define Z2_DIR_PIN         63
71
+#define Z2_ENABLE_PIN      29
72
+
73
+// YMOT connector (Front Left Z Motor)
74
+#define Z3_STEP_PIN        14
75
+#define Z3_DIR_PIN         15
76
+#define Z3_ENABLE_PIN      39
77
+
78
+// EMOT2 connector
79
+#define E0_STEP_PIN        37
80
+#define E0_DIR_PIN         40
81
+#define E0_ENABLE_PIN      36
82
+
83
+// EMOT connector
84
+#define E1_STEP_PIN        34
85
+#define E1_DIR_PIN         35
86
+#define E1_ENABLE_PIN      33
87
+
88
+//
89
+// Filament runout
90
+//
91
+#define FIL_RUNOUT_PIN     42   // ROT2 Connector
92
+#define FIL_RUNOUT2_PIN    44   // ROT1 Connector
93
+
94
+//
95
+// Temperature Sensors
96
+//
97
+#define TEMP_0_PIN         15   // T3 Connector
98
+#define TEMP_1_PIN         13   // T1 Connector
99
+#define TEMP_BED_PIN       14   // BED Connector (Between T1 and T3)
100
+
101
+//
102
+// Heaters / Fans
103
+//
104
+#define HEATER_0_PIN        8   // Misc Connector, pins 3 and 4 (Out2)
105
+#define HEATER_1_PIN        9   // Misc Connector, pins 5 and 6 (Out3)
106
+#define HEATER_BED_PIN      6   // Misc Connector, pins 9(-) and 10(+) (OutA)
107
+
108
+#define FAN_PIN            10   // Misc Connector, pins 7(-) and 8 (+) (Out4)
109
+
110
+#define LED_PIN            13
111
+
112
+#define SOL1_PIN            7   // Misc Connector, pins 1(-) and 2(+) (Out1)
113
+
114
+// Door Closed Sensor
115
+//#define DOOR_PIN           45 // HM1 Connector

+ 2
- 0
Marlin/src/pins/pins.h Näytä tiedosto

@@ -247,6 +247,8 @@
247 247
   #include "mega/pins_OVERLORD.h"               // ATmega2560                             env:megaatmega2560
248 248
 #elif MB(HJC2560C_REV2)
249 249
   #include "mega/pins_HJC2560C_REV2.h"          // ATmega2560                             env:megaatmega2560
250
+#elif MB(LEAPFROG_XEED2015)
251
+  #include "mega/pins_LEAPFROG_XEED2015.h"      // ATmega2560                             env:megaatmega2560
250 252
 
251 253
 //
252 254
 // ATmega1281, ATmega2561

Loading…
Peruuta
Tallenna