Test water cooling pwm

parent 002525cb
......@@ -21,6 +21,9 @@
#define LASER_WATER_COOLING
#define LASER_WATER_MAXTEMP 25
// Uncomment the following to enable LASER_WATER_COOLING PWM instead of bang-bang
#define LASER_PWM
#define LASER_PWM_FREQUENCY 1000 // Frequency in Hz
//// The following defines select which G codes tell the laser to fire. It's OK to uncomment more than one.
#define LASER_FIRE_G1 10 // fire the laser on a G1 move, extinguish when the move ends
......
......@@ -119,11 +119,11 @@
#endif // LASER_POWER_DOWN
#if ENABLED(LASER_PERIPHERALS)
#define LASER_PERIPHERALS_PIN 11
#define LASER_PERIPHERALS_STATUS_PIN 32
#define LASER_PERIPHERALS_STATUS_PIN 4
#endif // LASER_PERIPHERALS
#if ENABLED(LASER_WATER_COOLING)
#define LASER_WATER_COOLING_PIN 4
#endif
#define LASER_WATER_COOLING_PIN 1
#endif // LASER WATER_COOLING
#endif
......
......@@ -990,6 +990,12 @@ void tp_init() {
#endif
#endif
#if ENABLED(LASER_WATER_COOLING)
SET_OUTPUT(LASER_WATER_COOLING_PIN);
setPwmFrequency(LASER_WATER_COOLING_PIN, 1);
analogWrite(LASER_WATER_COOLING_PIN, 128);
#endif
#if ENABLED(HEATER_0_USES_MAX6675)
#if DISABLED(SDSUPPORT)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment