Skip to content

Commit

Permalink
sofle/via encoder map & doc handedness update (qmk#20630)
Browse files Browse the repository at this point in the history
  • Loading branch information
ireun authored and autoferrit committed Dec 6, 2023
1 parent cc6e66e commit f47abb1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 44 deletions.
5 changes: 2 additions & 3 deletions keyboards/sofle/keymaps/via/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@

#pragma once

/* The way how "handedness" is decided (which half is which),
/* By default left side is selected as master,
see https://docs.qmk.fm/#/feature_split_keyboard?id=setting-handedness
for more options.
*/
for more options. */

#if defined(KEYBOARD_sofle_rev1)
// Add RGB underglow and top facing lighting
Expand Down
39 changes: 0 additions & 39 deletions keyboards/sofle/keymaps/via/encoder.c

This file was deleted.

10 changes: 8 additions & 2 deletions keyboards/sofle/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,15 @@

#include QMK_KEYBOARD_H
#include "oled.c"
#include "encoder.c"

//Default keymap. This can be changed in Via. Use oled.c and encoder.c to change beavior that Via cannot change.
#ifdef ENCODER_MAP_ENABLE
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_PGDN, KC_PGUP) },
[1] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) },
[2] = { ENCODER_CCW_CW(RGB_HUD, RGB_HUI), ENCODER_CCW_CW(RGB_SAD, RGB_SAI) },
[3] = { ENCODER_CCW_CW(RGB_VAD, RGB_VAI), ENCODER_CCW_CW(RGB_RMOD, RGB_MOD)}
};
#endif

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
Expand Down
1 change: 1 addition & 0 deletions keyboards/sofle/keymaps/via/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ EXTRAKEY_ENABLE = yes
VIA_ENABLE = yes
LTO_ENABLE = yes
RGBLIGHT_ENABLE = yes
ENCODER_MAP_ENABLE = yes

0 comments on commit f47abb1

Please sign in to comment.