diff options
author | Jack Humbert <jack.humb@gmail.com> | 2016-04-15 23:38:21 -0400 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2016-04-15 23:38:21 -0400 |
commit | 0faa18eab996c2cfcc5da0b60b702f52335c5854 (patch) | |
tree | 33ed4babd10d6e8051edafa48f142e0e78aeeed5 /keyboard/preonic/keymaps/default/keymap.c | |
parent | 91119636631f24bd1bf97f32c3d39f8828da625f (diff) |
audio enable stored in eeprom
Diffstat (limited to 'keyboard/preonic/keymaps/default/keymap.c')
-rw-r--r-- | keyboard/preonic/keymaps/default/keymap.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/keyboard/preonic/keymaps/default/keymap.c b/keyboard/preonic/keymaps/default/keymap.c index 7846707848..3da69c2155 100644 --- a/keyboard/preonic/keymaps/default/keymap.c +++ b/keyboard/preonic/keymaps/default/keymap.c @@ -59,11 +59,11 @@ const uint16_t PROGMEM fn_actions[] = { }; float start_up[][2] = { - {440.0*pow(2.0,(67)/12.0), 600}, - {440.0*pow(2.0,(64)/12.0), 400}, - {440.0*pow(2.0,(55)/12.0), 400}, - {440.0*pow(2.0,(60)/12.0), 400}, - {440.0*pow(2.0,(64)/12.0), 1000}, + {440.0*pow(2.0,(67)/12.0), 4}, + {440.0*pow(2.0,(64)/12.0), 8}, + {440.0*pow(2.0,(55)/12.0), 8}, + {440.0*pow(2.0,(60)/12.0), 8}, + {440.0*pow(2.0,(64)/12.0), 10}, }; const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) @@ -76,8 +76,10 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) #ifdef BACKLIGHT_ENABLE backlight_step(); #endif + audio_toggle(); } else { unregister_code(KC_RSFT); + play_notes(&start_up, 5, false); } break; } |