diff options
Diffstat (limited to 'keyboards/tau4')
-rw-r--r-- | keyboards/tau4/info.json | 6 | ||||
-rwxr-xr-x | keyboards/tau4/keymaps/default/keymap.c | 2 | ||||
-rw-r--r-- | keyboards/tau4/tau4.c | 14 |
3 files changed, 5 insertions, 17 deletions
diff --git a/keyboards/tau4/info.json b/keyboards/tau4/info.json index dca1387203..0f19b19eac 100644 --- a/keyboards/tau4/info.json +++ b/keyboards/tau4/info.json @@ -30,7 +30,7 @@ "diode_direction": "COL2ROW", "encoder": { "rotary": [ - { "pin_a": "B3", "pin_b": "B7", "resolution": 1 } + {"pin_a": "B3", "pin_b": "B7", "resolution": 1} ] }, "rgblight": { @@ -56,10 +56,12 @@ }, "led_count": 10, "max_brightness": 128, - "pin": "B2", "saturation_steps": 16, "sleep": true }, + "ws2812": { + "pin": "B2" + }, "layouts": { "LAYOUT_ortho_4x12": { "layout": [ diff --git a/keyboards/tau4/keymaps/default/keymap.c b/keyboards/tau4/keymaps/default/keymap.c index 775ec3a8f4..92baeefbfc 100755 --- a/keyboards/tau4/keymaps/default/keymap.c +++ b/keyboards/tau4/keymaps/default/keymap.c @@ -104,7 +104,7 @@ layer_state_t layer_state_set_user(layer_state_t state) { } #ifdef ENCODER_MAP_ENABLE - const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = { + const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { [_QWERTY] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) }, [_NUMPAD] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS) }, [_LOWER] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS) }, diff --git a/keyboards/tau4/tau4.c b/keyboards/tau4/tau4.c index aa508aae2c..c93d73f2b4 100644 --- a/keyboards/tau4/tau4.c +++ b/keyboards/tau4/tau4.c @@ -17,20 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include "quantum.h" -#ifdef ENCODER_ENABLE -bool encoder_update_kb(uint8_t index, bool clockwise) { - if (!encoder_update_user(index, clockwise)) { return false; } - if (index == 0) { /* First encoder */ - if (clockwise) { - tap_code(KC_VOLU); - } else { - tap_code(KC_VOLD); - } - } - return true; -} -#endif - #ifdef OLED_ENABLE bool oled_task_kb(void) { if (!oled_task_user()) { return false; } |