Add startup chime, endstop beep and extremely annoying thermal runaway warning sound, since the touchscreen can not display an error message.

This commit is contained in:
Knutwurst
2020-06-15 11:01:40 +02:00
parent 0b2a577fe8
commit e7731a4b72
4 changed files with 11 additions and 23 deletions

View File

@@ -1832,14 +1832,14 @@
// Play a (non-earpiercing) startup chime on startup/serial connection // Play a (non-earpiercing) startup chime on startup/serial connection
// of the Trigorilla board // of the Trigorilla board
//#define STARTUP_CHIME #define STARTUP_CHIME
// //
// ENDSTOP BEEP // ENDSTOP BEEP
// //
// Short 2KHz beep when endstops are hit // Short 2KHz beep when endstops are hit
// //
//#define ENDSTOP_BEEP #define ENDSTOP_BEEP
// //
// The duration and frequency for the UI feedback sound. // The duration and frequency for the UI feedback sound.

View File

@@ -141,10 +141,9 @@ void AnycubicTouchscreenClass::Setup()
FilamentSensorEnabled = true; FilamentSensorEnabled = true;
#ifdef STARTUP_CHIME #ifdef STARTUP_CHIME
buzzer.tone(250, 554); // C#5 buzzer.tone(100, 554);
buzzer.tone(250, 740); // F#5 buzzer.tone(100, 740);
buzzer.tone(250, 554); // C#5 buzzer.tone(100, 831);
buzzer.tone(500, 831); // G#5
#endif #endif

View File

@@ -2071,22 +2071,11 @@ void Temperature::init() {
case TRRunaway: case TRRunaway:
_temp_error(heater_id, str_t_thermal_runaway, GET_TEXT(MSG_THERMAL_RUNAWAY)); _temp_error(heater_id, str_t_thermal_runaway, GET_TEXT(MSG_THERMAL_RUNAWAY));
BUZZ(2000, 1108); for(uint8_t i = 0; i < 30; i++)
BUZZ(2000, 1661); {
BUZZ(2000, 1108); BUZZ(2000, 1108);
BUZZ(2000, 1661); BUZZ(2000, 1661);
BUZZ(2000, 1108); }
BUZZ(2000, 1661);
BUZZ(2000, 1108);
BUZZ(2000, 1661);
BUZZ(2000, 1108);
BUZZ(2000, 1661);
BUZZ(2000, 1108);
BUZZ(2000, 1661);
BUZZ(2000, 1108);
BUZZ(2000, 1661);
BUZZ(2000, 1108);
BUZZ(2000, 1661);
} }
} }

View File

@@ -1718,7 +1718,7 @@
// //
// Short 2KHz beep when endstops are hit // Short 2KHz beep when endstops are hit
// //
//#define ENDSTOP_BEEP #define ENDSTOP_BEEP
// //
// The duration and frequency for the UI feedback sound. // The duration and frequency for the UI feedback sound.