Skip to content

Commit

Permalink
fix remaining keyboards
Browse files Browse the repository at this point in the history
  • Loading branch information
xyzz committed Sep 18, 2023
1 parent 885ccf4 commit ee7f5ac
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions keyboards/keebio/iris/keymaps/vial/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ DYNAMIC_MACRO_ENABLE = yes

CONSOLE_ENABLE = no
COMMAND_ENABLE = no
RGB_MATRIX_ENABLE = no
10 changes: 5 additions & 5 deletions keyboards/meletrix/zoom65_lite/keymaps/vial/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_all(
KC_ESC, 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_BSPC, KC_VOLU, KC_MUTE, KC_VOLD,
KC_ESC, 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_BSPC, KC_MUTE,
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_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, KC_PGUP,
KC_LSFT, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END,
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT
),
[1] = LAYOUT_all(
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, _______, _______, KC_MNXT, KC_MPLY, KC_MPRV,
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, _______, _______, KC_MPLY,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, QK_BOOT, _______, _______, _______, _______, _______, _______, _______, _______, _______
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, QK_BOOT,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),
[2] = LAYOUT_all(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
Expand Down
10 changes: 5 additions & 5 deletions keyboards/thevankeyboards/minivan/keymaps/vial/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_TRNS, KC_TRNS, QK_BOOT, KC_NO, KC_NO, KC_NO, KC_UNDS, KC_TRNS, KC_TRNS, KC_NO, KC_TRNS)
};

void process_indicator_update(layer_state_t state, uint8_t usb_led) {
void process_indicator_update(layer_state_t state, led_t led_state) {
for (int i = 0; i < 3; i++) {
setrgb(0, 0, 0, (LED_TYPE *)&led[i]);
}
if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
if (led_state.caps_lock) {
setrgb(255, 0, 0, (LED_TYPE *)&led[0]);
}

Expand All @@ -71,15 +71,15 @@ void process_indicator_update(layer_state_t state, uint8_t usb_led) {
};

void keyboard_post_init_user(void) {
process_indicator_update(layer_state, host_keyboard_leds());
process_indicator_update(layer_state, host_keyboard_led_state());
};

void led_set_user(uint8_t usb_led) {
process_indicator_update(layer_state, host_keyboard_leds());
process_indicator_update(layer_state, host_keyboard_led_state());
};

layer_state_t layer_state_set_user(layer_state_t state) {
process_indicator_update(state, host_keyboard_leds());
process_indicator_update(state, host_keyboard_led_state());
return state;
};

Expand Down

0 comments on commit ee7f5ac

Please sign in to comment.