aboutsummaryrefslogtreecommitdiff
path: root/keyboards/jd45/keymaps
diff options
context:
space:
mode:
authorBalz Guenat <balz.guenat@gmail.com>2018-01-01 23:47:51 +0100
committerJack Humbert <jack.humb@gmail.com>2018-01-01 17:47:51 -0500
commit4931510ad38aadb1769c9241bfad0c3d77ad687f (patch)
treeb2e23ebbde408a3f6580b34e8cf3332346e7c3f3 /keyboards/jd45/keymaps
parentd6215ad6aff3857cea8a6877b56a547a76ab13ac (diff)
downloadqmk_firmware-4931510ad38aadb1769c9241bfad0c3d77ad687f.tar.gz
qmk_firmware-4931510ad38aadb1769c9241bfad0c3d77ad687f.zip
backlight breathing overhaul (#2187)
* add breathing to bananasplit * backlight breathing overhaul * fix the backlight_tick thing. * fix for vision_division backlight * fix a few keymaps and probably break breathing for some weirdly set-up boards. * remove BL_x keycodes because they made unreasonable assumptions * some fixes for BL keycodes * integer cie lightness scaling * use cie lightness for non-breathing backlight and make breathing able to reach true max brightness
Diffstat (limited to 'keyboards/jd45/keymaps')
-rw-r--r--keyboards/jd45/keymaps/mjt/keymap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/keyboards/jd45/keymaps/mjt/keymap.c b/keyboards/jd45/keymaps/mjt/keymap.c
index 1a7302216..610552ecf 100644
--- a/keyboards/jd45/keymaps/mjt/keymap.c
+++ b/keyboards/jd45/keymaps/mjt/keymap.c
@@ -50,13 +50,13 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
50 // action_function_tap may also handle this... 50 // action_function_tap may also handle this...
51 if (record->event.pressed) 51 if (record->event.pressed)
52 { 52 {
53 breathing_speed_set(3); 53 breathing_period_set(3);
54 breathing_enable(); 54 breathing_enable();
55 layer_on(1); 55 layer_on(1);
56 } 56 }
57 else 57 else
58 { 58 {
59 breathing_speed_set(1); 59 breathing_period_set(1);
60 breathing_self_disable(); 60 breathing_self_disable();
61 layer_off(1); 61 layer_off(1);
62 } 62 }
@@ -64,13 +64,13 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
64 case M_LAYER2: 64 case M_LAYER2:
65 if (record->event.pressed) 65 if (record->event.pressed)
66 { 66 {
67 breathing_speed_set(2); 67 breathing_period_set(2);
68 breathing_pulse(); 68 breathing_pulse();
69 layer_on(2); 69 layer_on(2);
70 } 70 }
71 else 71 else
72 { 72 {
73 breathing_speed_set(1); 73 breathing_period_set(1);
74 breathing_self_disable(); 74 breathing_self_disable();
75 layer_off(2); 75 layer_off(2);
76 } 76 }