-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Question: How to toggle layer in ACTION_FUNCTION? #446
Comments
You have to implement toggle logic in action function your self. You will want to know how built-in
Next, you can find code of the built-in action in
You will find something useful if you explore this code more deeply. Search definition of https://github.com/tmk/tmk_keyboard/blob/master/tmk_core/common/action_layer.c#L105-L108
What you want to do is inverting a bit of I think this code will work in your case probably.
|
Is someone give me some example for how to toggle a layer in ACTION_FUNCTION?
I would like to change some LEDs then toggle a layer.
The follow code did not work.
The text was updated successfully, but these errors were encountered: