Skip to content

Commit

Permalink
Update upstream 20230105
Browse files Browse the repository at this point in the history
  • Loading branch information
barrettclark committed Jan 5, 2023
1 parent 8b1cd98 commit 14c9b4a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions keyboards/keebio/iris/keymaps/barrettclark/keymap.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include QMK_KEYBOARD_H
include QMK_KEYBOARD_H

#define _QWERTY 0
#define _LOWER 1
Expand Down Expand Up @@ -73,7 +73,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
//├────────┼────────┼────────┼────────┼────────┼────────┼────────┐ ┌────────┼────────┼────────┼────────┼────────┼────────┼────────┤
KC_MUTE, KC_MSTP, KC_MPLY, KC_VOLD, _______, _______, KC_SLEP, _______, _______, _______, RGB_HUD, RGB_SAD, RGB_VAD, _______,
//└────────┴────────┴────────┴───┬────┴───┬────┴───┬────┴───┬────┘ └───┬────┴───┬────┴───┬────┴───┬────┴────────┴────────┴────────┘
RESET, _______, _______, _______, _______, _______
QK_RBT, _______, _______, _______, _______, _______
// └────────┴────────┴────────┘ └────────┴────────┴────────┘
),

Expand All @@ -95,7 +95,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// Runs boot tasks for keyboard
void matrix_init_user(void) {
rgblight_enable();
rgblight_sethsv_purple();
rgblight_sethsv(HSV_PURPLE);
rgblight_mode(1);
};

Expand All @@ -109,23 +109,23 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
break;
case LOWER:
if (record->event.pressed) {
rgblight_sethsv_white();
rgblight_sethsv(HSV_WHITE);
layer_on(_LOWER);
update_tri_layer(_LOWER, _RAISE, _ADJUST);
} else {
rgblight_sethsv_purple();
rgblight_sethsv(HSV_PURPLE);
layer_off(_LOWER);
update_tri_layer(_LOWER, _RAISE, _ADJUST);
}
return false;
break;
case RAISE:
if (record->event.pressed) {
rgblight_sethsv_red();
rgblight_sethsv(HSV_RED);
layer_on(_RAISE);
update_tri_layer(_LOWER, _RAISE, _ADJUST);
} else {
rgblight_sethsv_purple();
rgblight_sethsv(HSV_PURPLE);
layer_off(_RAISE);
update_tri_layer(_LOWER, _RAISE, _ADJUST);
}
Expand All @@ -134,12 +134,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
case ADJUST:
if (record->event.pressed) {
// layer_on(_ADJUST);
rgblight_sethsv_white();
rgblight_sethsv(HSV_WHITE);
layer_on(_LOWER);
update_tri_layer(_LOWER, _RAISE, _ADJUST);
} else {
// layer_off(_ADJUST);
rgblight_sethsv_purple();
rgblight_sethsv(HSV_PURPLE);
layer_off(_LOWER);
update_tri_layer(_LOWER, _RAISE, _ADJUST);
}
Expand Down

0 comments on commit 14c9b4a

Please sign in to comment.