diff options
author | Luiz Ribeiro <luizribeiro@gmail.com> | 2017-07-04 11:17:28 -0400 |
---|---|---|
committer | Luiz Ribeiro <luizribeiro@gmail.com> | 2017-07-04 11:17:28 -0400 |
commit | d5486265b8afcada68306c815b08c225fce287af (patch) | |
tree | 8fb7f8fee4aa3937003bd69d5c77ca867c010d12 /keyboards/orthodox/rev1/rev1.c | |
parent | 738b072bb0f25d0369a998c550c369e4f64cc7a5 (diff) | |
parent | 34c8bf47a76c8a2dcd3b1a19dd608f8fb2fafb31 (diff) | |
download | qmk_firmware-d5486265b8afcada68306c815b08c225fce287af.tar.gz qmk_firmware-d5486265b8afcada68306c815b08c225fce287af.zip |
Merge branch 'master' into ps2avrGB
Diffstat (limited to 'keyboards/orthodox/rev1/rev1.c')
-rw-r--r-- | keyboards/orthodox/rev1/rev1.c | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/keyboards/orthodox/rev1/rev1.c b/keyboards/orthodox/rev1/rev1.c new file mode 100644 index 0000000000..f404017b72 --- /dev/null +++ b/keyboards/orthodox/rev1/rev1.c @@ -0,0 +1,53 @@ +/* +This is the source file for the subproject + +Copyright 2012 Jun Wako <wakojun@gmail.com> +Copyright 2015 Jack Humbert +Copyright 2017 Art Ortenburger + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +#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 +} |