Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Longer LK Pro / Alfawise PRO board #20185

Merged
merged 4 commits into from
Nov 20, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Marlin/src/core/boards.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
#define BOARD_RAMPS_S_12_EEFB 1157 // Ramps S 1.2 by Sakul.cz (Power outputs: Hotend0, Hotend1, Fan, Bed)
#define BOARD_RAMPS_S_12_EEEB 1158 // Ramps S 1.2 by Sakul.cz (Power outputs: Hotend0, Hotend1, Hotend2, Bed)
#define BOARD_RAMPS_S_12_EFFB 1159 // Ramps S 1.2 by Sakul.cz (Power outputs: Hotend, Fan0, Fan1, Bed)
#define BOARD_RAMPS_LONGER3D_LKPRO 1160 // Longer LKxxPRO/ Alfawise UxxPro (PRO version)

//
// RAMBo and derivatives
Expand Down
2 changes: 2 additions & 0 deletions Marlin/src/pins/pins.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@
#include "ramps/pins_RAMPS_S_12.h" // ATmega2560 env:mega2560
#elif MB(RAMPS_S_12_EFFB)
#include "ramps/pins_RAMPS_S_12.h" // ATmega2560 env:mega2560
#elif MB(RAMPS_LONGER3D_LKPRO)
#include "ramps/pins_LONGER3D_LKPRO.h" // ATmega2560 env:mega2560

//
// RAMBo and derivatives
Expand Down
51 changes: 51 additions & 0 deletions Marlin/src/pins/ramps/pins_LONGER3D_LKPRO.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/
#pragma once

// Longer UI assumptions
#if HOTENDS > 1 || E_STEPPERS > 1
#error "Longer UI supports only 1 hotend / E-stepper."
#endif

#define BOARD_INFO_NAME "Longer-LKPRO"

#ifdef LGT_ESP
#define Y_MIN_PIN 37
#endif

#define SD_DETECT_PIN 49
#define FIL_RUNOUT_PIN 2

#ifdef U20_Pro_AutoBed
#define Z_MIN_PIN 11
#define Z_MAX_PIN 37
#else //U30_Pro
#define Z_MIN_PIN 35
#ifndef LGT_ESP
#define Z_MAX_PIN 37
#endif // !LGT_ESP
thinkyhead marked this conversation as resolved.
Show resolved Hide resolved
#endif

//
// Import RAMPS 1.4 pins
//
#include "pins_RAMPS.h"