|
|
@ -7,7 +7,7 @@
|
|
|
|
if (freq > 0) {
|
|
|
|
if (freq > 0) {
|
|
|
|
#if ENABLED(LCD_USE_I2C_BUZZER)
|
|
|
|
#if ENABLED(LCD_USE_I2C_BUZZER)
|
|
|
|
lcd_buzz(duration, freq);
|
|
|
|
lcd_buzz(duration, freq);
|
|
|
|
#elif HAS_BUZZER // on-board buzzers have no further condition
|
|
|
|
#elif defined(BEEPER) && BEEPER >= 0 // on-board buzzers have no further condition
|
|
|
|
SET_OUTPUT(BEEPER);
|
|
|
|
SET_OUTPUT(BEEPER);
|
|
|
|
#ifdef SPEAKER // a speaker needs a AC ore a pulsed DC
|
|
|
|
#ifdef SPEAKER // a speaker needs a AC ore a pulsed DC
|
|
|
|
//tone(BEEPER, freq, duration); // needs a PWMable pin
|
|
|
|
//tone(BEEPER, freq, duration); // needs a PWMable pin
|
|
|
|