2 // ....................................................................... Audio
4 void matrix_init_user(void)
7 steno_set_mode(STENO_MODE_BOLT); // or STENO_MODE_GEMINI
15 #ifdef BACKLIGHT_ENABLE
16 void led_set_user(uint8_t usb_led)
18 static uint8_t old_usb_led = 0;
19 _delay_ms(10); // gets rid of tick
20 if (!is_playing_notes()) {
21 if ((usb_led & (1<<USB_LED_CAPS_LOCK)) && !(old_usb_led & (1<<USB_LED_CAPS_LOCK))) {
22 // if capslock LED is turning on
23 PLAY_SONG(song_caps_on);
25 else if (!(usb_led & (1<<USB_LED_CAPS_LOCK)) && (old_usb_led & (1<<USB_LED_CAPS_LOCK))) {
26 // if capslock LED is turning off
27 PLAY_SONG(song_caps_off);
30 old_usb_led = usb_led;
34 void startup_user(void)
36 _delay_ms(20); // gets rid of tick
37 PLAY_SONG(song_startup);
40 void shutdown_user(void)
42 PLAY_SONG(song_goodbye);
47 void music_on_user(void)
52 void music_scale_user(void)
54 PLAY_SONG(music_scale);