shot of post - πŸ’­ Pinout and Schematic - nice!nano

Here's my thought on πŸ’­ Pinout and Schematic - nice!nano


Pinout for nice!nano boards. Note that P0.15 means gpio port 0 pin 15, they can be referenced in zmk when setting column and row pins.

#include <dt-bindings/zmk/matrix_transform.h>

/ { chosen { zmk,kscan = &default_kscan; zmk,matrix_transform = &default_transform; /delete-property/ zephyr,console; /delete-property/ zephyr,shell-uart; };

default_kscan: kscan {
    compatible = &quot;zmk,kscan-gpio-matrix&quot;;
    label = &quot;default_kscan&quot;;
    diode-direction = &quot;col2row&quot;;

    col-gpios
        = &lt;&amp;gpio0 31 GPIO_ACTIVE_HIGH&gt;
        , &lt;&amp;gpio0 29 GPIO_ACTIVE_HIGH&gt;
        , &lt;&amp;gpio0 2 GPIO_ACTIVE_HIGH&gt;
        ;

    row-gpios
        = &lt;&amp;gpio1 15 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)&gt;
        , &lt;&amp;gpio1 13 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)&gt;
        , &lt;&amp;gpio1 11 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)&gt;
        ;
};

default_transform: matrix_transform {
    compatible = &quot;zmk,matrix-transform&quot;;
    columns = &lt;3&gt;;
    rows = &lt;3&gt;;
    map = &lt;
        RC(0,0) RC(0,1) RC(0,2)
        RC(1,0) RC(1,1) RC(1,2)
        RC(2,0) RC(2,1) RC(2,2)
    &gt;;
};

};


!!! note This post is a thought. It's a short note that I make about someone else's content online. Learn more about the process [[ thoughts ]]

{.text-opacity-80} This post was a thought by Waylon Walker see all my thoughts at https://waylonwalker.com/thoughts