From 795c7fb0e05bee7c84edf0a3b72ec236e0ebd868 Mon Sep 17 00:00:00 2001 From: InsanityAutomation Date: Fri, 12 Oct 2018 11:41:10 -0400 Subject: [PATCH] Add lerdge runout sensor --- Marlin/Configuration.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Marlin/Configuration.h b/Marlin/Configuration.h index b3ca349b67..76fca7b8ae 100644 --- a/Marlin/Configuration.h +++ b/Marlin/Configuration.h @@ -39,8 +39,8 @@ /* * Enables a filament sensor plugged into the laser pin. Disables the laser */ -//#define FilamentSensor - +//#define FilamentSensor // Standard older TM3D runout sensor +//#define lerdgeFilSensor // Newer inverted logic TM3D Runout Sensor //////////////////////////////////DO not edit below here unless you know what youre doing! ////////////////////////////////// @@ -52,6 +52,9 @@ #define E_2208 #define FilamentSensor #endif +#if ENABLED(lerdgeFilSensor) && DISABLED(FilamentSensor) + #define FilamentSensor +#endif /** * Configuration.h * @@ -1060,7 +1063,11 @@ #else #define NUM_RUNOUT_SENSORS 1 // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each. #endif - #define FIL_RUNOUT_INVERTING true // set to true to invert the logic of the sensor. + #if ENABLED(lerdgeFilSensor) + #define FIL_RUNOUT_INVERTING false // set to true to invert the logic of the sensor. + #else + #define FIL_RUNOUT_INVERTING true // set to true to invert the logic of the sensor. + #endif #define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins. //#define FIL_RUNOUT_PULLDOWN // Use internal pulldown for filament runout pins. #define FIL_RUNOUT_PIN 4