|
| 1 | +from .. import usbhid |
| 2 | + |
| 3 | +profile = { |
| 4 | + "name": "SteelSeries Prime+", |
| 5 | + "models": [ |
| 6 | + { |
| 7 | + "name": "SteelSeries Prime+", |
| 8 | + "vendor_id": 0x1038, |
| 9 | + "product_id": 0x182C, |
| 10 | + "endpoint": 0, |
| 11 | + }, |
| 12 | + ], |
| 13 | + "settings": { |
| 14 | + "sensitivity": { |
| 15 | + "label": "Sensitivity presets", |
| 16 | + "description": "Set sensitivity preset (DPI)", |
| 17 | + "cli": ["-s", "--sensitivity"], |
| 18 | + "report_type": usbhid.HID_REPORT_TYPE_OUTPUT, |
| 19 | + "command": [0x61], |
| 20 | + "value_type": "multidpi_range", |
| 21 | + "input_range": [50, 18000, 50], |
| 22 | + "output_range": [1, 0x0168, 1], |
| 23 | + "dpi_length_byte": 2, |
| 24 | + "count_mode": "number", |
| 25 | + "first_preset": 0, |
| 26 | + "max_preset_count": 5, |
| 27 | + "default": "400, 800, 1200, 2400, 3200", |
| 28 | + }, |
| 29 | + "polling_rate": { |
| 30 | + "label": "Polling rate", |
| 31 | + "description": "Set polling rate (Hz)", |
| 32 | + "cli": ["-p", "--polling-rate"], |
| 33 | + "report_type": usbhid.HID_REPORT_TYPE_OUTPUT, |
| 34 | + "command": [0x5D], |
| 35 | + "value_type": "choice", |
| 36 | + "choices": { |
| 37 | + 125: 0x04, |
| 38 | + 250: 0x03, |
| 39 | + 500: 0x02, |
| 40 | + 1000: 0x01, |
| 41 | + }, |
| 42 | + "default": 1000, |
| 43 | + }, |
| 44 | + "color": { |
| 45 | + "label": "Wheel LED color", |
| 46 | + "description": "Set the color of the wheel LED", |
| 47 | + "cli": ["-c", "--color"], |
| 48 | + "report_type": usbhid.HID_REPORT_TYPE_OUTPUT, |
| 49 | + "command": [0x62, 0x01], |
| 50 | + "command_suffix": [ |
| 51 | + # fmt: off |
| 52 | + 0x00, 0x00, 0x00, |
| 53 | + 0x00, 0x00, 0x00, |
| 54 | + 0x00, 0x00, 0x00, |
| 55 | + 0x00, 0x00, 0x00, |
| 56 | + 0x00, 0x00, 0x00, |
| 57 | + 0xFF, |
| 58 | + # fmt: on |
| 59 | + ], |
| 60 | + "value_type": "rgbcolor", |
| 61 | + "default": "#FF5200", |
| 62 | + }, |
| 63 | + "led_brightness": { |
| 64 | + "label": "Wheel LED brightness", |
| 65 | + "description": "Set the brightness of the wheel LED", |
| 66 | + "cli": ["-l", "--led-brightness"], |
| 67 | + "report_type": usbhid.HID_REPORT_TYPE_OUTPUT, |
| 68 | + "command": [0x5F], |
| 69 | + "value_type": "range", |
| 70 | + "input_range": [0, 256, 1], |
| 71 | + "output_range": [0, 256, 1], |
| 72 | + "range_length_byte": 2, |
| 73 | + "default": 256, |
| 74 | + }, |
| 75 | + "buttons_mapping": { |
| 76 | + "label": "Buttons mapping", |
| 77 | + "description": "Set the mapping of the buttons", |
| 78 | + "cli": ["-b", "--buttons"], |
| 79 | + "report_type": usbhid.HID_REPORT_TYPE_OUTPUT, |
| 80 | + "command": [0x5B], |
| 81 | + "value_type": "buttons", |
| 82 | + # fmt: off |
| 83 | + "buttons": { |
| 84 | + "Button1": {"id": 0x01, "offset": 0x00, "default": "button1"}, |
| 85 | + "Button2": {"id": 0x02, "offset": 0x05, "default": "button2"}, |
| 86 | + "Button3": {"id": 0x03, "offset": 0x0A, "default": "button3"}, |
| 87 | + "Button4": {"id": 0x04, "offset": 0x0F, "default": "button4"}, |
| 88 | + "Button5": {"id": 0x05, "offset": 0x14, "default": "button5"}, |
| 89 | + "Button6": {"id": 0x06, "offset": 0x19, "default": "dpi"}, |
| 90 | + }, |
| 91 | + "button_field_length": 5, |
| 92 | + "button_disable": 0x00, |
| 93 | + "button_keyboard": 0x51, |
| 94 | + "button_multimedia": 0x61, |
| 95 | + "button_dpi_switch": 0x30, |
| 96 | + "button_scroll_up": 0x31, |
| 97 | + "button_scroll_down": 0x32, |
| 98 | + # fmt: on |
| 99 | + "default": "buttons(button1=button1; button2=button2; button3=button3; button4=button4; button5=button5; button6=dpi; layout=qwerty)", |
| 100 | + }, |
| 101 | + }, |
| 102 | + "save_command": { |
| 103 | + "report_type": usbhid.HID_REPORT_TYPE_OUTPUT, |
| 104 | + "command": [0x59], |
| 105 | + }, |
| 106 | +} |
0 commit comments