From 482e26fc86c8b3b36d82bded617618e6e3055f13 Mon Sep 17 00:00:00 2001 From: Theorian Date: Sun, 17 Oct 2021 11:47:19 -1000 Subject: Support for Razer Basilisk V3 (#15) * Add preliminary support for Basilisk v3 * revert unnecessary changes to CLI and driver * Revert working basilisk v2 functionality --- src/include/razercommon.h | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'src/include/razercommon.h') diff --git a/src/include/razercommon.h b/src/include/razercommon.h index d478aba..56a5211 100644 --- a/src/include/razercommon.h +++ b/src/include/razercommon.h @@ -26,18 +26,19 @@ #define ON 0x01 // LED definitions -#define ZERO_LED 0x00 -#define SCROLL_WHEEL_LED 0x01 -#define BATTERY_LED 0x03 -#define LOGO_LED 0x04 -#define BACKLIGHT_LED 0x05 -#define MACRO_LED 0x07 -#define GAME_LED 0x08 -#define RED_PROFILE_LED 0x0C -#define GREEN_PROFILE_LED 0x0D -#define BLUE_PROFILE_LED 0x0E -#define RIGHT_SIDE_LED 0x10 -#define LEFT_SIDE_LED 0x11 +#define ZERO_LED 0x00 +#define SCROLL_WHEEL_LED 0x01 +#define BATTERY_LED 0x03 +#define LOGO_LED 0x04 +#define BACKLIGHT_LED 0x05 +#define MACRO_LED 0x07 +#define GAME_LED 0x08 +#define BASILISK_V3_BASE_LED 0x0A +#define RED_PROFILE_LED 0x0C +#define GREEN_PROFILE_LED 0x0D +#define BLUE_PROFILE_LED 0x0E +#define RIGHT_SIDE_LED 0x10 +#define LEFT_SIDE_LED 0x11 // LED STORAGE Options #define NOSTORE 0x00 @@ -90,7 +91,7 @@ union command_id_union { * Protocol Type is always 0x00 * Data Size is the size of payload, cannot be greater than 80. 90 = header (8B) + data + CRC (1B) + Reserved (1B) * Command Class is the type of command being issued - * Command ID is the type of command being send. Direction 0 is Host->Device, Direction 1 is Device->Host. AKA Get LED 0x80, Set LED 0x00 + * Command ID is the type of command being sent. Direction 0 is Host->Device, Direction 1 is Device->Host. AKA Get LED 0x80, Set LED 0x00 * * */ -- cgit v1.2.3