diff options
author | Daniel Prilik <danielprilik@gmail.com> | 2019-04-03 18:30:47 -0700 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-04-03 18:30:47 -0700 |
commit | 763b26cdb98c2702f7b2f8de239d4edba0fa4065 (patch) | |
tree | a99e15e1cb9be30eb5786e5ea1d3de809339b87b /keyboards/massdrop/ctrl/keymaps/responsive_pattern/keymap.c | |
parent | 63177760deaf23bb1f676974cecf211676285604 (diff) | |
download | firmware-763b26cdb98c2702f7b2f8de239d4edba0fa4065.tar.gz firmware-763b26cdb98c2702f7b2f8de239d4edba0fa4065.tar.bz2 firmware-763b26cdb98c2702f7b2f8de239d4edba0fa4065.zip |
RGB Matrix support for Massdrop CTRL/ALT (#5328)
* port Massdrop CTRL/ALT to use RGB Matrix
Co-authored-by: Matt Schneeberger <helluvamatt@gmail.com>
* Massdrop lighting support working
This commit is to get the Massdrop lighting code working again through use of the compilation define USE_MASSDROP_CONFIGURATOR added to a keymap's rules.mk.
Added keymaps for both CTRL and ALT named default_md and mac_md. These should be used if the Massdrop style lighting is desired.
* Updating config based on testing results with patrickmt & compile errors
* Updates for PR5328
For CTRL and ALT:
Moved location of new RGB Matrix macros from config_led.h to config.h.
Added RGB_MATRIX_LED_FLUSH_LIMIT (time between flushes) to config.h for correct LED driver update timing.
Re-added missing breathing code for when Massdrop configurator mode is defined.
* remove prilik keymap form PR
Diffstat (limited to 'keyboards/massdrop/ctrl/keymaps/responsive_pattern/keymap.c')
-rw-r--r-- | keyboards/massdrop/ctrl/keymaps/responsive_pattern/keymap.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/keyboards/massdrop/ctrl/keymaps/responsive_pattern/keymap.c b/keyboards/massdrop/ctrl/keymaps/responsive_pattern/keymap.c index 0bdc15214..58911aa75 100644 --- a/keyboards/massdrop/ctrl/keymaps/responsive_pattern/keymap.c +++ b/keyboards/massdrop/ctrl/keymaps/responsive_pattern/keymap.c @@ -15,7 +15,6 @@ extern issi3733_led_t *lede; extern issi3733_led_t led_map[]; -extern led_disp_t disp; enum ctrl_keycodes { L_BRI = SAFE_RANGE, //LED Brightness Increase @@ -238,8 +237,6 @@ void led_matrix_run(void) { led_cur = led_map; - disp.frame += 1; - breathe_mult = 1; if (led_animation_breathing) @@ -314,7 +311,7 @@ void led_matrix_run(void) } float pomod; - pomod = (float)(disp.frame % (uint32_t)(1000.0f / led_animation_speed)) / 10.0f * led_animation_speed; + pomod = (float)(g_tick % (uint32_t)(1000.0f / led_animation_speed)) / 10.0f * led_animation_speed; //Add in any moving effects if ((!led_animation_direction && f[fcur].ef & EF_SCR_R) || (led_animation_direction && (f[fcur].ef & EF_SCR_L))) |