Skip to content
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

Add Vial support to Keebio Sinc keyboard #582

Merged
merged 3 commits into from
Nov 7, 2023
Merged

Conversation

LinuxSBC
Copy link
Contributor

This PR adds support for the Keebio Sinc keyboard. I only have the Rev 4 and thus can only test on it, but as it is based on the Via keymap that works for all models, I would assume this also works for all.

Copy link
Contributor

@lesshonor lesshonor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're going to need to move this under keebio/sinc/rev4 specifically. The revisions don't have the same matrices, so they can't share a Vial keymap.

...Even if they did, this keymap fails to build for revs 1 and 2. (Please try compiling them next time.)

Comment on lines 23 to 31
),

[2] = LAYOUT_all(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to hardcode filler KC_TRNS layers. Dynamic keymaps will automatically fill in "missing" layers at compile-time up to the maximum set in dynamic_keymap.layer_count. (By default, this is 4.)

Suggested change
),
[2] = LAYOUT_all(
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______

const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
[0] = { ENCODER_CCW_CW(KC_VOLU, KC_VOLD), ENCODER_CCW_CW(KC_PGUP, KC_PGDN) },
[1] = { ENCODER_CCW_CW(RGB_MOD, RGB_RMOD), ENCODER_CCW_CW(KC_MNXT, KC_MPRV) },
[2] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See previous comment.

Suggested change
[2] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) },

@LinuxSBC
Copy link
Contributor Author

LinuxSBC commented Oct 26, 2023

Thank you for the suggestions. Does this resolve it? Also, I'm sorry for not actually checking to see if it would work on rev1 and rev2. For some reason, I just didn't think of it. Now that I'm considering it more, rev2 and rev1 use a totally different microcontroller, so it would never have worked.

@xyzz xyzz merged commit 144e43d into vial-kb:vial Nov 7, 2023
3 checks passed
zhol0777 pushed a commit to zhol0777/vial-qmk that referenced this pull request Nov 20, 2023
* Add Vial support to Keebio Sinc keyboard

* Move Vial keymap to rev4 specifically

* Remove unnecessary layer
janvladimirmostert pushed a commit to janvladimirmostert/vial-qmk-chameleon that referenced this pull request Dec 1, 2023
* Add Vial support to Keebio Sinc keyboard

* Move Vial keymap to rev4 specifically

* Remove unnecessary layer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants