Skip to content

Commit

Permalink
Made some modifications to the Gem80 Keyboard.
Browse files Browse the repository at this point in the history
  • Loading branch information
nuphy-src committed May 5, 2024
1 parent 92921c3 commit dbfe1d9
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 10 deletions.
19 changes: 19 additions & 0 deletions keyboards/nuphy/gem80/ansi/ansi.c
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,25 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record)
}
return false;

case RGB_VAI:

if(rgb_matrix_config.hsv.v == RGB_MATRIX_MAXIMUM_BRIGHTNESS - RGB_MATRIX_VAL_STEP * 2) {
if(dev_info.link_mode == LINK_USB) {
rgb_matrix_increase_val();
}
return true;
}
else if(rgb_matrix_config.hsv.v == RGB_MATRIX_MAXIMUM_BRIGHTNESS - RGB_MATRIX_VAL_STEP) {
return false;
}
return true;

case RGB_VAD:
if(rgb_matrix_config.hsv.v == RGB_MATRIX_MAXIMUM_BRIGHTNESS) {
rgb_matrix_decrease_val();
}
return true;

default:
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion keyboards/nuphy/gem80/ansi/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"rgb_matrix": {
"driver": "ws2812",
"center_point": [80, 20],
"max_brightness": 190,
"max_brightness": 228,
"val_steps": 38,
"speed_steps": 52,
"animations": {
Expand Down
8 changes: 0 additions & 8 deletions keyboards/nuphy/gem80/ansi/keymaps/via/NuPhy Gem80 via3.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,6 @@
"name": "Mac\nDnt",
"title": "Mac Dnt"
},
{
"name": "Print\nWhole",
"title": "PrintWhole"
},
{
"name": "Print\nArea",
"title": "PrintArea"
},
{
"name": "Win\nlock",
"title": "Win lock"
Expand Down
2 changes: 1 addition & 1 deletion keyboards/nuphy/gem80/ansi/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

// layer Mac
[0] = LAYOUT(
KC_ESC, KC_BRID, KC_BRIU, MAC_TASK, MAC_SEARCH, MAC_VOICE, MAC_DND, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_PAUSE, KC_SCRL, MAC_PRTA, KC_NO,
KC_ESC, KC_SCRL, KC_PAUSE, MAC_TASK, MAC_SEARCH, MAC_VOICE, MAC_DND, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_PAUSE, KC_SCRL, MAC_PRTA, KC_NO,
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_INS, KC_HOME, KC_PGUP,
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_DEL, KC_END, KC_PGDN,
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
Expand Down

0 comments on commit dbfe1d9

Please sign in to comment.