diff options
author | xyverz <xyverz@gmail.com> | 2016-11-16 22:36:36 -0800 |
---|---|---|
committer | xyverz <xyverz@gmail.com> | 2016-11-16 22:36:36 -0800 |
commit | b493f6a4ed14e74c268ae3d7a07577591fe71cc7 (patch) | |
tree | 0da986aa45733b08c6b8c379658abd5e0a1fb8a7 /keyboards/lets_split/rev2/rev2.c | |
parent | 8dd422ffe1a84416dd4a8d38878979f5b7bbd51b (diff) | |
parent | c38b3e3be93a8b4f520212117b6498a288d67751 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'keyboards/lets_split/rev2/rev2.c')
-rw-r--r-- | keyboards/lets_split/rev2/rev2.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/keyboards/lets_split/rev2/rev2.c b/keyboards/lets_split/rev2/rev2.c new file mode 100644 index 0000000000..c505d3a6e3 --- /dev/null +++ b/keyboards/lets_split/rev2/rev2.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 +} |