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

hid::Keyboardio: Make it possible to switch the default protocol via Props #772

Closed
wants to merge 4 commits into from

Conversation

algernon
Copy link
Contributor

This is a followup for #771, and depends on keyboardio/KeyboardioHID#62 in addition to that. It simply makes the default keyboard report protocol settable on a per-device basis via Props - at least when using hid::Keyboardio as the HID driver.

I deliberately made this dependent on our HID driver, because a default protocol may or may not make sense with another driver (eg, over BLE, it doesn't).

Together with its dependencies, this fixes keyboardio/KeyboardioHID#59.

Make the Model01's `setup()` method non-static, so that we can call the parents
`setup()` method too. We want to do that so if new drivers are added, we
automatically pick those up.

Signed-off-by: Gergely Nagy <[email protected]>
To make it easier to configure which HID implementation - and which parts of it
- a particular board uses, we turn our current HID facade (`kaleidoscope::hid`)
into a proper, Props-supported driver. This also allows us to get rid of the
`Kaleidoscope-HIDAdaptor-KeyboardioHID` library.

Signed-off-by: Gergely Nagy <[email protected]>
@algernon algernon added the enhancement New feature or request label Dec 13, 2019
static void reset_warping();
static void pressButton(uint8_t button);
Copy link
Member

Choose a reason for hiding this comment

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

where did the pressButton and releaseButton methods go?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They went into the HID driver. Since MouseKeys was the only user of it, I just changed the call-site to call the driver's appropriate method instead.

@algernon
Copy link
Contributor Author

Closing this, because Dygma decided they'll stick with NKRO default, and keyboardio/KeyboardioHID#62 turned out to be problematic on the Raise (but worked on the Model01...).

@algernon algernon closed this Dec 17, 2019
@algernon algernon deleted the driver/hid-delayed-descriptors branch December 28, 2019 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Need a way to default to boot protocol
2 participants