Skip to content

Commit

Permalink
[Docs] clarify inner array of direct pin matrix (qmk#17437)
Browse files Browse the repository at this point in the history
  • Loading branch information
evils authored and zykrah committed Jul 2, 2022
1 parent fc034d3 commit cd6bf02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference_info_json.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Example:

Direct pins are when you connect one side of the switch to GND and the other side to a GPIO pin on your MCU. No diode is required, but there is a 1:1 mapping between switches and pins.

When specifying direct pins you need to arrange them in nested arrays. The outer array consists of rows, while the inner array is a text string corresponding to a pin. You can use `null` to indicate an empty spot in the matrix.
When specifying direct pins you need to arrange them in nested arrays. The outer array consists of rows, while the inner array uses text strings to identify the pins used in each row. You can use `null` to indicate an empty spot in the matrix.

Example:

Expand Down

0 comments on commit cd6bf02

Please sign in to comment.