pixeltris / GK6X

Configure keys, macros, and lighting on GK6X keyboards (GK64, GK84, GK61, etc)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Assign LE files per keypress on the base layer

avollrath opened this issue · comments

Hi there,

great work! In the official software it's possible to assign LE files to keypress events. I'd like to light up the same led for all keypresses on the base layer so that I can use it to trigger a solenoid. Is it possible to add this functionality?

BR

André

I didn't implement that unfortunately as if I recall the functionality of key press lighting is quite limited. The in-built ones are far superior.

GK6X/GK6X/OpCodes.cs

Lines 57 to 60 in 6ef1a80

/// <summary>
/// Sets the lighting effects which should play when pressing keys ("Press Light")
/// </summary>
LayerSetKeyPressLightingEffect = 0x26,

GK6X/GK6X/CommandLogger.cs

Lines 192 to 200 in 6ef1a80

case OpCodes.LayerSetKeyPressLightingEffect:
case OpCodes.LayerSetKeyValues:
case OpCodes.LayerFnSetKeyValues:
case OpCodes.LayerSetMacros:
packet.Index = 2;
offset = packet.ReadByte() | packet.ReadByte() << 8;
packet.Index = 4;
length = packet.ReadByte();
break;

Closing as I don't have any plans to implement this due to the limitations of it.