aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/orthodox/rev1/rev1.c32
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
29void matrix_init_kb(void) { 24void 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
47void shutdown_user(void) {
48 #ifdef AUDIO_ENABLE
49 PLAY_SONG(tone_goodbye);
50 _delay_ms(150);
51 stop_all_notes();
52 #endif
53}