Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
juichi nishimura committed Jun 15, 2024
1 parent 6f3fddf commit e8aa7fb
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 32 deletions.
2 changes: 1 addition & 1 deletion build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
---
include:
- board: blackpill_f411ce
shield: two_percent_milk
shield: steno
6 changes: 6 additions & 0 deletions config/boards/shields/steno/Kconfig.defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
if SHIELD_STENO

config ZMK_KEYBOARD_NAME
default "steno"

end if
2 changes: 2 additions & 0 deletions config/boards/shields/steno/Kconfig.shield
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
config SHIELD_STENO
def bool $(shields_list_contains, steno)
16 changes: 16 additions & 0 deletions config/boards/shields/steno/steno.keymap
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include <behaviour.dtsi>
#include <dt-bindings/zmk/keys.h>

/{
keymap{
compatible = "zmk,keymap";

default_layer {
bindings = <
&kp F &kp S &kp T &kp P &kp H &kp * &kp * &kp F &kp P &kp L &kp T &kp D
&kp F &kp S &kp K &kp W &kp R &kp * &kp * &kp R &kp B &kp G &kp S &kp Z
&kp Q &kp A &kp O &kp E &kp U &kp Q
>;
};
};
};
44 changes: 44 additions & 0 deletions config/boards/shields/steno/steno.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#include <dt-bindings/zmk/matrix_transform.h>

/ {
chosen {
zmk,kscan = &default_kscan;
zmk, matrix_transform = &default_transform;
};

default_kscan: kscan {
compatible = "zmk, kscan-gpio-matrix";
lable = "default_kscan";
diode-direction = "col2row";

row-gpios = <&blackpill 13 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>,
<&blackpill 12 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>,
<&blackpill 11 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;


col-gpios = <&blackpill 26 (GPIO_ACTIVE_HIGH)>,
<&blackpill 27 (GPIO_ACTIVE_HIGH)>,
<&blackpill 28 (GPIO_ACTIVE_HIGH)>,
<&blackpill 29 (GPIO_ACTIVE_HIGH)>,
<&blackpill 30 (GPIO_ACTIVE_HIGH)>,
<&blackpill 31 (GPIO_ACTIVE_HIGH)>,
<&blackpill 21 (GPIO_ACTIVE_HIGH)>,
<&blackpill 20 (GPIO_ACTIVE_HIGH)>,
<&blackpill 19 (GPIO_ACTIVE_HIGH)>,
<&blackpill 18 (GPIO_ACTIVE_HIGH)>,
<&blackpill 17 (GPIO_ACTIVE_HIGH)>,
<&blackpill 16 (GPIO_ACTIVE_HIGH)>;
};

default_transform: matrix_transform {
compatible = "zmk, matrix-matrix_transform";
row = <3>;
column = <12>;

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(1,0) RC(1,1) RC(1,2) RC(1,3) RC(1,4) RC(1,5) RC(1,6) RC(1,7) RC(1,8) RC(1,9) RC(1,10) RC(1,11)
RC(2,3) RC(2,4) RC(2,5) RC(2,6) RC(2,7) RC(2,8)
>;
};
};
9 changes: 0 additions & 9 deletions config/two_percent_milk.conf

This file was deleted.

22 changes: 0 additions & 22 deletions config/two_percent_milk.keymap

This file was deleted.

0 comments on commit e8aa7fb

Please sign in to comment.