diff options
author | dbroqua <dbroqua@mousur.org> | 2016-12-17 22:25:21 +0100 |
---|---|---|
committer | dbroqua <dbroqua@mousur.org> | 2016-12-17 22:25:21 +0100 |
commit | df50bee5a88cacbd1f5fab98b26c2068646b61c0 (patch) | |
tree | 60a59d80c173055788e66b7e9dd79aaad7b27df6 /keyboards/lets_split/rev1/rev1.c | |
parent | 46b93f02d570c0bb66410cb8d9af2451d5453635 (diff) | |
parent | 13c4080a1d77cb1dfdf48df8a42e78b9dc483912 (diff) | |
download | qmk_firmware-df50bee5a88cacbd1f5fab98b26c2068646b61c0.tar.gz qmk_firmware-df50bee5a88cacbd1f5fab98b26c2068646b61c0.zip |
Merge branch 'master' of https://github.com/Dbroqua/qmk_firmware
Diffstat (limited to 'keyboards/lets_split/rev1/rev1.c')
-rw-r--r-- | keyboards/lets_split/rev1/rev1.c | 32 |
1 files changed, 32 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..c505d3a6e3 --- /dev/null +++ b/keyboards/lets_split/rev1/rev1.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 +} |