summaryrefslogtreecommitdiffstats
path: root/users/csc027/custom_audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'users/csc027/custom_audio.c')
-rw-r--r--users/csc027/custom_audio.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/users/csc027/custom_audio.c b/users/csc027/custom_audio.c
new file mode 100644
index 0000000000..96e0e66029
--- /dev/null
+++ b/users/csc027/custom_audio.c
@@ -0,0 +1,17 @@
+#include "csc027.h"
+#include "custom_audio.h"
+
+#if defined(AUDIO_ENABLE)
+
+float tone_on[][2] = SONG(E__NOTE(_G6));
+float tone_off[][2] = SONG(E__NOTE(_D5));
+
+void on_usb_led_off(void) {
+ PLAY_SONG(tone_off);
+}
+
+void on_usb_led_on(void) {
+ PLAY_SONG(tone_on);
+}
+
+#endif