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 support for Pikatea GB4 #27

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Conversation

paulirish
Copy link
Contributor

The Pikatea GB4 is this badboy:

5-key mini-keyboard with a knob mounted to an underside surface

I got one of these primarily to control meet, and integrating it into this ext was pretty straightforward. (Though there are zero HID docs for the device... but once I explored it a bit I feel happy with the implementation choices below)

Lemme know what ya think.

@@ -211,6 +218,11 @@ class StreamDeck { // eslint-disable-line
device.productId === 0x0080) {
return device;
}
} else if (
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the WET-ness of this function stood out to me before (getPreviousDevice repeating a bunch from getDevice).. and this new branch exacerbates it a bit..

so I tried to DRY it up.. but tbh I don't love the result: paulirish/StreamDeck-Meet@macropad...dry-er-filters
I'm pretty confident the match-any-filter impl I have matches up completely with the spec, so it does seem very future-friendly. But it isn't nice to look at.

Your call. I could totally go either way.

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.

1 participant