From 50a96dbd6875a6f7313735f8369082f4db80ca27 Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Wed, 5 Feb 2020 20:40:23 +0100 Subject: [PATCH] Enable spindle feature and place it on output HE0 --- Marlin/Configuration_adv.h | 6 +++--- Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Marlin/Configuration_adv.h b/Marlin/Configuration_adv.h index d5de074273..81350c5d38 100644 --- a/Marlin/Configuration_adv.h +++ b/Marlin/Configuration_adv.h @@ -3317,12 +3317,12 @@ * * See https://marlinfw.org/docs/configuration/2.0.9/laser_spindle.html for more config details. */ -//#define SPINDLE_FEATURE +#define SPINDLE_FEATURE //#define LASER_FEATURE #if EITHER(SPINDLE_FEATURE, LASER_FEATURE) - #define SPINDLE_LASER_ACTIVE_STATE LOW // Set to "HIGH" if SPINDLE_LASER_ENA_PIN is active HIGH + #define SPINDLE_LASER_ACTIVE_STATE HIGH // Set to "HIGH" if SPINDLE_LASER_ENA_PIN is active HIGH - #define SPINDLE_LASER_USE_PWM // Enable if your controller supports setting the speed/power + //#define SPINDLE_LASER_USE_PWM // Enable if your controller supports setting the speed/power #if ENABLED(SPINDLE_LASER_USE_PWM) #define SPINDLE_LASER_PWM_INVERT false // Set to "true" if the speed/power goes up when you want it to go slower #define SPINDLE_LASER_FREQUENCY 2500 // (Hz) Spindle/laser frequency (only on supported HALs: AVR, ESP32, and LPC) diff --git a/Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h b/Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h index aac8398081..e6788ad5b8 100644 --- a/Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h +++ b/Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h @@ -499,6 +499,13 @@ #define NEOPIXEL_PIN P1_24 #endif +// +// MPCNC +// Spindle +// +#undef HEATER_0_PIN +#define SPINDLE_LASER_ENA_PIN P2_07 + /** * Special pins * P1_30 (37) (NOT 5V tolerant)