vialrgb: add all supported effects
parent
30d4731cfd
commit
6bfd4bc3ec
|
|
@ -397,7 +397,8 @@ class Keyboard:
|
|||
self.rgb_supported_effects = {0}
|
||||
max_effect = 0
|
||||
while max_effect < 0xFFFF:
|
||||
data = self.usb_send(self.dev, struct.pack("BB", CMD_VIA_LIGHTING_GET_VALUE, VIALRGB_GET_SUPPORTED))[2:]
|
||||
data = self.usb_send(self.dev, struct.pack("<BBH", CMD_VIA_LIGHTING_GET_VALUE, VIALRGB_GET_SUPPORTED,
|
||||
max_effect))[2:]
|
||||
for x in range(0, len(data), 2):
|
||||
value = int.from_bytes(data[x:x+2], byteorder="little")
|
||||
if value != 0xFFFF:
|
||||
|
|
|
|||
|
|
@ -71,7 +71,46 @@ VIALRGB_EFFECTS = [
|
|||
VialRGBEffect(0, "Disable"),
|
||||
VialRGBEffect(1, "Direct Control"),
|
||||
VialRGBEffect(2, "Solid Color"),
|
||||
VialRGBEffect(3, "Alphas and Mods"),
|
||||
VialRGBEffect(3, "Alphas Mods"),
|
||||
VialRGBEffect(4, "Gradient Up Down"),
|
||||
VialRGBEffect(5, "Gradient Left Right"),
|
||||
VialRGBEffect(6, "Breathing"),
|
||||
VialRGBEffect(7, "Band Sat"),
|
||||
VialRGBEffect(8, "Band Val"),
|
||||
VialRGBEffect(9, "Band Pinwheel Sat"),
|
||||
VialRGBEffect(10, "Band Pinwheel Val"),
|
||||
VialRGBEffect(11, "Band Spiral Sat"),
|
||||
VialRGBEffect(12, "Band Spiral Val"),
|
||||
VialRGBEffect(13, "Cycle All"),
|
||||
VialRGBEffect(14, "Cycle Left Right"),
|
||||
VialRGBEffect(15, "Cycle Up Down"),
|
||||
VialRGBEffect(16, "Rainbow Moving Chevron"),
|
||||
VialRGBEffect(17, "Cycle Out In"),
|
||||
VialRGBEffect(18, "Cycle Out In Dual"),
|
||||
VialRGBEffect(19, "Cycle Pinwheel"),
|
||||
VialRGBEffect(20, "Cycle Spiral"),
|
||||
VialRGBEffect(21, "Dual Beacon"),
|
||||
VialRGBEffect(22, "Rainbow Beacon"),
|
||||
VialRGBEffect(23, "Rainbow Pinwheels"),
|
||||
VialRGBEffect(24, "Raindrops"),
|
||||
VialRGBEffect(25, "Jellybean Raindrops"),
|
||||
VialRGBEffect(26, "Hue Breathing"),
|
||||
VialRGBEffect(27, "Hue Pendulum"),
|
||||
VialRGBEffect(28, "Hue Wave"),
|
||||
VialRGBEffect(29, "Typing Heatmap"),
|
||||
VialRGBEffect(30, "Digital Rain"),
|
||||
VialRGBEffect(31, "Solid Reactive Simple"),
|
||||
VialRGBEffect(32, "Solid Reactive"),
|
||||
VialRGBEffect(33, "Solid Reactive Wide"),
|
||||
VialRGBEffect(34, "Solid Reactive Multiwide"),
|
||||
VialRGBEffect(35, "Solid Reactive Cross"),
|
||||
VialRGBEffect(36, "Solid Reactive Multicross"),
|
||||
VialRGBEffect(37, "Solid Reactive Nexus"),
|
||||
VialRGBEffect(38, "Solid Reactive Multinexus"),
|
||||
VialRGBEffect(39, "Splash"),
|
||||
VialRGBEffect(40, "Multisplash"),
|
||||
VialRGBEffect(41, "Solid Splash"),
|
||||
VialRGBEffect(42, "Solid Multisplash"),
|
||||
]
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue