Added toggle for filament sensor or laser

This commit is contained in:
InsanityAutomation
2018-05-31 09:15:08 -04:00
parent a61fcb09f0
commit 81cd4c66cc
3 changed files with 15 additions and 4 deletions
+9 -1
View File
@@ -26,6 +26,11 @@
//#define BedAC
//#define tallVersion
/*
* Enables a filament sensor plugged into the laser pin. Disables the laser
*/
#define FilamentSensor
/**
* Configuration.h
*
@@ -890,11 +895,14 @@
* For other boards you may need to define FIL_RUNOUT_PIN, FIL_RUNOUT2_PIN, etc.
* By default the firmware assumes HIGH=FILAMENT PRESENT.
*/
//#define FILAMENT_RUNOUT_SENSOR
#if(ENABLED(FilamentSensor))
#define FILAMENT_RUNOUT_SENSOR
#endif
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
#define NUM_RUNOUT_SENSORS 1 // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
#define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor.
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
#define FILAMENT_RUNOUT_PIN 4
#define FILAMENT_RUNOUT_SCRIPT "M600"
#endif
+3 -2
View File
@@ -1379,8 +1379,9 @@
//#define SPEED_POWER_MAX 100 // 0-100%
#endif
#define FAN_AS_LASER
#if(!ENABLED(FilamentSensor))
#define FAN_AS_LASER
#endif
#if ENABLED(FAN_AS_LASER)
#define FAN_NUM_AS_LASER 1
#define LASER_PIN_DEDICATED true
+3 -1
View File
@@ -147,7 +147,9 @@
#define LASER_PIN -1
#define FAN_PIN 9
#define FAN1_PIN 4
#if(!ENABLED(FilamentSensor))
#define FAN1_PIN 4
#endif
//
// Misc. Functions