-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
docs: Add a hardware issues page under troubleshooting #2360
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
83c102e
feat(shields): Added tester shields for pro micro and xiao form factors
nmunnich d6f34bb
feat(docs): Added a page on troubleshooting hardware issues.
nmunnich aeca7d7
Update docs/docs/troubleshooting/hardware-issues.mdx
nmunnich 878204f
Added pinouts to tester shield section for better reference
nmunnich 9dac026
Merge branch 'hardware-issues' of github.com:Nick-Munnich/zmk into ha…
nmunnich 2bb7f0a
Apply suggestions from code review
nmunnich ba17001
Further suggestions from code review
nmunnich a487fc2
Added design flaw bit to antenna
nmunnich 0b53d42
docs:additional feedback
nmunnich db4743d
Code review changes
nmunnich 2d4456d
Merge branch 'main' into hardware-issues
nmunnich dbc6b41
Split keyboards keymap note
nmunnich 6bf429d
Merge branch 'hardware-issues' of github.com:Nick-Munnich/zmk into ha…
nmunnich 9b0397a
note
nmunnich File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
if SHIELD_TESTER_PRO_MICRO | ||
|
||
config ZMK_KEYBOARD_NAME | ||
default "ZMK Tester" | ||
|
||
config ZMK_BLE | ||
def_bool n | ||
|
||
config SETTINGS | ||
def_bool n | ||
|
||
endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
config SHIELD_TESTER_PRO_MICRO | ||
def_bool $(shields_list_contains,tester_pro_micro) |
61 changes: 61 additions & 0 deletions
61
app/boards/shields/tester_pro_micro/tester_pro_micro.keymap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
#include <behaviors.dtsi> | ||
#include <dt-bindings/zmk/keys.h> | ||
|
||
#define PIN_MACRO(name, pin) \ | ||
/ { \ | ||
macros { \ | ||
name: name { \ | ||
compatible = "zmk,behavior-macro"; \ | ||
wait-ms = <5>; \ | ||
tap-ms = <5>; \ | ||
#binding-cells = <0>; \ | ||
bindings = <&kp P &kp I &kp N &kp SPACE>, pin, <&kp ENTER>; \ | ||
}; \ | ||
}; \ | ||
}; | ||
|
||
PIN_MACRO(pin0, <&kp N0>) | ||
PIN_MACRO(pin1, <&kp N1>) | ||
PIN_MACRO(pin2, <&kp N2>) | ||
PIN_MACRO(pin3, <&kp N3>) | ||
PIN_MACRO(pin4, <&kp N4>) | ||
PIN_MACRO(pin5, <&kp N5>) | ||
PIN_MACRO(pin6, <&kp N6>) | ||
PIN_MACRO(pin7, <&kp N7>) | ||
PIN_MACRO(pin8, <&kp N8>) | ||
PIN_MACRO(pin9, <&kp N9>) | ||
PIN_MACRO(pin10, <&kp N1 &kp N0>) | ||
PIN_MACRO(pin14, <&kp N1 &kp N4>) | ||
PIN_MACRO(pin15, <&kp N1 &kp N5>) | ||
PIN_MACRO(pin16, <&kp N1 &kp N6>) | ||
PIN_MACRO(pin18, <&kp N1 &kp N8>) | ||
PIN_MACRO(pin19, <&kp N1 &kp N9>) | ||
PIN_MACRO(pin20, <&kp N2 &kp N0>) | ||
PIN_MACRO(pin21, <&kp N2 &kp N1>) | ||
|
||
/ { | ||
keymap { | ||
compatible = "zmk,keymap"; | ||
|
||
default_layer { | ||
bindings = <&pin0 | ||
&pin1 | ||
&pin2 | ||
&pin3 | ||
&pin4 | ||
&pin5 | ||
&pin6 | ||
&pin7 | ||
&pin8 | ||
&pin9 | ||
&pin10 | ||
&pin14 | ||
&pin15 | ||
&pin16 | ||
&pin18 | ||
&pin19 | ||
&pin20 | ||
&pin21>; | ||
}; | ||
}; | ||
}; |
45 changes: 45 additions & 0 deletions
45
app/boards/shields/tester_pro_micro/tester_pro_micro.overlay
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#include <dt-bindings/zmk/matrix_transform.h> | ||
|
||
/ { | ||
chosen { | ||
zmk,kscan = &kscan0; | ||
zmk,matrix-transform = &transform0; | ||
}; | ||
|
||
kscan0: kscan { | ||
compatible = "zmk,kscan-gpio-direct"; | ||
toggle-mode; | ||
nmunnich marked this conversation as resolved.
Show resolved
Hide resolved
|
||
wakeup-source; | ||
debounce-press-ms = <10>; | ||
debounce-release-ms = <10>; | ||
input-gpios | ||
= <&pro_micro 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&pro_micro 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&pro_micro 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&pro_micro 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&pro_micro 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&pro_micro 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&pro_micro 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&pro_micro 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&pro_micro 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&pro_micro 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&pro_micro 10 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&pro_micro 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&pro_micro 15 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&pro_micro 16 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&pro_micro 18 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&pro_micro 19 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&pro_micro 20 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&pro_micro 21 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
; | ||
}; | ||
|
||
transform0: keymap_transform { | ||
compatible = "zmk,matrix-transform"; | ||
columns = <18>; | ||
rows = <1>; | ||
map = < | ||
RC(0,0) RC(0,1) RC(0,2) RC(0,3) RC(0,4) RC(0,5) RC(0,6) RC(0,7) RC(0,8) RC(0,9) RC(0,10) RC(0,11) RC(0,12) RC(0,13) RC(0,14) RC(0,15) RC(0,16) RC(0,17) | ||
>; | ||
}; | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
file_format: "1" | ||
id: tester_pro_micro | ||
name: TesterProMicro | ||
type: shield | ||
url: https://zmk.dev/docs/troubleshooting/hardware-issues | ||
requires: [pro_micro] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
if SHIELD_TESTER_XIAO | ||
|
||
config ZMK_KEYBOARD_NAME | ||
default "ZMK Tester" | ||
|
||
config ZMK_BLE | ||
def_bool n | ||
|
||
config SETTINGS | ||
def_bool n | ||
|
||
endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
config SHIELD_TESTER_XIAO | ||
def_bool $(shields_list_contains,tester_xiao) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#include <behaviors.dtsi> | ||
#include <dt-bindings/zmk/keys.h> | ||
|
||
#define PIN_MACRO(name, pin) \ | ||
/ { \ | ||
macros { \ | ||
name: name { \ | ||
compatible = "zmk,behavior-macro"; \ | ||
wait-ms = <5>; \ | ||
tap-ms = <5>; \ | ||
#binding-cells = <0>; \ | ||
bindings = <&kp P &kp I &kp N &kp SPACE>, pin, <&kp ENTER>; \ | ||
}; \ | ||
}; \ | ||
}; | ||
|
||
PIN_MACRO(pin0, <&kp N0>) | ||
PIN_MACRO(pin1, <&kp N1>) | ||
PIN_MACRO(pin2, <&kp N2>) | ||
PIN_MACRO(pin3, <&kp N3>) | ||
PIN_MACRO(pin4, <&kp N4>) | ||
PIN_MACRO(pin5, <&kp N5>) | ||
PIN_MACRO(pin6, <&kp N6>) | ||
PIN_MACRO(pin7, <&kp N7>) | ||
PIN_MACRO(pin8, <&kp N8>) | ||
PIN_MACRO(pin9, <&kp N9>) | ||
PIN_MACRO(pin10, <&kp N1 &kp N0>) | ||
|
||
/ { | ||
keymap { | ||
compatible = "zmk,keymap"; | ||
|
||
default_layer { | ||
bindings = <&pin0 | ||
&pin1 | ||
&pin2 | ||
&pin3 | ||
&pin4 | ||
&pin5 | ||
&pin6 | ||
&pin7 | ||
&pin8 | ||
&pin9 | ||
&pin10>; | ||
}; | ||
}; | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/ { | ||
chosen { | ||
zmk,kscan = &kscan0; | ||
zmk,matrix-transform = &transform0; | ||
}; | ||
|
||
kscan0: kscan { | ||
compatible = "zmk,kscan-gpio-direct"; | ||
wakeup-source; | ||
debounce-press-ms = <10>; | ||
debounce-release-ms = <10>; | ||
input-gpios | ||
= <&xiao_d 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&xiao_d 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&xiao_d 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&xiao_d 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&xiao_d 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&xiao_d 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&xiao_d 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&xiao_d 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&xiao_d 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&xiao_d 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
, <&xiao_d 10 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> | ||
; | ||
}; | ||
|
||
transform0: keymap_transform { | ||
compatible = "zmk,matrix-transform"; | ||
columns = <11>; | ||
rows = <1>; | ||
map = < | ||
RC(0,0) RC(0,1) RC(0,2) RC(0,3) RC(0,4) RC(0,5) RC(0,6) RC(0,7) RC(0,8) RC(0,9) RC(0,10) | ||
>; | ||
}; | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
file_format: "1" | ||
id: tester_xiao | ||
name: TesterXiao | ||
type: shield | ||
url: https://zmk.dev/docs/troubleshooting/hardware-issues | ||
requires: [seeed_xiao] |
Binary file added
BIN
+99 KB
docs/docs/assets/troubleshooting/multimeter/schematic_probe_example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.