blob: 5778a8af931c52d737ab4c0a97e4a9e5ee600bde (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#include<stdio.h>
#include "razerdevice.h"
#include "razerkbd_driver.h"
int main(int argc, const char * argv[]) {
RazerDevices allDevices = getAllRazerDevices();
RazerDevice *razerDevices = allDevices.devices;
printf("%d Razer device(s) found:\n", allDevices.size);
for (int i = 0; i < allDevices.size; i++) {
RazerDevice device = razerDevices[i];
printf("%#06x\n", device.productId);
// Testing out the blackwidow v3 pro changes by switching to wave
if (device.productId == 0x025A)
{
printf("Found blackwidow v3 pro keyboard (wired)\n");
razer_attr_write_mode_spectrum(device.usbDevice, "1", 0);
}
}
closeAllRazerDevices(allDevices);
return 0;
}
|