summaryrefslogtreecommitdiff
path: root/keyboards/lets_split/rev2/rev2.c
diff options
context:
space:
mode:
authorxyverz <xyverz@gmail.com>2016-11-16 22:36:36 -0800
committerxyverz <xyverz@gmail.com>2016-11-16 22:36:36 -0800
commitb493f6a4ed14e74c268ae3d7a07577591fe71cc7 (patch)
tree0da986aa45733b08c6b8c379658abd5e0a1fb8a7 /keyboards/lets_split/rev2/rev2.c
parent8dd422ffe1a84416dd4a8d38878979f5b7bbd51b (diff)
parentc38b3e3be93a8b4f520212117b6498a288d67751 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'keyboards/lets_split/rev2/rev2.c')
-rw-r--r--keyboards/lets_split/rev2/rev2.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/keyboards/lets_split/rev2/rev2.c b/keyboards/lets_split/rev2/rev2.c
new file mode 100644
index 0000000000..c505d3a6e3
--- /dev/null
+++ b/keyboards/lets_split/rev2/rev2.c
@@ -0,0 +1,32 @@
+#include "lets_split.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
+}