Skip to content

Commit 595e684

Browse files
sjasonsmiththinkyhead
authored andcommitted
Add Leapfrog Xeed 2015 support (#16400)
1 parent 21dc07c commit 595e684

3 files changed

Lines changed: 118 additions & 0 deletions

File tree

Marlin/src/core/boards.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@
138138
#define BOARD_GT2560_V3_A20 1318 // Geeetech GT2560 Rev B for A20(M/D)
139139
#define BOARD_EINSTART_S 1319 // Einstart retrofit
140140
#define BOARD_WANHAO_ONEPLUS 1320 // Wanhao 0ne+ i3 Mini
141+
#define BOARD_LEAPFROG_XEED2015 1321 // Leapfrog Xeed 2015
141142

142143
//
143144
// ATmega1281, ATmega2561
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Marlin/src/pins/pins.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,8 @@
247247
#include "mega/pins_OVERLORD.h" // ATmega2560 env:megaatmega2560
248248
#elif MB(HJC2560C_REV2)
249249
#include "mega/pins_HJC2560C_REV2.h" // ATmega2560 env:megaatmega2560
250+
#elif MB(LEAPFROG_XEED2015)
251+
#include "mega/pins_LEAPFROG_XEED2015.h" // ATmega2560 env:megaatmega2560
250252

251253
//
252254
// ATmega1281, ATmega2561

0 commit comments

Comments
 (0)