]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/nyquist/rev1/rev1.c
Fork Let’s Split files
[qmk_firmware.git] / keyboards / nyquist / rev1 / rev1.c
1 #include "lets_split.h"
2
3 #ifdef AUDIO_ENABLE
4     float tone_startup[][2] = SONG(STARTUP_SOUND);
5     float tone_goodbye[][2] = SONG(GOODBYE_SOUND);
6 #endif
7
8 void matrix_init_kb(void) {
9
10     #ifdef AUDIO_ENABLE
11         _delay_ms(20); // gets rid of tick
12         PLAY_NOTE_ARRAY(tone_startup, false, 0);
13     #endif
14
15     // // green led on
16     // DDRD |= (1<<5);
17     // PORTD &= ~(1<<5);
18
19     // // orange led on
20     // DDRB |= (1<<0);
21     // PORTB &= ~(1<<0);
22
23         matrix_init_user();
24 };
25
26 void shutdown_user(void) {
27     #ifdef AUDIO_ENABLE
28         PLAY_NOTE_ARRAY(tone_goodbye, false, 0);
29         _delay_ms(150);
30         stop_all_notes();
31     #endif
32 }