forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e1e7dd8
commit 2d68cf3
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
VIA_ENABLE = yes | ||
RGBLIGHT_ENABLE = yes | ||
WS2812_DRIVER = vendor |