Enable spindle feature and place it on output HE0

This commit is contained in:
Thomas Basler 2020-02-05 20:40:23 +01:00
parent c6463a07d1
commit 50a96dbd68
2 changed files with 10 additions and 3 deletions

View File

@ -3317,12 +3317,12 @@
* *
* See https://marlinfw.org/docs/configuration/2.0.9/laser_spindle.html for more config details. * 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 //#define LASER_FEATURE
#if EITHER(SPINDLE_FEATURE, 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) #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_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) #define SPINDLE_LASER_FREQUENCY 2500 // (Hz) Spindle/laser frequency (only on supported HALs: AVR, ESP32, and LPC)

View File

@ -499,6 +499,13 @@
#define NEOPIXEL_PIN P1_24 #define NEOPIXEL_PIN P1_24
#endif #endif
//
// MPCNC
// Spindle
//
#undef HEATER_0_PIN
#define SPINDLE_LASER_ENA_PIN P2_07
/** /**
* Special pins * Special pins
* P1_30 (37) (NOT 5V tolerant) * P1_30 (37) (NOT 5V tolerant)