fix: adds slight delay before playing startup song (#346)

* fix: adds slight delay before playing startup song

* Revert "fix: adds slight delay before playing startup song"

This reverts commit f6df4a322307f41b4e0107a15f6a46ce1a63e88f.

* fix: use AUDIO_DELAY_INIT to fix the glitch

* fix: use AUDIO_DELAY_INIT with the default 300ms delay
This commit is contained in:
Florian Didron
2022-06-03 11:33:32 +09:00
committed by GitHub
parent fc773ff0cf
commit e0ef1fc3a7
3 changed files with 3 additions and 0 deletions

View File

@@ -163,3 +163,4 @@
#define AUDIO_PIN A5 #define AUDIO_PIN A5
#define AUDIO_PIN_ALT A4 #define AUDIO_PIN_ALT A4
#define AUDIO_PIN_ALT_AS_NEGATIVE #define AUDIO_PIN_ALT_AS_NEGATIVE
#define AUDIO_INIT_DELAY

View File

@@ -19,3 +19,4 @@
#pragma once #pragma once
#define ORYX_CONFIGURATOR #define ORYX_CONFIGURATOR
#define STARTUP_SONG SONG(ODE_TO_JOY)

View File

@@ -62,6 +62,7 @@
#define AUDIO_PIN A5 #define AUDIO_PIN A5
#define AUDIO_PIN_ALT A4 #define AUDIO_PIN_ALT A4
#define AUDIO_PIN_ALT_AS_NEGATIVE #define AUDIO_PIN_ALT_AS_NEGATIVE
#define AUDIO_INIT_DELAY
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
// #define DEBOUNCE 6 // #define DEBOUNCE 6