Skip to content

Commit fb49fbf

Browse files
✨ FILAMENT_SWITCH_AND_MOTION
MarlinFirmware/Marlin#25548 Co-Authored-By: BIGTREETECH <38851044+bigtreetech@users.noreply.github.com>
1 parent ef69c3c commit fb49fbf

File tree

338 files changed

+13859
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

338 files changed

+13859
-1
lines changed

config/default/Configuration.h

+41
Original file line numberDiff line numberDiff line change
@@ -1911,6 +1911,47 @@
19111911
// as the filament moves. (Be sure to set FILAMENT_RUNOUT_DISTANCE_MM
19121912
// large enough to avoid false positives.)
19131913
//#define FILAMENT_MOTION_SENSOR
1914+
1915+
#if ENABLED(FILAMENT_MOTION_SENSOR)
1916+
//#define FILAMENT_SWITCH_AND_MOTION
1917+
#if ENABLED(FILAMENT_SWITCH_AND_MOTION)
1918+
#define NUM_MOTION_SENSORS 1 // Number of sensors, up to one per extruder. Define a FIL_MOTION#_PIN for each.
1919+
//#define FIL_MOTION1_PIN -1
1920+
1921+
// Override individually if the motion sensors vary
1922+
//#define FIL_MOTION1_STATE LOW
1923+
//#define FIL_MOTION1_PULLUP
1924+
//#define FIL_MOTION1_PULLDOWN
1925+
1926+
//#define FIL_MOTION2_STATE LOW
1927+
//#define FIL_MOTION2_PULLUP
1928+
//#define FIL_MOTION2_PULLDOWN
1929+
1930+
//#define FIL_MOTION3_STATE LOW
1931+
//#define FIL_MOTION3_PULLUP
1932+
//#define FIL_MOTION3_PULLDOWN
1933+
1934+
//#define FIL_MOTION4_STATE LOW
1935+
//#define FIL_MOTION4_PULLUP
1936+
//#define FIL_MOTION4_PULLDOWN
1937+
1938+
//#define FIL_MOTION5_STATE LOW
1939+
//#define FIL_MOTION5_PULLUP
1940+
//#define FIL_MOTION5_PULLDOWN
1941+
1942+
//#define FIL_MOTION6_STATE LOW
1943+
//#define FIL_MOTION6_PULLUP
1944+
//#define FIL_MOTION6_PULLDOWN
1945+
1946+
//#define FIL_MOTION7_STATE LOW
1947+
//#define FIL_MOTION7_PULLUP
1948+
//#define FIL_MOTION7_PULLDOWN
1949+
1950+
//#define FIL_MOTION8_STATE LOW
1951+
//#define FIL_MOTION8_PULLUP
1952+
//#define FIL_MOTION8_PULLDOWN
1953+
#endif
1954+
#endif
19141955
#endif
19151956
#endif
19161957

config/examples/3DFabXYZ/Migbot/Configuration.h

+41
Original file line numberDiff line numberDiff line change
@@ -1913,6 +1913,47 @@
19131913
// as the filament moves. (Be sure to set FILAMENT_RUNOUT_DISTANCE_MM
19141914
// large enough to avoid false positives.)
19151915
//#define FILAMENT_MOTION_SENSOR
1916+
1917+
#if ENABLED(FILAMENT_MOTION_SENSOR)
1918+
//#define FILAMENT_SWITCH_AND_MOTION
1919+
#if ENABLED(FILAMENT_SWITCH_AND_MOTION)
1920+
#define NUM_MOTION_SENSORS 1 // Number of sensors, up to one per extruder. Define a FIL_MOTION#_PIN for each.
1921+
//#define FIL_MOTION1_PIN -1
1922+
1923+
// Override individually if the motion sensors vary
1924+
//#define FIL_MOTION1_STATE LOW
1925+
//#define FIL_MOTION1_PULLUP
1926+
//#define FIL_MOTION1_PULLDOWN
1927+
1928+
//#define FIL_MOTION2_STATE LOW
1929+
//#define FIL_MOTION2_PULLUP
1930+
//#define FIL_MOTION2_PULLDOWN
1931+
1932+
//#define FIL_MOTION3_STATE LOW
1933+
//#define FIL_MOTION3_PULLUP
1934+
//#define FIL_MOTION3_PULLDOWN
1935+
1936+
//#define FIL_MOTION4_STATE LOW
1937+
//#define FIL_MOTION4_PULLUP
1938+
//#define FIL_MOTION4_PULLDOWN
1939+
1940+
//#define FIL_MOTION5_STATE LOW
1941+
//#define FIL_MOTION5_PULLUP
1942+
//#define FIL_MOTION5_PULLDOWN
1943+
1944+
//#define FIL_MOTION6_STATE LOW
1945+
//#define FIL_MOTION6_PULLUP
1946+
//#define FIL_MOTION6_PULLDOWN
1947+
1948+
//#define FIL_MOTION7_STATE LOW
1949+
//#define FIL_MOTION7_PULLUP
1950+
//#define FIL_MOTION7_PULLDOWN
1951+
1952+
//#define FIL_MOTION8_STATE LOW
1953+
//#define FIL_MOTION8_PULLUP
1954+
//#define FIL_MOTION8_PULLDOWN
1955+
#endif
1956+
#endif
19161957
#endif
19171958
#endif
19181959

config/examples/ADIMLab/Gantry v1/Configuration.h

+41
Original file line numberDiff line numberDiff line change
@@ -1912,6 +1912,47 @@
19121912
// as the filament moves. (Be sure to set FILAMENT_RUNOUT_DISTANCE_MM
19131913
// large enough to avoid false positives.)
19141914
//#define FILAMENT_MOTION_SENSOR
1915+
1916+
#if ENABLED(FILAMENT_MOTION_SENSOR)
1917+
//#define FILAMENT_SWITCH_AND_MOTION
1918+
#if ENABLED(FILAMENT_SWITCH_AND_MOTION)
1919+
#define NUM_MOTION_SENSORS 1 // Number of sensors, up to one per extruder. Define a FIL_MOTION#_PIN for each.
1920+
//#define FIL_MOTION1_PIN -1
1921+
1922+
// Override individually if the motion sensors vary
1923+
//#define FIL_MOTION1_STATE LOW
1924+
//#define FIL_MOTION1_PULLUP
1925+
//#define FIL_MOTION1_PULLDOWN
1926+
1927+
//#define FIL_MOTION2_STATE LOW
1928+
//#define FIL_MOTION2_PULLUP
1929+
//#define FIL_MOTION2_PULLDOWN
1930+
1931+
//#define FIL_MOTION3_STATE LOW
1932+
//#define FIL_MOTION3_PULLUP
1933+
//#define FIL_MOTION3_PULLDOWN
1934+
1935+
//#define FIL_MOTION4_STATE LOW
1936+
//#define FIL_MOTION4_PULLUP
1937+
//#define FIL_MOTION4_PULLDOWN
1938+
1939+
//#define FIL_MOTION5_STATE LOW
1940+
//#define FIL_MOTION5_PULLUP
1941+
//#define FIL_MOTION5_PULLDOWN
1942+
1943+
//#define FIL_MOTION6_STATE LOW
1944+
//#define FIL_MOTION6_PULLUP
1945+
//#define FIL_MOTION6_PULLDOWN
1946+
1947+
//#define FIL_MOTION7_STATE LOW
1948+
//#define FIL_MOTION7_PULLUP
1949+
//#define FIL_MOTION7_PULLDOWN
1950+
1951+
//#define FIL_MOTION8_STATE LOW
1952+
//#define FIL_MOTION8_PULLUP
1953+
//#define FIL_MOTION8_PULLDOWN
1954+
#endif
1955+
#endif
19151956
#endif
19161957
#endif
19171958

config/examples/ADIMLab/Gantry v2/Configuration.h

+41
Original file line numberDiff line numberDiff line change
@@ -1912,6 +1912,47 @@
19121912
// as the filament moves. (Be sure to set FILAMENT_RUNOUT_DISTANCE_MM
19131913
// large enough to avoid false positives.)
19141914
//#define FILAMENT_MOTION_SENSOR
1915+
1916+
#if ENABLED(FILAMENT_MOTION_SENSOR)
1917+
//#define FILAMENT_SWITCH_AND_MOTION
1918+
#if ENABLED(FILAMENT_SWITCH_AND_MOTION)
1919+
#define NUM_MOTION_SENSORS 1 // Number of sensors, up to one per extruder. Define a FIL_MOTION#_PIN for each.
1920+
//#define FIL_MOTION1_PIN -1
1921+
1922+
// Override individually if the motion sensors vary
1923+
//#define FIL_MOTION1_STATE LOW
1924+
//#define FIL_MOTION1_PULLUP
1925+
//#define FIL_MOTION1_PULLDOWN
1926+
1927+
//#define FIL_MOTION2_STATE LOW
1928+
//#define FIL_MOTION2_PULLUP
1929+
//#define FIL_MOTION2_PULLDOWN
1930+
1931+
//#define FIL_MOTION3_STATE LOW
1932+
//#define FIL_MOTION3_PULLUP
1933+
//#define FIL_MOTION3_PULLDOWN
1934+
1935+
//#define FIL_MOTION4_STATE LOW
1936+
//#define FIL_MOTION4_PULLUP
1937+
//#define FIL_MOTION4_PULLDOWN
1938+
1939+
//#define FIL_MOTION5_STATE LOW
1940+
//#define FIL_MOTION5_PULLUP
1941+
//#define FIL_MOTION5_PULLDOWN
1942+
1943+
//#define FIL_MOTION6_STATE LOW
1944+
//#define FIL_MOTION6_PULLUP
1945+
//#define FIL_MOTION6_PULLDOWN
1946+
1947+
//#define FIL_MOTION7_STATE LOW
1948+
//#define FIL_MOTION7_PULLUP
1949+
//#define FIL_MOTION7_PULLDOWN
1950+
1951+
//#define FIL_MOTION8_STATE LOW
1952+
//#define FIL_MOTION8_PULLUP
1953+
//#define FIL_MOTION8_PULLDOWN
1954+
#endif
1955+
#endif
19151956
#endif
19161957
#endif
19171958

config/examples/Alfawise/U20-bltouch/Configuration.h

+41
Original file line numberDiff line numberDiff line change
@@ -1990,6 +1990,47 @@
19901990
// as the filament moves. (Be sure to set FILAMENT_RUNOUT_DISTANCE_MM
19911991
// large enough to avoid false positives.)
19921992
//#define FILAMENT_MOTION_SENSOR
1993+
1994+
#if ENABLED(FILAMENT_MOTION_SENSOR)
1995+
//#define FILAMENT_SWITCH_AND_MOTION
1996+
#if ENABLED(FILAMENT_SWITCH_AND_MOTION)
1997+
#define NUM_MOTION_SENSORS 1 // Number of sensors, up to one per extruder. Define a FIL_MOTION#_PIN for each.
1998+
//#define FIL_MOTION1_PIN -1
1999+
2000+
// Override individually if the motion sensors vary
2001+
//#define FIL_MOTION1_STATE LOW
2002+
//#define FIL_MOTION1_PULLUP
2003+
//#define FIL_MOTION1_PULLDOWN
2004+
2005+
//#define FIL_MOTION2_STATE LOW
2006+
//#define FIL_MOTION2_PULLUP
2007+
//#define FIL_MOTION2_PULLDOWN
2008+
2009+
//#define FIL_MOTION3_STATE LOW
2010+
//#define FIL_MOTION3_PULLUP
2011+
//#define FIL_MOTION3_PULLDOWN
2012+
2013+
//#define FIL_MOTION4_STATE LOW
2014+
//#define FIL_MOTION4_PULLUP
2015+
//#define FIL_MOTION4_PULLDOWN
2016+
2017+
//#define FIL_MOTION5_STATE LOW
2018+
//#define FIL_MOTION5_PULLUP
2019+
//#define FIL_MOTION5_PULLDOWN
2020+
2021+
//#define FIL_MOTION6_STATE LOW
2022+
//#define FIL_MOTION6_PULLUP
2023+
//#define FIL_MOTION6_PULLDOWN
2024+
2025+
//#define FIL_MOTION7_STATE LOW
2026+
//#define FIL_MOTION7_PULLUP
2027+
//#define FIL_MOTION7_PULLDOWN
2028+
2029+
//#define FIL_MOTION8_STATE LOW
2030+
//#define FIL_MOTION8_PULLUP
2031+
//#define FIL_MOTION8_PULLDOWN
2032+
#endif
2033+
#endif
19932034
#endif
19942035
#endif
19952036

config/examples/Alfawise/U20/Configuration.h

+41
Original file line numberDiff line numberDiff line change
@@ -1991,6 +1991,47 @@
19911991
// as the filament moves. (Be sure to set FILAMENT_RUNOUT_DISTANCE_MM
19921992
// large enough to avoid false positives.)
19931993
//#define FILAMENT_MOTION_SENSOR
1994+
1995+
#if ENABLED(FILAMENT_MOTION_SENSOR)
1996+
//#define FILAMENT_SWITCH_AND_MOTION
1997+
#if ENABLED(FILAMENT_SWITCH_AND_MOTION)
1998+
#define NUM_MOTION_SENSORS 1 // Number of sensors, up to one per extruder. Define a FIL_MOTION#_PIN for each.
1999+
//#define FIL_MOTION1_PIN -1
2000+
2001+
// Override individually if the motion sensors vary
2002+
//#define FIL_MOTION1_STATE LOW
2003+
//#define FIL_MOTION1_PULLUP
2004+
//#define FIL_MOTION1_PULLDOWN
2005+
2006+
//#define FIL_MOTION2_STATE LOW
2007+
//#define FIL_MOTION2_PULLUP
2008+
//#define FIL_MOTION2_PULLDOWN
2009+
2010+
//#define FIL_MOTION3_STATE LOW
2011+
//#define FIL_MOTION3_PULLUP
2012+
//#define FIL_MOTION3_PULLDOWN
2013+
2014+
//#define FIL_MOTION4_STATE LOW
2015+
//#define FIL_MOTION4_PULLUP
2016+
//#define FIL_MOTION4_PULLDOWN
2017+
2018+
//#define FIL_MOTION5_STATE LOW
2019+
//#define FIL_MOTION5_PULLUP
2020+
//#define FIL_MOTION5_PULLDOWN
2021+
2022+
//#define FIL_MOTION6_STATE LOW
2023+
//#define FIL_MOTION6_PULLUP
2024+
//#define FIL_MOTION6_PULLDOWN
2025+
2026+
//#define FIL_MOTION7_STATE LOW
2027+
//#define FIL_MOTION7_PULLUP
2028+
//#define FIL_MOTION7_PULLDOWN
2029+
2030+
//#define FIL_MOTION8_STATE LOW
2031+
//#define FIL_MOTION8_PULLUP
2032+
//#define FIL_MOTION8_PULLDOWN
2033+
#endif
2034+
#endif
19942035
#endif
19952036
#endif
19962037

config/examples/AliExpress/CL-260/Configuration.h

+41
Original file line numberDiff line numberDiff line change
@@ -1911,6 +1911,47 @@
19111911
// as the filament moves. (Be sure to set FILAMENT_RUNOUT_DISTANCE_MM
19121912
// large enough to avoid false positives.)
19131913
//#define FILAMENT_MOTION_SENSOR
1914+
1915+
#if ENABLED(FILAMENT_MOTION_SENSOR)
1916+
//#define FILAMENT_SWITCH_AND_MOTION
1917+
#if ENABLED(FILAMENT_SWITCH_AND_MOTION)
1918+
#define NUM_MOTION_SENSORS 1 // Number of sensors, up to one per extruder. Define a FIL_MOTION#_PIN for each.
1919+
//#define FIL_MOTION1_PIN -1
1920+
1921+
// Override individually if the motion sensors vary
1922+
//#define FIL_MOTION1_STATE LOW
1923+
//#define FIL_MOTION1_PULLUP
1924+
//#define FIL_MOTION1_PULLDOWN
1925+
1926+
//#define FIL_MOTION2_STATE LOW
1927+
//#define FIL_MOTION2_PULLUP
1928+
//#define FIL_MOTION2_PULLDOWN
1929+
1930+
//#define FIL_MOTION3_STATE LOW
1931+
//#define FIL_MOTION3_PULLUP
1932+
//#define FIL_MOTION3_PULLDOWN
1933+
1934+
//#define FIL_MOTION4_STATE LOW
1935+
//#define FIL_MOTION4_PULLUP
1936+
//#define FIL_MOTION4_PULLDOWN
1937+
1938+
//#define FIL_MOTION5_STATE LOW
1939+
//#define FIL_MOTION5_PULLUP
1940+
//#define FIL_MOTION5_PULLDOWN
1941+
1942+
//#define FIL_MOTION6_STATE LOW
1943+
//#define FIL_MOTION6_PULLUP
1944+
//#define FIL_MOTION6_PULLDOWN
1945+
1946+
//#define FIL_MOTION7_STATE LOW
1947+
//#define FIL_MOTION7_PULLUP
1948+
//#define FIL_MOTION7_PULLDOWN
1949+
1950+
//#define FIL_MOTION8_STATE LOW
1951+
//#define FIL_MOTION8_PULLUP
1952+
//#define FIL_MOTION8_PULLDOWN
1953+
#endif
1954+
#endif
19141955
#endif
19151956
#endif
19161957

config/examples/AliExpress/UM2pExt/Configuration.h

+41
Original file line numberDiff line numberDiff line change
@@ -1912,6 +1912,47 @@
19121912
// as the filament moves. (Be sure to set FILAMENT_RUNOUT_DISTANCE_MM
19131913
// large enough to avoid false positives.)
19141914
//#define FILAMENT_MOTION_SENSOR
1915+
1916+
#if ENABLED(FILAMENT_MOTION_SENSOR)
1917+
//#define FILAMENT_SWITCH_AND_MOTION
1918+
#if ENABLED(FILAMENT_SWITCH_AND_MOTION)
1919+
#define NUM_MOTION_SENSORS 1 // Number of sensors, up to one per extruder. Define a FIL_MOTION#_PIN for each.
1920+
//#define FIL_MOTION1_PIN -1
1921+
1922+
// Override individually if the motion sensors vary
1923+
//#define FIL_MOTION1_STATE LOW
1924+
//#define FIL_MOTION1_PULLUP
1925+
//#define FIL_MOTION1_PULLDOWN
1926+
1927+
//#define FIL_MOTION2_STATE LOW
1928+
//#define FIL_MOTION2_PULLUP
1929+
//#define FIL_MOTION2_PULLDOWN
1930+
1931+
//#define FIL_MOTION3_STATE LOW
1932+
//#define FIL_MOTION3_PULLUP
1933+
//#define FIL_MOTION3_PULLDOWN
1934+
1935+
//#define FIL_MOTION4_STATE LOW
1936+
//#define FIL_MOTION4_PULLUP
1937+
//#define FIL_MOTION4_PULLDOWN
1938+
1939+
//#define FIL_MOTION5_STATE LOW
1940+
//#define FIL_MOTION5_PULLUP
1941+
//#define FIL_MOTION5_PULLDOWN
1942+
1943+
//#define FIL_MOTION6_STATE LOW
1944+
//#define FIL_MOTION6_PULLUP
1945+
//#define FIL_MOTION6_PULLDOWN
1946+
1947+
//#define FIL_MOTION7_STATE LOW
1948+
//#define FIL_MOTION7_PULLUP
1949+
//#define FIL_MOTION7_PULLDOWN
1950+
1951+
//#define FIL_MOTION8_STATE LOW
1952+
//#define FIL_MOTION8_PULLUP
1953+
//#define FIL_MOTION8_PULLDOWN
1954+
#endif
1955+
#endif
19151956
#endif
19161957
#endif
19171958

0 commit comments

Comments
 (0)