feat(docs): Update documentation to match new Pro Micro nodes
This commit is contained in:
parent
687e91ab18
commit
e6645882c3
3 changed files with 25 additions and 25 deletions
Binary file not shown.
Before Width: | Height: | Size: 113 KiB After Width: | Height: | Size: 479 KiB |
|
@ -47,6 +47,6 @@ in the `app/boards/shields/${board_name}` directory, e.g. `app/boards/shields/cl
|
||||||
- A `Kconfig.shield` that defines the toplevel Kconfig value for the shield, which uses a supplied utility to function to default the value based on the shield list, e.g. `def_bool $(shields_list_contains,clueboard_california)`.
|
- A `Kconfig.shield` that defines the toplevel Kconfig value for the shield, which uses a supplied utility to function to default the value based on the shield list, e.g. `def_bool $(shields_list_contains,clueboard_california)`.
|
||||||
- A `Kconfig.defconfig` file to set default values for things like `ZMK_KEYBOARD_NAME`
|
- A `Kconfig.defconfig` file to set default values for things like `ZMK_KEYBOARD_NAME`
|
||||||
- A `${shield_name}.overlay` file, which is a devicetree overlay file, that includes:
|
- A `${shield_name}.overlay` file, which is a devicetree overlay file, that includes:
|
||||||
- A [chosen](https://docs.zephyrproject.org/2.5.0/guides/dts/intro.html#aliases-and-chosen-nodes) node named `zmk,kscan` which references the configured KSCAN driver (usually a GPIO matrix). For these keyboards, to be compatible with any Pro Micro compatible boards, the KSCAN configuration should reference the [nexus node](https://docs.zephyrproject.org/2.5.0/guides/porting/shields.html#gpio-nexus-nodes) that ZMK has standardized on. In particular, the `&pro_micro_a` and `&pro_micro_d` aliases can be used to reference the standard `A#` and `D#` pins in shields.
|
- A [chosen](https://docs.zephyrproject.org/2.5.0/guides/dts/intro.html#aliases-and-chosen-nodes) node named `zmk,kscan` which references the configured KSCAN driver (usually a GPIO matrix). For these keyboards, to be compatible with any Pro Micro compatible boards, the KSCAN configuration should reference the [nexus node](https://docs.zephyrproject.org/2.5.0/guides/porting/shields.html#gpio-nexus-nodes) that ZMK has standardized on. In particular, the `&pro_micro` aliases can be used to reference the standard digital pins of a Pro Micro for shields.
|
||||||
- (Optional) A [chosen](https://docs.zephyrproject.org/2.5.0/guides/dts/intro.html#aliases-and-chosen-nodes) node named `zmk,matrix_transform` that defines the mapping from KSCAN row/column values to the logical key position for the keyboard.
|
- (Optional) A [chosen](https://docs.zephyrproject.org/2.5.0/guides/dts/intro.html#aliases-and-chosen-nodes) node named `zmk,matrix_transform` that defines the mapping from KSCAN row/column values to the logical key position for the keyboard.
|
||||||
- A `keymap/keymap.overlay` file that includes the default keymap for that keyboard. Users will be able to override this keymap in their user configs.
|
- A `keymap/keymap.overlay` file that includes the default keymap for that keyboard. Users will be able to override this keymap in their user configs.
|
||||||
|
|
|
@ -117,7 +117,7 @@ endif
|
||||||
|
|
||||||
![Labelled Pro Micro pins](../assets/pro-micro/pro-micro-pins-labelled.jpg)
|
![Labelled Pro Micro pins](../assets/pro-micro/pro-micro-pins-labelled.jpg)
|
||||||
|
|
||||||
ZMK uses the green color coded pin names to generate devicetree node references. For example, to refer to the node `D0` in the devicetree files, use `&pro_micro_d 0` or to refer to `A1`, use `&pro_micro_a 1`.
|
ZMK uses the blue color coded pin names to generate devicetree node references. For example, to refer to the node `0` in the devicetree files, use `&pro_micro 0`.
|
||||||
|
|
||||||
<Tabs
|
<Tabs
|
||||||
defaultValue="unibody"
|
defaultValue="unibody"
|
||||||
|
@ -143,15 +143,15 @@ this might look something like:
|
||||||
diode-direction = "col2row";
|
diode-direction = "col2row";
|
||||||
|
|
||||||
col-gpios
|
col-gpios
|
||||||
= <&pro_micro_d 15 GPIO_ACTIVE_HIGH>
|
= <&pro_micro 15 GPIO_ACTIVE_HIGH>
|
||||||
, <&pro_micro_d 14 GPIO_ACTIVE_HIGH>
|
, <&pro_micro 14 GPIO_ACTIVE_HIGH>
|
||||||
, <&pro_micro_d 16 GPIO_ACTIVE_HIGH>
|
, <&pro_micro 16 GPIO_ACTIVE_HIGH>
|
||||||
;
|
;
|
||||||
|
|
||||||
row-gpios
|
row-gpios
|
||||||
= <&pro_micro_a 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
= <&pro_micro 19 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
, <&pro_micro_a 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
, <&pro_micro 20 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
, <&pro_micro_a 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
, <&pro_micro 21 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -200,11 +200,11 @@ RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(4,2) RC(4,9) RC(3,6) RC(3,7)
|
||||||
|
|
||||||
diode-direction = "col2row";
|
diode-direction = "col2row";
|
||||||
row-gpios
|
row-gpios
|
||||||
= <&pro_micro_d 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> // Row A from the schematic file
|
= <&pro_micro 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> // Row A from the schematic file
|
||||||
, <&pro_micro_d 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> // Row B from the schematic file
|
, <&pro_micro 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> // Row B from the schematic file
|
||||||
, <&pro_micro_d 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> // Row C from the schematic file
|
, <&pro_micro 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> // Row C from the schematic file
|
||||||
, <&pro_micro_d 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> // Row D from the schematic file
|
, <&pro_micro 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> // Row D from the schematic file
|
||||||
, <&pro_micro_d 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> // Row E from the schematic file
|
, <&pro_micro 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> // Row E from the schematic file
|
||||||
;
|
;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -228,12 +228,12 @@ This is exemplified with the iris .overlay files.
|
||||||
|
|
||||||
&kscan0 {
|
&kscan0 {
|
||||||
col-gpios
|
col-gpios
|
||||||
= <&pro_micro_a 1 GPIO_ACTIVE_HIGH> // col1 in the schematic
|
= <&pro_micro 19 GPIO_ACTIVE_HIGH> // col1 in the schematic
|
||||||
, <&pro_micro_a 0 GPIO_ACTIVE_HIGH> // col2 in the schematic
|
, <&pro_micro 18 GPIO_ACTIVE_HIGH> // col2 in the schematic
|
||||||
, <&pro_micro_d 15 GPIO_ACTIVE_HIGH> // col3 in the schematic
|
, <&pro_micro 15 GPIO_ACTIVE_HIGH> // col3 in the schematic
|
||||||
, <&pro_micro_d 14 GPIO_ACTIVE_HIGH> // col4 in the schematic
|
, <&pro_micro 14 GPIO_ACTIVE_HIGH> // col4 in the schematic
|
||||||
, <&pro_micro_d 16 GPIO_ACTIVE_HIGH> // col5 in the schematic
|
, <&pro_micro 16 GPIO_ACTIVE_HIGH> // col5 in the schematic
|
||||||
, <&pro_micro_d 10 GPIO_ACTIVE_HIGH> // col6 in the schematic
|
, <&pro_micro 10 GPIO_ACTIVE_HIGH> // col6 in the schematic
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
@ -249,12 +249,12 @@ This is exemplified with the iris .overlay files.
|
||||||
|
|
||||||
&kscan0 {
|
&kscan0 {
|
||||||
col-gpios
|
col-gpios
|
||||||
= <&pro_micro_d 10 GPIO_ACTIVE_HIGH> // col6 in the schematic
|
= <&pro_micro 10 GPIO_ACTIVE_HIGH> // col6 in the schematic
|
||||||
, <&pro_micro_d 16 GPIO_ACTIVE_HIGH> // col5 in the schematic
|
, <&pro_micro 16 GPIO_ACTIVE_HIGH> // col5 in the schematic
|
||||||
, <&pro_micro_d 14 GPIO_ACTIVE_HIGH> // col4 in the schematic
|
, <&pro_micro 14 GPIO_ACTIVE_HIGH> // col4 in the schematic
|
||||||
, <&pro_micro_d 15 GPIO_ACTIVE_HIGH> // col3 in the schematic
|
, <&pro_micro 15 GPIO_ACTIVE_HIGH> // col3 in the schematic
|
||||||
, <&pro_micro_a 0 GPIO_ACTIVE_HIGH> // col2 in the schematic
|
, <&pro_micro 18 GPIO_ACTIVE_HIGH> // col2 in the schematic
|
||||||
, <&pro_micro_a 1 GPIO_ACTIVE_HIGH> // col1 in the schematic
|
, <&pro_micro 19 GPIO_ACTIVE_HIGH> // col1 in the schematic
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue