Skip to content

Commit

Permalink
[Keymap] Fix rgb matrix effects on dshields keymaps. (qmk#6505)
Browse files Browse the repository at this point in the history
  • Loading branch information
shieldsd authored and drashna committed Aug 8, 2019
1 parent 4d72aa4 commit b4c0307
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion keyboards/model01/keymaps/dshields/config.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#define RGB_MATRIX_KEYPRESSES
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
#define RGB_DIGITAL_RAIN_DROPS 18
#define USB_MAX_POWER_CONSUMPTION 100
#define ONESHOT_TAP_TOGGLE 2
Expand Down
6 changes: 6 additions & 0 deletions keyboards/model01/keymaps/dshields/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ uint32_t layer_state_set_user(uint32_t state) {
return state;
}

/*
void matrix_init_user(void) {
eeconfig_init();
};
*/

bool process_record_user(uint16_t keycode, keyrecord_t *record) {
if (!process_record_dynamic_macro(keycode, record)) {
return false;
Expand Down
2 changes: 1 addition & 1 deletion keyboards/planck/keymaps/dshields/config.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#define RGB_MATRIX_KEYPRESSES
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
#define RGB_DIGITAL_RAIN_DROPS 24
#define USB_MAX_POWER_CONSUMPTION 100
#define ONESHOT_TAP_TOGGLE 2
Expand Down
6 changes: 6 additions & 0 deletions keyboards/planck/keymaps/dshields/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
)
};

/*
void matrix_init_user(void) {
eeconfig_init();
};
*/

bool process_record_user(uint16_t keycode, keyrecord_t *record) {
if (!process_record_dynamic_macro(keycode, record)) {
return false;
Expand Down

0 comments on commit b4c0307

Please sign in to comment.