diff options
author | Drashna Jaelre <drashna@live.com> | 2017-12-02 20:59:17 -0800 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2017-12-02 23:59:17 -0500 |
commit | 8cac6088c694474908a8237497026e090aaf4a35 (patch) | |
tree | 6eec74a4f4c3005823be832af3975679c36d458b | |
parent | 1548f4c24fcb8dc29b2812750ea3a8167e2b113d (diff) | |
download | qmk_firmware-8cac6088c694474908a8237497026e090aaf4a35.tar.gz qmk_firmware-8cac6088c694474908a8237497026e090aaf4a35.zip |
Remove unnecessary audio code from orthodox (#2076)
* Remove unnecessary startup/shutdown code
* Leave functions intact
* Update rev1.c
-rw-r--r-- | keyboards/orthodox/rev1/rev1.c | 32 |
1 files changed, 7 insertions, 25 deletions
diff --git a/keyboards/orthodox/rev1/rev1.c b/keyboards/orthodox/rev1/rev1.c index 0524d4020..ae45e34b1 100644 --- a/keyboards/orthodox/rev1/rev1.c +++ b/keyboards/orthodox/rev1/rev1.c | |||
@@ -21,33 +21,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
21 | 21 | ||
22 | #include "orthodox.h" | 22 | #include "orthodox.h" |
23 | 23 | ||
24 | #ifdef AUDIO_ENABLE | ||
25 | float tone_startup[][2] = SONG(STARTUP_SOUND); | ||
26 | float tone_goodbye[][2] = SONG(GOODBYE_SOUND); | ||
27 | #endif | ||
28 | |||
29 | void matrix_init_kb(void) { | 24 | void matrix_init_kb(void) { |
30 | 25 | ||
31 | #ifdef AUDIO_ENABLE | 26 | //// // green led on |
32 | _delay_ms(20); // gets rid of tick | 27 | //// DDRD |= (1<<5); |
33 | PLAY_SONG(tone_startup); | 28 | //// PORTD &= ~(1<<5); |
34 | #endif | ||
35 | |||
36 | // // green led on | ||
37 | // DDRD |= (1<<5); | ||
38 | // PORTD &= ~(1<<5); | ||
39 | 29 | ||
40 | // // orange led on | 30 | //// // orange led on |
41 | // DDRB |= (1<<0); | 31 | //// DDRB |= (1<<0); |
42 | // PORTB &= ~(1<<0); | 32 | //// PORTB &= ~(1<<0); |
43 | 33 | ||
44 | matrix_init_user(); | 34 | matrix_init_user(); |
45 | }; | 35 | }; |
46 | |||
47 | void shutdown_user(void) { | ||
48 | #ifdef AUDIO_ENABLE | ||
49 | PLAY_SONG(tone_goodbye); | ||
50 | _delay_ms(150); | ||
51 | stop_all_notes(); | ||
52 | #endif | ||
53 | } | ||