Laser Cutter Air Assist (#21753)

This commit is contained in:
Mike La Spina
2021-05-01 19:59:45 -05:00
committed by GitHub
parent 9d43570ada
commit 741e3c1280
8 changed files with 68 additions and 12 deletions

View File

@@ -221,6 +221,15 @@ public:
}
#endif
#if ENABLED(AIR_ASSIST)
static void air_assist_enable(); // Turn on air assist
static void air_assist_disable(); // Turn off air assist
static void air_assist_toggle(); // Toggle air assist
static inline bool air_assist_state() { // Get current state
return (READ(AIR_ASSIST_PIN) == AIR_ASSIST_ACTIVE);
}
#endif
static inline void disable() { isReady = false; set_enabled(false); }
#if HAS_LCD_MENU