Skip to content

Button layer auto activation #166

Answered by manna-harbour
volderette asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately QMK doesn't support adding #include "users/manna-harbour_miryoku/manna-harbour_miryoku.h" to config.h to include the layer enums because it also uses config.h to assemble assembler and the enums aren't valid there. Instead, you have to manually add a define for the layer number to config.h then use that macro when specifying the layer for auto activation. By default Button is layer 3, so e.g. add #define BUTTON_LAYER 3 and then use BUTTON_LAYER in your configuration. Of course you could also use the bare layer number directly and add a comment.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@volderette
Comment options

Answer selected by manna-harbour
Comment options

You must be logged in to vote
3 replies
@manna-harbour
Comment options

@robrecord
Comment options

@manna-harbour
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
4 participants