Skip to content

add BlackWidow X Chroma support under Linux #231

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

Merged
merged 1 commit into from
Apr 26, 2020
Merged
Show file tree
Hide file tree
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
10 changes: 10 additions & 0 deletions KeyboardVisualizerCommon/RazerChromaLinux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ enum
{
RAZER_NO_DEVICE,
RAZER_BLACKWIDOW_CHROMA,
RAZER_BLACKWIDOW_X_CHROMA,
RAZER_DEATHSTALKER_CHROMA,
RAZER_ORNATA_CHROMA,
RAZER_BLADE_STEALTH,
Expand Down Expand Up @@ -168,6 +169,13 @@ void RazerChroma::Initialize()

device_type = RAZER_BLACKWIDOW_CHROMA;
}
if(!strncmp(device_string, "Razer BlackWidow X Chroma", strlen("Razer BlackWidow X Chroma")))
{
//Device is Razer BlackWidow X Chroma
printf("BlackWidow X Chroma Detected\r\n");

device_type = RAZER_BLACKWIDOW_X_CHROMA;
}
if(!strncmp(device_string, "Razer DeathStalker Chroma", strlen("Razer DeathStalker Chroma")))
{
//Device is Razer DeathStalker Chroma
Expand Down Expand Up @@ -324,6 +332,7 @@ void RazerChroma::Initialize()
{
//Devices with custom effect type and matrix
case RAZER_BLACKWIDOW_CHROMA:
case RAZER_BLACKWIDOW_X_CHROMA:
case RAZER_DEATHSTALKER_CHROMA:
case RAZER_ORNATA_CHROMA:
case RAZER_BLADE_STEALTH:
Expand Down Expand Up @@ -505,6 +514,7 @@ bool RazerChroma::SetLEDs(COLORREF pixels[64][256])
{
case RAZER_ORNATA_CHROMA:
case RAZER_BLACKWIDOW_CHROMA:
case RAZER_BLACKWIDOW_X_CHROMA:
{
char BlackWidowEffect[((3 * 22)) + 3];

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ Keyboard Visualizer allows you to save your custom settings in two different way

Keyboards
- BlackWidow Chroma (spectrograph)
- BlackWidow X Chroma (spectrograph)
- BlackWidow Chroma Tournament Edition (spectrograph)
- DeathStalker Chroma (horizontal bar)
- Razer Ornata Chroma (spectrograph)
Expand Down