diff options
author | Jack Humbert <jack.humb@gmail.com> | 2017-06-27 14:21:42 -0400 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2017-06-27 14:21:42 -0400 |
commit | 9f5b4e1d7a37f873acbc19b8385964121566653e (patch) | |
tree | 78a51918d16a84148af5276170d2c30525dee661 /keyboards/orthodox/rev1/rev1.c | |
parent | b82604dadad81872abdb9fdde18086ee69e66671 (diff) | |
parent | 4ba9438c3f71e6ea3433be4f9e1a28d36471d247 (diff) |
Merge branch 'master' of https://github.com/qmk/qmk_firmware into dual_audio
Diffstat (limited to 'keyboards/orthodox/rev1/rev1.c')
-rw-r--r-- | keyboards/orthodox/rev1/rev1.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/keyboards/orthodox/rev1/rev1.c b/keyboards/orthodox/rev1/rev1.c new file mode 100644 index 0000000000..10ece03f08 --- /dev/null +++ b/keyboards/orthodox/rev1/rev1.c @@ -0,0 +1,32 @@ +#include "orthodox.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 +} |