diff options
author | climbalima <climbalima@gmail.com> | 2016-11-10 20:03:24 -0500 |
---|---|---|
committer | climbalima <climbalima@gmail.com> | 2016-11-10 20:03:24 -0500 |
commit | b5cecb4cc9df2d541050a9a95f48c1d5fb796ae4 (patch) | |
tree | 5603f3ee5774c11b103214a2d8e339291be1b42b /keyboards/lets_split/rev1/rev1.c | |
parent | 6e27f6fbde47804035d508eb84690ed7ee9acee7 (diff) |
Added both revisions into one folder
Diffstat (limited to 'keyboards/lets_split/rev1/rev1.c')
-rw-r--r-- | keyboards/lets_split/rev1/rev1.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/keyboards/lets_split/rev1/rev1.c b/keyboards/lets_split/rev1/rev1.c new file mode 100644 index 0000000000..574c116a75 --- /dev/null +++ b/keyboards/lets_split/rev1/rev1.c @@ -0,0 +1,30 @@ +#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) { + PLAY_NOTE_ARRAY(tone_goodbye, false, 0); + _delay_ms(150); + stop_all_notes(); +} |