Last active
August 21, 2021 00:34
-
-
Save gort818/590f3c43b77afb917f81da0ec4bac877 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from .. import usbhid | |
profile = { | |
"name": "SteelSeries Aerox 3 Wireless", | |
"models": [ | |
{ | |
"name": "SteelSeries Aerox 3 Wireless", | |
"vendor_id": 0x1038, | |
"product_id": 0x1838, | |
"endpoint": 3, | |
}, | |
], | |
"settings": { | |
"sensitivity": { | |
"label": "Sensibility presets", | |
"description": "Set sensitivity preset (DPI)", | |
"cli": ["-s", "--sensitivity"], | |
"report_type": usbhid.HID_REPORT_TYPE_OUTPUT, | |
"command": [0x6D], | |
"value_type": "multidpi_range", | |
"input_range": [100, 18000, 100], | |
"output_range": [0x04, 0xB7, 1], | |
"dpi_length_byte": 1, | |
"count_mode": "number", | |
"max_preset_count": 5, | |
"default": "400,800,1200,2400,3200", | |
}, | |
"polling_rate": { | |
"label": "Polling rate", | |
"description": "Set polling rate (Hz)", | |
"cli": ["-p", "--polling-rate"], | |
"report_type": usbhid.HID_REPORT_TYPE_OUTPUT, | |
"command": [0x6B], | |
"value_type": "choice", | |
"choices": { | |
125: 0x03, | |
250: 0x02, | |
500: 0x01, | |
1000: 0x00, | |
}, | |
"default": 1000, | |
}, | |
"z1_color": { | |
"label": "Strip top LED color", | |
"description": "Set the color of the top LED", | |
"cli": ["--top-color", "--z1"], | |
"report_type": usbhid.HID_REPORT_TYPE_OUTPUT, | |
"command": [0x61, 0x01, 0x00], | |
"value_type": "rgbcolor", | |
"default": "red", | |
}, | |
"z2_color": { | |
"label": "Strip middle LED color", | |
"description": "Set the color of the middle LED", | |
"cli": ["--middle-color", "--z2"], | |
"report_type": usbhid.HID_REPORT_TYPE_OUTPUT, | |
"command": [0x61, 0x01, 0x01], | |
"value_type": "rgbcolor", | |
"default": "lime", | |
}, | |
"z3_color": { | |
"label": "Strip bottom LED color", | |
"description": "Set the color of the bottom LED", | |
"cli": ["--bottom-color", "--z3"], | |
"report_type": usbhid.HID_REPORT_TYPE_OUTPUT, | |
"command": [0x61, 0x01, 0x02], | |
"value_type": "rgbcolor", | |
"default": "blue", | |
}, | |
"z4_color": { | |
"label": "Reactive Lighting", | |
"description": "Set the color of the reactive LED", | |
"cli": ["--reactive", "--z4"], | |
"report_type": usbhid.HID_REPORT_TYPE_OUTPUT, | |
"command": [0x66, 0x01, 0x00], | |
"value_type": "rgbcolor", | |
"default": "blue", | |
}, | |
"led_brightness": { | |
"label": "LED Brightness", | |
"description": "Set the brightness of the LEDs", | |
"cli": ["-l", "--led-brightness"], | |
"report_type": usbhid.HID_REPORT_TYPE_OUTPUT, | |
"command": [0x63], | |
"command_suffix": [0x01, 0x01, 0x00, 0x30, 0x75, 0x00], | |
"value_type": "range", | |
"input_range": [0, 15, 1], | |
"output_range": [0x00, 0x0F, 1], | |
"default": 15, | |
}, | |
"rainbow_effect": { | |
"label": "rainbow effect", | |
"description": "Set the rainbow effect (can be cleared by setting a color)", | |
"cli": ["-e", "--rainbow-effect"], | |
"report_type": usbhid.HID_REPORT_TYPE_OUTPUT, | |
"command": [0x62], | |
"value_type": "choice", | |
# fmt: off | |
"choices": { | |
"all": 0b111, | |
}, | |
# fmt: on | |
"default": "all", | |
}, | |
"buttons_mapping": { | |
"label": "Buttons mapping", | |
"description": "Set the mapping of the buttons", | |
"cli": ["-b", "--buttons"], | |
"report_type": usbhid.HID_REPORT_TYPE_OUTPUT, | |
"command": [0x6A], | |
"value_type": "buttons", | |
# fmt: off | |
"buttons": { | |
"Button1": {"id": 0x01, "offset": 0x00, "default": "button1"}, | |
"Button2": {"id": 0x02, "offset": 0x05, "default": "button2"}, | |
"Button3": {"id": 0x03, "offset": 0x0A, "default": "button3"}, | |
"Button4": {"id": 0x04, "offset": 0x0F, "default": "button4"}, | |
"Button5": {"id": 0x05, "offset": 0x14, "default": "button5"}, | |
"Button6": {"id": 0x06, "offset": 0x19, "default": "dpi"}, | |
"ScrollUp" : {"id": 0x31, "offset": 0x1E, "default": "scrollup"}, | |
"ScrollDown": {"id": 0x32, "offset": 0x23, "default": "scrolldown"}, | |
}, | |
"button_field_length": 5, | |
"button_disable": 0x00, | |
"button_keyboard": 0x51, | |
"button_multimedia": 0x61, | |
"button_dpi_switch": 0x30, | |
"button_scroll_up": None, | |
"button_scroll_down": None, | |
# fmt: on | |
"default": "buttons(button1=button1; button2=button2; button3=button3; button4=button4; button5=button5; button6=dpi; scrollup=scrollup; scrolldown=scrolldown; layout=qwerty)", | |
}, | |
}, | |
"save_command": { | |
"report_type": usbhid.HID_REPORT_TYPE_OUTPUT, | |
"command": [0x51, 0x00], | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment