Skip to content

Commit

Permalink
Updated layer lighting.
Browse files Browse the repository at this point in the history
  • Loading branch information
solartempest committed Aug 5, 2024
1 parent e1e7dd8 commit 2d68cf3
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
10 changes: 10 additions & 0 deletions keyboards/ploopyco/madromys/keymaps/solartempest/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#pragma once

#define RGBLIGHT_DEFAULT_HUE 100
#define RGBLIGHT_LAYERS
#undef RGBLIGHT_LIMIT_VAL
#define RGBLIGHT_LIMIT_VAL 255
#define RGBLIGHT_SLEEP

#undef PRODUCT_ID
#define PRODUCT_ID 0x5C48 //Original was 0x5C47. Used to load in lighting layers.
44 changes: 44 additions & 0 deletions keyboards/ploopyco/madromys/keymaps/solartempest/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/* Copyright 2023 Colin Lam (Ploopy Corporation)
* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <[email protected]>
* Copyright 2019 Sunjun Kim
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT( KC_BTN4, KC_BTN5, DRAG_SCROLL, KC_BTN2, KC_BTN1, LT(1, KC_BTN3) ),
[1] = LAYOUT( RGB_MOD, RGB_RMOD, RGB_HUI, RGB_HUD, RGB_TOG, KC_NO)
};


layer_state_t layer_state_set_user(layer_state_t state) {
switch (get_highest_layer(state)) { // Change all other LEDs based on layer state as well
case 0:
//rgblight_sethsv_noeeprom(115,200,255); //pale-blue
rgblight_sethsv_noeeprom(105,200,255); //spring green
break;
case 1:
rgblight_sethsv_noeeprom(160,255,255); //blue-magenta
break;
case 2:
//rgblight_sethsv_noeeprom(128,255,100);//blue-purple
rgblight_sethsv_noeeprom(50,255,255); //yellow
break;
case 3:
rgblight_sethsv_noeeprom(215,255,255); //magenta
break;
}
return state;
};
3 changes: 3 additions & 0 deletions keyboards/ploopyco/madromys/keymaps/solartempest/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
VIA_ENABLE = yes
RGBLIGHT_ENABLE = yes
WS2812_DRIVER = vendor

0 comments on commit 2d68cf3

Please sign in to comment.