Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assign LE files per keypress on the base layer #188

Closed
avollrath opened this issue Apr 6, 2022 · 2 comments
Closed

Assign LE files per keypress on the base layer #188

avollrath opened this issue Apr 6, 2022 · 2 comments

Comments

@avollrath
Copy link

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é

@pixeltris
Copy link
Owner

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;

@pixeltris
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants