|
@ -258,15 +258,15 @@ public: |
|
|
#endif |
|
|
#endif |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
static inline void buzz(const long duration, const uint16_t freq) { |
|
|
#if HAS_BUZZER |
|
|
#if ENABLED(LCD_USE_I2C_BUZZER) |
|
|
static inline void buzz(const long duration, const uint16_t freq) { |
|
|
lcd.buzz(duration, freq); |
|
|
#if ENABLED(LCD_USE_I2C_BUZZER) |
|
|
#elif PIN_EXISTS(BEEPER) |
|
|
lcd.buzz(duration, freq); |
|
|
buzzer.tone(duration, freq); |
|
|
#elif PIN_EXISTS(BEEPER) |
|
|
#else |
|
|
buzzer.tone(duration, freq); |
|
|
UNUSED(duration); UNUSED(freq); |
|
|
#endif |
|
|
#endif |
|
|
} |
|
|
} |
|
|
#endif |
|
|
|
|
|
|
|
|
// LCD implementations
|
|
|
// LCD implementations
|
|
|
static void clear_lcd(); |
|
|
static void clear_lcd(); |
|
@ -355,7 +355,9 @@ public: |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
static void quick_feedback(const bool clear_buttons=true); |
|
|
static void quick_feedback(const bool clear_buttons=true); |
|
|
static void completion_feedback(const bool good=true); |
|
|
#if HAS_BUZZER |
|
|
|
|
|
static void completion_feedback(const bool good=true); |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
#if DISABLED(LIGHTWEIGHT_UI) |
|
|
#if DISABLED(LIGHTWEIGHT_UI) |
|
|
static void draw_status_message(const bool blink); |
|
|
static void draw_status_message(const bool blink); |
|
@ -466,7 +468,11 @@ public: |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if ENABLED(G26_MESH_VALIDATION) |
|
|
#if ENABLED(G26_MESH_VALIDATION) |
|
|
static inline void chirp() { buzz(LCD_FEEDBACK_FREQUENCY_DURATION_MS, LCD_FEEDBACK_FREQUENCY_HZ); } |
|
|
static inline void chirp() { |
|
|
|
|
|
#if HAS_BUZZER |
|
|
|
|
|
buzz(LCD_FEEDBACK_FREQUENCY_DURATION_MS, LCD_FEEDBACK_FREQUENCY_HZ); |
|
|
|
|
|
#endif |
|
|
|
|
|
} |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if ENABLED(AUTO_BED_LEVELING_UBL) |
|
|
#if ENABLED(AUTO_BED_LEVELING_UBL) |
|
|