|
@ -66,11 +66,14 @@ |
|
|
|
|
|
|
|
|
#if HAS_BUZZER |
|
|
#if HAS_BUZZER |
|
|
#include "../libs/buzzer.h" |
|
|
#include "../libs/buzzer.h" |
|
|
|
|
|
#if ENABLED(PCA9632_BUZZER) |
|
|
|
|
|
#include "../feature/leds/pca9632.h" |
|
|
|
|
|
#endif |
|
|
void MarlinUI::buzz(const long duration, const uint16_t freq) { |
|
|
void MarlinUI::buzz(const long duration, const uint16_t freq) { |
|
|
#if ENABLED(LCD_USE_I2C_BUZZER) |
|
|
#if ENABLED(LCD_USE_I2C_BUZZER) |
|
|
lcd.buzz(duration, freq); |
|
|
lcd.buzz(duration, freq); |
|
|
#elif ENABLED(PCA9632_BUZZER) |
|
|
#elif ENABLED(PCA9632_BUZZER) |
|
|
pca9632_buzz(const long duration, const uint16_t freq) { |
|
|
pca9632_buzz(duration, freq); |
|
|
#elif USE_BEEPER |
|
|
#elif USE_BEEPER |
|
|
buzzer.tone(duration, freq); |
|
|
buzzer.tone(duration, freq); |
|
|
#endif |
|
|
#endif |
|
|