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

[Let's Split] Add ability to write additional code in matrix scan loop on slave. #3072

Merged
merged 1 commit into from
Jun 2, 2018

Conversation

and3rson
Copy link
Contributor

@and3rson and3rson commented May 29, 2018

This PR adds possibility to define custom code on slave part of the Let's Split keyboard within keymap scope without altering the keyboard scope code. This was achieved by defining a weak attribute matrix_slave_scan_user(void) that will be called during matrix_slave_scan(void).

This allows to perform some actions on the slave part by defining a matrix_slave_scan_user(void) function within your keymap. I've tested this to make slave's TX LED blink every 100ms.

This idea was briefly discussed on Gitter (thanks @drashna)

@and3rson
Copy link
Contributor Author

Um... Any ideas why does the build failed? It's not my code that breaks it.

@nooges
Copy link
Member

nooges commented May 29, 2018

@and3rson Fixed those issues in this PR: #3074

@drashna
Copy link
Member

drashna commented Jun 2, 2018

Thanks!

@drashna drashna merged commit 8250084 into qmk:master Jun 2, 2018
yamad pushed a commit to yamad/qmk_firmware that referenced this pull request Apr 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants