diff options
author | Olivier <olivier@gid0.org> | 2016-11-27 23:23:21 +0100 |
---|---|---|
committer | Olivier <olivier@gid0.org> | 2016-11-27 23:23:21 +0100 |
commit | d6d0b7eadaa568853b21d74057db306a33b7a847 (patch) | |
tree | e935179ed0db152f94d31ef187c01a40f0fb42d6 /keyboards/lets_split/rev2/rev2.c | |
parent | 73d2a470eed73a1ba28520343bd1cfc81498d183 (diff) | |
parent | 1585fc4b616cb28b8d4a418cd31c8ce0dd64f731 (diff) |
Merge https://github.com/jackhumbert/qmk_firmware
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 +} |