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
New Board: BDN9 Rev2 macropad #557
Conversation
petejohanson
commented
Dec 30, 2020
- Onboard stm32f072.
- 3 possible encoder positions.
- Underglow/per-key not yet support.
d5b017d
to
303ba5d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good. Just a few small things!
app/include/zmk/sensors.h
Outdated
#define ZMK_KEYMAP_HAS_SENSORS DT_NODE_EXISTS(ZMK_KEYMAP_SENSORS_NODE) | ||
#define ZMK_KEYMAP_HAS_SENSORS DT_NODE_HAS_STATUS(ZMK_KEYMAP_SENSORS_NODE, okay) | ||
#define ZMK_KEYMAP_SENSORS_LEN DT_PROP_LEN(ZMK_KEYMAP_SENSORS_NODE, sensors) | ||
#define ZMK_KEYMAP_SENSORS_BY_IDX(idx) DT_PHANDLE_BY_IDX(ZMK_KEYMAP_SENSORS_NODE, sensors, idx) No newline at end of file | ||
#define ZMK_KEYMAP_SENSORS_BY_IDX(idx) DT_PHANDLE_BY_IDX(ZMK_KEYMAP_SENSORS_NODE, sensors, idx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this change meant to slip into this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I did this as a small extra commit. It allows you to define the sensor node in the DT, empty so that user keymaps can just reference it, enable it, and set the list of sensors they want to use.
See the sample bdn9_rev2.keymap
commented section near the top. Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. I think this makes sense. Might want a similar thing to be done on the tidbit.
303ba5d
to
7058ebc
Compare
7058ebc
to
3a4f639
Compare
Presumably this hasn't been added to |
Correct. Given the efforts to move to a web based setup, I didn't want to invest the time to add that there just for this board. |
The only other item missing from our usual checklist is a rudimentary |
* Onboard stm32f072. * 3 possible encoder positions. * Underglow/per-key not yet support.
3a4f639
to
4c9648a
Compare
Added the |
This looks fine on the face of it. @Nicell, please could you check your review status given the subsequent force-pushes. If it's fine with you then I'll rubber stamp it. |