diff options
author | milestogo <milestogo@users.noreply.github.com> | 2017-02-09 23:28:39 -0800 |
---|---|---|
committer | milestogo <milestogo@users.noreply.github.com> | 2017-02-09 23:28:39 -0800 |
commit | b0537f75df73ca5a55355c7546d45577cb2c6a38 (patch) | |
tree | 0da100dc4fcbe21629a10879b53e13d02c25c170 /keyboards/lets_split/rev2fliphalf/rev2fliphalf.c | |
parent | 5ac0e6e6aee64c9b8fade79aaf22bc839e2c6b47 (diff) | |
parent | 41c93575a838e9b201ca113165085f47198e109d (diff) |
Merge branch 'master' into sculpt2
Diffstat (limited to 'keyboards/lets_split/rev2fliphalf/rev2fliphalf.c')
-rw-r--r-- | keyboards/lets_split/rev2fliphalf/rev2fliphalf.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/keyboards/lets_split/rev2fliphalf/rev2fliphalf.c b/keyboards/lets_split/rev2fliphalf/rev2fliphalf.c new file mode 100644 index 0000000000..c505d3a6e3 --- /dev/null +++ b/keyboards/lets_split/rev2fliphalf/rev2fliphalf.c @@ -0,0 +1,32 @@ +#include "lets_split.h" + +#ifdef AUDIO_ENABLE + float tone_startup[][2] = SONG(STARTUP_SOUND); + float tone_goodbye[][2] = SONG(GOODBYE_SOUND); +#endif + +void matrix_init_kb(void) { + + #ifdef AUDIO_ENABLE + _delay_ms(20); // gets rid of tick + PLAY_NOTE_ARRAY(tone_startup, false, 0); + #endif + + // // green led on + // DDRD |= (1<<5); + // PORTD &= ~(1<<5); + + // // orange led on + // DDRB |= (1<<0); + // PORTB &= ~(1<<0); + + matrix_init_user(); +}; + +void shutdown_user(void) { + #ifdef AUDIO_ENABLE + PLAY_NOTE_ARRAY(tone_goodbye, false, 0); + _delay_ms(150); + stop_all_notes(); + #endif +} |