aboutsummaryrefslogtreecommitdiff
path: root/keyboards/helix/rev2/rev2.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/helix/rev2/rev2.c')
-rw-r--r--keyboards/helix/rev2/rev2.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/keyboards/helix/rev2/rev2.c b/keyboards/helix/rev2/rev2.c
new file mode 100644
index 000000000..1b23edb79
--- /dev/null
+++ b/keyboards/helix/rev2/rev2.c
@@ -0,0 +1,32 @@
1#include "helix.h"
2
3
4#ifdef AUDIO_ENABLE
5 float tone_startup[][2] = SONG(STARTUP_SOUND);
6 float tone_goodbye[][2] = SONG(GOODBYE_SOUND);
7#endif
8
9#ifdef SSD1306OLED
10void led_set_kb(uint8_t usb_led) {
11 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
12 //led_set_user(usb_led);
13}
14#endif
15
16void matrix_init_kb(void) {
17
18 #ifdef AUDIO_ENABLE
19 _delay_ms(20); // gets rid of tick
20 PLAY_SONG(tone_startup);
21 #endif
22
23 matrix_init_user();
24};
25
26void shutdown_kb(void) {
27 #ifdef AUDIO_ENABLE
28 PLAY_SONG(tone_goodbye);
29 _delay_ms(150);
30 stop_all_notes();
31 #endif
32}