[2.0.x] Enhancements to FILAMENT_RUNOUT_SENSOR (#12069)

- Added FILAMENT_RUNOUT_DISTANCE_MM option
- Added FILAMENT_MOTION_SENSOR option
This commit is contained in:
Marcio Teixeira
2018-10-16 06:28:52 -06:00
committed by Scott Lahteine
parent cce4931342
commit 056561df93
84 changed files with 1233 additions and 90 deletions

View File

@ -109,6 +109,16 @@ namespace UI {
#endif
#endif
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
bool isFilamentRunoutEnabled();
void toggleFilamentRunout(const bool state);
#if FILAMENT_RUNOUT_DISTANCE_MM > 0
float getFilamentRunoutDistance_mm();
void setFilamentRunoutDistance_mm(const float distance);
#endif
#endif
void delay_ms(unsigned long ms);
void yield(); // Within lengthy loop, call this periodically