diff options
author | cbbrowne <cbbrowne@cbbrowne.tor.int-afilias.info> | 2016-11-23 17:47:16 -0500 |
---|---|---|
committer | cbbrowne <cbbrowne@cbbrowne.tor.int-afilias.info> | 2016-11-23 17:47:16 -0500 |
commit | c05cbaf534d7d58bb8ca4cd9405525b941194372 (patch) | |
tree | 8d0374a5f0a3e44801f69dd6a434680fc13aab8b /keyboards/lets_split/rev1/rev1.c | |
parent | 5b88e7ab9a59dbbc5df6ffa4639befebb9fb115e (diff) | |
parent | 2b3a3ca67867ecd02e100c6e2fbe1972af1abb84 (diff) | |
download | firmware-c05cbaf534d7d58bb8ca4cd9405525b941194372.tar.gz firmware-c05cbaf534d7d58bb8ca4cd9405525b941194372.tar.bz2 firmware-c05cbaf534d7d58bb8ca4cd9405525b941194372.zip |
Merge branch 'master' of https://github.com/jackhumbert/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 000000000..c505d3a6e --- /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 +} |