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

SixKeyBoard refactor #3193

Merged
merged 3 commits into from
Jun 16, 2018
Merged

SixKeyBoard refactor #3193

merged 3 commits into from
Jun 16, 2018

Conversation

noroadsleft
Copy link
Member

  • added matrix macro LAYOUT
  • readme cleanup
  • added info.json

@@ -1,12 +1,12 @@

#include "sixkeyboard.h"
#include QMK_KEYBOARD_H
#include "matrix.h"

This comment was marked as resolved.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never mind. Checked code, it most likely is.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still haven't worked out which files are superseded by using QMK_KEYBOARD_H. Sometimes I can remove multiple lines and sometimes only one.

Generally, I find replacing only the keyboard's .h file works.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of them aren't needed. The keyboard.h includes quantum.h, which includes a majority of the code.

But in some cases...
eeprom.h (not eeconfig.h) is one to NOT remove. userspace h files, and matrix.h are ones to not remove, as well.

But action_layer.h, etc ... are already included by default.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the knowledge @drashna. In past, I've occasionally done a local compile with the keyboard's .h file included directly, then another compile using QMK_KEYBOARD_H in place of as many #includes as I think I can get away with, then compared the hashes of the .hex files at the end.

@drashna
Copy link
Member

drashna commented Jun 16, 2018

Thanks!

@drashna drashna merged commit eccfb8d into qmk:master Jun 16, 2018
@noroadsleft noroadsleft deleted the c10r-sixkeyboard branch June 16, 2018 18:26
alexey-danilov pushed a commit to alexey-danilov/qmk_firmware that referenced this pull request Jul 27, 2018
* Refactor: create matrix macro

* Readme changes

* Configurator support
yamad pushed a commit to yamad/qmk_firmware that referenced this pull request Apr 10, 2019
* Refactor: create matrix macro

* Readme changes

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

Successfully merging this pull request may close these issues.

2 participants