summaryrefslogtreecommitdiff
path: root/keyboards/clueboard/keymaps/magicmonty
diff options
context:
space:
mode:
authorMartin Gondermann <magicmonty@users.noreply.github.com>2017-06-09 04:55:34 +0200
committerskullydazed <skullydazed@users.noreply.github.com>2017-06-08 19:55:34 -0700
commite4eb4eaa16d7e86290c825dd17df9c192378c107 (patch)
tree68df37826032358071242bc4692197416639ab49 /keyboards/clueboard/keymaps/magicmonty
parente82c089b4c8a7bbda25a25db320780fdb10c2894 (diff)
Fix layer LED signalling in magicmonty keymap (#1373)
* Fix layer LED signalling in magicmonty keymap * Include the breathing modes in layer signalling * Reverts mode to 1 as the other modes flicker * Add Cursor keys on VIM positions and PAUSE to function layer
Diffstat (limited to 'keyboards/clueboard/keymaps/magicmonty')
-rw-r--r--keyboards/clueboard/keymaps/magicmonty/keymap.c19
-rw-r--r--keyboards/clueboard/keymaps/magicmonty/layout.pngbin165761 -> 181744 bytes
2 files changed, 12 insertions, 7 deletions
diff --git a/keyboards/clueboard/keymaps/magicmonty/keymap.c b/keyboards/clueboard/keymaps/magicmonty/keymap.c
index fdfe2151db..6ca843aabd 100644
--- a/keyboards/clueboard/keymaps/magicmonty/keymap.c
+++ b/keyboards/clueboard/keymaps/magicmonty/keymap.c
@@ -28,8 +28,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
*/
[_FL] = KEYMAP(
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, BL_STEP, \
- _______, _______, _______,_______,_______,_______,_______,_______,KC_PSCR,_______, _______, _______, _______, _______, _______, \
- MO(_FL), _______, MO(_CL),_______,_______,_______,_______,_______,_______,_______, _______, _______, _______, _______, \
+ _______, _______, _______,_______,_______,_______,_______,_______,KC_PSCR,_______, KC_PAUS, _______, _______, _______, _______, \
+ MO(_FL), _______, MO(_CL),_______,_______,_______,KC_LEFT,KC_DOWN, KC_UP,KC_RGHT, _______, _______, _______, _______, \
_______, _______, _______,_______,_______,_______,_______,_______,MO(_ME),_______, _______, _______, _______, _______, KC_PGUP, \
_______, _______, _______,_______, _______,_______, _______, _______, _______, MO(_FL), KC_HOME, KC_PGDN, KC_END),
@@ -116,24 +116,29 @@ enum layer_id {
void clueboard_set_led(uint8_t id) {
switch (id) {
case LAYER_BASE:
- rgblight_sethsv(346, 0, 255);
+ rgblight_sethsv_noeeprom(346, 0, 255);
break;
case LAYER_FUNCTION:
- rgblight_sethsv(46, 255, 255);
+ rgblight_sethsv_noeeprom(46, 255, 255);
break;
case LAYER_MEDIA:
- rgblight_sethsv(86, 255, 255);
+ rgblight_sethsv_noeeprom(86, 255, 255);
break;
case LAYER_CONTROL:
- rgblight_sethsv(346, 255, 255);
+ rgblight_sethsv_noeeprom(346, 255, 255);
break;
case LAYER_MOUSE:
- rgblight_sethsv(206, 255, 255);
+ rgblight_sethsv_noeeprom(206, 255, 255);
break;
}
};
void matrix_scan_user(void) {
+ rgblight_config_t rgblight_config;
+ rgblight_config.raw = eeconfig_read_rgblight();
+
+ if (!rgblight_config.enable || rgblight_config.mode != 1) { return; }
+
uint32_t layer = layer_state;
if (layer & (1<<_FL)) {
diff --git a/keyboards/clueboard/keymaps/magicmonty/layout.png b/keyboards/clueboard/keymaps/magicmonty/layout.png
index 168eec2d61..9e866a92c3 100644
--- a/keyboards/clueboard/keymaps/magicmonty/layout.png
+++ b/keyboards/clueboard/keymaps/magicmonty/layout.png
Binary files differ