diff options
author | unknown <itsaferbie@gmail.com> | 2017-07-27 17:08:06 -0400 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2017-07-28 10:45:34 -0400 |
commit | 9f82d14eb94217a5990eac2a07349d921f29f77b (patch) | |
tree | aa0e7d49bccd7090d7c0c2c2e165f510c75df5c5 /keyboards/deltasplit75/protosplit/protosplit.c | |
parent | b710e21efb8dfb5b9a6a5e2cf96d806602990ba9 (diff) |
Fixed all things jack suggested.
Diffstat (limited to 'keyboards/deltasplit75/protosplit/protosplit.c')
-rw-r--r-- | keyboards/deltasplit75/protosplit/protosplit.c | 51 |
1 files changed, 19 insertions, 32 deletions
diff --git a/keyboards/deltasplit75/protosplit/protosplit.c b/keyboards/deltasplit75/protosplit/protosplit.c index a4b54dcfce..0301f096ba 100644 --- a/keyboards/deltasplit75/protosplit/protosplit.c +++ b/keyboards/deltasplit75/protosplit/protosplit.c @@ -1,32 +1,19 @@ -#include "deltasplit75.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
-}
+#include "deltasplit75.h" + +#ifdef AUDIO_ENABLE + float tone_startup[][2] = SONG(STARTUP_SOUND); + float tone_goodbye[][2] = SONG(GOODBYE_SOUND); +#endif + +void matrix_init_kb(void) { + // // green led on + // DDRD |= (1<<5); + // PORTD &= ~(1<<5); + + // // orange led on + // DDRB |= (1<<0); + // PORTB &= ~(1<<0); + + matrix_init_user(); +}; + |