From bf8b6729b259973a2f9efe84b9a825e60e9da829 Mon Sep 17 00:00:00 2001 From: David Ramiro Date: Sun, 24 Mar 2019 16:57:31 +0100 Subject: [PATCH] Add optional startup chime Enable STARTUP_CHIME in Configuration.h to play a short chime on Trigorilla startup/serial connection, disabled by default --- Marlin/AnycubicTFT.cpp | 7 +++++++ Marlin/Configuration.h | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/Marlin/AnycubicTFT.cpp b/Marlin/AnycubicTFT.cpp index 46bd506..f2766ab 100644 --- a/Marlin/AnycubicTFT.cpp +++ b/Marlin/AnycubicTFT.cpp @@ -115,6 +115,13 @@ void AnycubicTFTClass::Setup() { SelectedDirectory[0]=0; SpecialMenu=false; + + #ifdef STARTUP_CHIME + buzzer.tone(250, 554); // C#5 + buzzer.tone(250, 740); // F#5 + buzzer.tone(250, 554); // C#5 + buzzer.tone(500, 831); // G#5 + #endif } void AnycubicTFTClass::WriteOutageEEPromData() { diff --git a/Marlin/Configuration.h b/Marlin/Configuration.h index 995eeb8..fb2be19 100644 --- a/Marlin/Configuration.h +++ b/Marlin/Configuration.h @@ -1518,6 +1518,14 @@ // #define SPEAKER +// +// STARTUP CHIME +// +// Play a (non-earpiercing) startup chime on startup/serial connection +// of the Trigorilla board +// +//#define STARTUP_CHIME + // // The duration and frequency for the UI feedback sound. // Set these to 0 to disable audio feedback in the LCD menus.