Skip to content

add seekbar_control_keyboard #25140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions keyboards/seekbar_control_keyboard/keyboard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"manufacturer": "sotarokashiuchi",
"keyboard_name": "seekbar_control_keyboard",
"maintainer": "sotarokashiuchi",
"development_board": "promicro",
"diode_direction": "COL2ROW",
"features": {
"bootmagic": true,
"extrakey": true,
"mousekey": true,
"nkro": true,
"encoder": true,
"rgblight": true
},
"matrix_pins": {
"cols": ["F4", "F5", "F6"],
"rows": ["D4", "C6"]
},
"url": "",
"usb": {
"vid": "0x0125",
"pid": "0x0001",
"device_version": "1.0.0"
},
"community_layouts": ["ortho_2x3"],
"layouts": {
"LAYOUT_ortho_2x3": {
"layout": [
{"matrix": [0, 0], "label": "A", "x": 0, "y": 0},
{"matrix": [0, 1], "label": "B", "x": 1, "y": 0},
{"matrix": [0, 2], "label": "C", "x": 2, "y": 0},
{"matrix": [1, 0], "label": "D", "x": 0, "y": 1},
{"matrix": [1, 1], "label": "E", "x": 1, "y": 1},
{"matrix": [1, 2], "label": "F", "x": 2, "y": 1}
]
}
},
"tapping": {
"term": 275
},
"encoder": {
"rotary": [
{
"pin_a": "F7",
"pin_b": "B1"
}
]
},
"ws2812": {
"pin": "D7"
},
"rgblight": {
"led_count": 5
}
}
28 changes: 28 additions & 0 deletions keyboards/seekbar_control_keyboard/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Copyright 2023 QMK
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

enum {
TD_FORWARD_NEXT,
TD_BACK_PREV,
};

tap_dance_action_t tap_dance_actions[] = {
[TD_FORWARD_NEXT] = ACTION_TAP_DANCE_DOUBLE(KC_MEDIA_FAST_FORWARD, KC_MEDIA_NEXT_TRACK),
[TD_BACK_PREV] = ACTION_TAP_DANCE_DOUBLE(KC_MEDIA_REWIND, KC_MEDIA_PREV_TRACK),
};

#if defined(ENCODER_MAP_ENABLE)
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) }
};
#endif

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT_ortho_2x3(
TD(TD_BACK_PREV), KC_MPLY, TD(TD_FORWARD_NEXT),
KC_NO, KC_NO, KC_SLEP
)
};

2 changes: 2 additions & 0 deletions keyboards/seekbar_control_keyboard/keymaps/default/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
TAP_DANCE_ENABLE = yes
ENCODER_MAP_ENABLE = yes
26 changes: 26 additions & 0 deletions keyboards/seekbar_control_keyboard/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# seekbar_control_keyboard

![seekbar_control_keyboard](https://i.imgur.com/zyNPMnQ.jpg)

To control media key such as seekbar, volume, and so on.

* Keyboard Maintainer: [sotarokashiuchi](https://github.com/sotarokashiuchi)
* Hardware Supported: Pro Micro compatible development board
* Hardware Availability: [GitHub repository](https://github.com/sotarokashiuchi/SeekbarControlKeyboard)

Make example for this keyboard (after setting up your build environment):

make seekbar_control_keyboard:default

Flashing example for this keyboard:

make seekbar_control_keyboard:default:flash

See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).

## Bootloader

Enter the bootloader in 3 ways:

* **Bootmagic reset**: Hold down the key at the top left key and plug in the keyboard
* **Physical reset button**: Briefly press the button on the PCB