Skip to content

Commit

Permalink
Add new PID: 0x320f
Browse files Browse the repository at this point in the history
  • Loading branch information
dokutan committed Jul 24, 2022
1 parent d111e4b commit 82c3cb4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/rgb_keyboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class keyboard;

// usb ids
const uint16_t keyboard_vid = 0x0c45;
const uint16_t keyboard_vid2 = 0x320f;
const std::vector<uint16_t> keyboard_pid = {
0x7903, // Ajazz AK33
0x5204, // Redragon K550 Yama
Expand Down
4 changes: 4 additions & 0 deletions rgb_keyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,10 @@ int main(int argc, char **argv) {
// set USB ids
kbd.set_vid(rgb_keyboard::keyboard_vid);
kbd.set_pid(rgb_keyboard::detect_pid());
if (kbd.get_pid() == 0) {
kbd.set_vid(rgb_keyboard::keyboard_vid2);
kbd.set_pid(rgb_keyboard::detect_pid(rgb_keyboard::keyboard_vid2));
}
if (kbd.get_pid() == 0) {
std::cerr
<< "Could not detect keyboard, check hardware and permissions.\n";
Expand Down

0 comments on commit 82c3cb4

Please sign in to comment.