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 60HE+ #68

Merged
merged 1 commit into from
Jan 31, 2024
Merged
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
20 changes: 19 additions & 1 deletion src/wooting-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#define WOOTING_TWO_HE_ARM_PID 0x1230
#define WOOTING_60HE_PID 0x1300
#define WOOTING_60HE_ARM_PID 0x1310
#define WOOTING_60HE_PLUS_PID 0x1320
#define WOOTING_UWU_PID 0x1500
#define WOOTING_UWU_RGB_PID 0x1510

Expand Down Expand Up @@ -174,6 +175,16 @@ static void set_meta_wooting_60he_arm(WOOTING_USB_META *device_meta) {
device_meta->uses_small_packets = true;
}

static void set_meta_wooting_60he_plus(WOOTING_USB_META *device_meta) {
device_meta->model = "Wooting 60HE+";
device_meta->device_type = DEVICE_KEYBOARD_60;
device_meta->max_rows = WOOTING_RGB_ROWS;
device_meta->max_columns = 14;
device_meta->led_index_max = WOOTING_TWO_KEY_CODE_LIMIT;
device_meta->v2_interface = true;
device_meta->uses_small_packets = true;
}

static void set_meta_wooting_uwu_rgb(WOOTING_USB_META *device_meta) {
device_meta->model = "Wooting UwU RGB";
device_meta->device_type = DEVICE_KEYPAD_3KEY;
Expand Down Expand Up @@ -349,12 +360,19 @@ bool wooting_usb_find_keyboard() {
printf("Enumerate on Wooting 60HE Successful\n");
#endif
walk_hid_devices(hid_info, set_meta_wooting_60he);
} else if (PID_ALT_CHECK(WOOTING_60HE_ARM_PID)) {
}
if (PID_ALT_CHECK(WOOTING_60HE_ARM_PID)) {
#ifdef DEBUG_LOG
printf("Enumerate on Wooting 60HE (ARM) Successful\n");
#endif
walk_hid_devices(hid_info, set_meta_wooting_60he_arm);
}
if (PID_ALT_CHECK(WOOTING_60HE_PLUS_PID)) {
#ifdef DEBUG_LOG
printf("Enumerate on Wooting 60HE+ Successful\n");
#endif
walk_hid_devices(hid_info, set_meta_wooting_60he_plus);
}

if (PID_ALT_CHECK(WOOTING_UWU_PID)) {
#ifdef DEBUG_LOG
Expand Down
Loading