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

Added support for BlackWidow Chroma V2 #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
15 changes: 11 additions & 4 deletions src/bwidow.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#define DEV_PID_BW_2013 0x011b
#define DEV_PID_BW_ULT 0x010d
#define DEV_PID_BW 0x010e
#define DEV_PID_BW_CHROMA_V2 0x0221

// USB Device
#define DEV_INTF 2
Expand Down Expand Up @@ -76,10 +77,16 @@ int init () {
//try next device
handle = libusb_open_device_with_vid_pid(NULL, DEV_VID, DEV_PID_BW);
if (handle == NULL) {
//no devices found
printf("ERROR - No Known Razer BlackWidow Devices Found\n");
libusb_exit(NULL);
return 1;
//try next device
handle = libusb_open_device_with_vid_pid(NULL, DEV_VID, DEV_PID_BW_CHROMA_V2);
if(handle == NULL){
//no devices found
printf("ERROR - No Known Razer BlackWidow Devices Found\n");
libusb_exit(NULL);
return 1;
} else {
printf("Razer BlackWidow Chroma V2 Devide Found\n");
}
} else {
printf("Razer BlackWidow Device Found\n");
}
Expand Down