-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
feat(shields): Add Levinson support #1648
Conversation
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.
After rebasing
on main
, you'll definitely need to install and run pre-commit
here to deal with formatting issues (tabs, trailing whitespace, etc).
@@ -0,0 +1 @@ | |||
CONFIG_ZMK_SLEEP=y |
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.
CONFIG_ZMK_SLEEP=y | |
#CONFIG_ZMK_SLEEP=y |
Leaving this uncommented may flout the
.conf
file has optional extra features commented out
guideline from the PR checklist.
Someone with merge privileges can make a final ruling on that.
zmk,kscan = &kscan0; | ||
zmk,matrix_transform = &default_transform; | ||
}; | ||
|
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.
kscan0: kscan { | |
compatible = "zmk,kscan-gpio-matrix"; | |
diode-direction = "col2row"; | |
}; | |
You may not be able to put col-gpios
or row-gpios
in here, but these attributes are common so they don't need to be duplicated. (label
is deprecated, and has been removed.)
/ { | ||
kscan0: kscan { | ||
compatible = "zmk,kscan-gpio-matrix"; | ||
label = "KSCAN"; | ||
diode-direction = "col2row"; |
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.
/ { | |
kscan0: kscan { | |
compatible = "zmk,kscan-gpio-matrix"; | |
label = "KSCAN"; | |
diode-direction = "col2row"; | |
&kscan0 { |
You're going to need to reformat this file to get rid of the extra indentation, but you'll need to run pre-commit
after the rebase to clear up formatting issues anyway.
, <&pro_micro 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> | ||
, <&pro_micro 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> | ||
; | ||
}; |
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.
}; |
/ { | ||
kscan0: kscan { | ||
compatible = "zmk,kscan-gpio-matrix"; | ||
label = "KSCAN"; | ||
diode-direction = "col2row"; |
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.
/ { | |
kscan0: kscan { | |
compatible = "zmk,kscan-gpio-matrix"; | |
label = "KSCAN"; | |
diode-direction = "col2row"; | |
&kscan0 { |
, <&pro_micro 14 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> | ||
, <&pro_micro 15 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> | ||
; | ||
}; |
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.
}; |
# Copyright (c) 2023 The ZMK Contributors | ||
# SPDX-License-Identifier: MIT | ||
|
||
|
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.
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.
Something I missed.
config ZMK_KEYBOARD_NAME | ||
default "Levinson" | ||
|
||
config ZMK_SPLIT_BLE_ROLE_CENTRAL |
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.
config ZMK_SPLIT_BLE_ROLE_CENTRAL | |
config ZMK_SPLIT_ROLE_CENTRAL |
Reviving the work @blistergeist did on this PR to enable Levinson support.
Board/Shield Check-list
.zmk.yml
metadata file added&pro_micro
used in favor of&pro_micro_d/a
if applicable.conf
file has optional extra features commented out