1
0
Fork 0

Added extra songs, LED indicator notes

This commit is contained in:
IBNobody 2016-04-17 20:14:37 -05:00
parent 23231fa577
commit 5c98ad5960
12 changed files with 345 additions and 193 deletions

View file

@ -351,7 +351,7 @@ void play_notes(float (*np)[][2], uint8_t n_count, bool n_repeat, float n_rest)
if (audio_config.enable) {
if (note)
if (note || notes)
stop_all_notes();
notes_pointer = np;
@ -406,7 +406,7 @@ void play_note(double freq, int vol) {
if (audio_config.enable && voices < 8) {
if (notes)
if (note || notes)
stop_all_notes();
#ifdef PWM_AUDIO
freq = freq / SAMPLE_RATE;
@ -471,3 +471,16 @@ void increase_tempo(uint8_t tempo_change)
}
}
//------------------------------------------------------------------------------
// Override these functions in your keymap file to play different tunes on
// startup and bootloader jump
__attribute__ ((weak))
void play_startup_tone()
{
}
__attribute__ ((weak))
void play_goodbye_tone()
{
}
//------------------------------------------------------------------------------