Skip to content

Commit

Permalink
testing firmware
Browse files Browse the repository at this point in the history
  • Loading branch information
zoovasoup committed Aug 11, 2024
1 parent 2bd4b54 commit c7a4178
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 32 deletions.
6 changes: 6 additions & 0 deletions boards/shields/waffle-34k/Kconfig.defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
if SHIELD_WAFFLE-34k

config ZMK_KEYBOARD_NAME
default "zva-waffle-34k"

endif
2 changes: 2 additions & 0 deletions boards/shields/waffle-34k/Kconfig.shield
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
config SHIELD_WAFFLE-34k
def_bool $(shields_list_contains,waffle-34k)
24 changes: 24 additions & 0 deletions boards/shields/waffle-34k/waffle-34k.keymap
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/mouse.h>

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

default_layer {
// -----------------------------------------------------------------------------------------
// | Q | W | E | R | T | | Y | U | I | O | P |
// | A | S | D | F | G | | H | J | K | L | ; |
// | Z | X | C | V | B | | N | M | , | . | / |
// | GUI | LWR | SPC | | ENT | RSE | ALT |
bindings = <
&kp Q &kp W &kp F &kp P &kp B &kp J &kp L &kp U &kp Y &kp SEMI
&kp A &kp R &kp S &kp T &kp G &kp N &kp M &kp E &kp I &kp O
&kp X &kp C &kp D &kp V &kp Z &kp K &kp H &kp COMMA &kp DOT &kp FSLH
&kp LGUI &mo 1 &kp SPACE &kp RET &mo 2 &kp RALT
>;
};
};
};
43 changes: 43 additions & 0 deletions boards/shields/waffle-34k/waffle-34k.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#include <dt-bindings/zmk/matrix_transform.h>

/ {
chosen {
zmk,kscan = &kscan;
zmk,matrix_transform = &transform;
};

kscan: kscan {
compatible = "zmk,kscan-gpio-matrix";
label = "KSCAN";
diode-direction = "col2row";

row-gpios = <&pro_micro 18 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>,
<&pro_micro 19 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>,
<&pro_micro 20 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>,
<&pro_micro 21 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;

col-gpios = <&pro_micro 1 (GPIO_ACTIVE_HIGH)>,
<&pro_micro 0 (GPIO_ACTIVE_HIGH)>,
<&pro_micro 2 (GPIO_ACTIVE_HIGH)>,
<&pro_micro 3 (GPIO_ACTIVE_HIGH)>,
<&pro_micro 4 (GPIO_ACTIVE_HIGH)>,
<&pro_micro 5 (GPIO_ACTIVE_HIGH)>,
<&pro_micro 6 (GPIO_ACTIVE_HIGH)>,
<&pro_micro 7 (GPIO_ACTIVE_HIGH)>,
<&pro_micro 8 (GPIO_ACTIVE_HIGH)>,
<&pro_micro 9 (GPIO_ACTIVE_HIGH)>;
};

transform: matrix_transform {
compatible = "zmk,matrix-transform";
rows = <4>;
columns = <10>;

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(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(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC(2,6) RC(2,7) RC(2,8) RC(2,9)
RC(3,3) RC(3,4) RC(3,5) RC(3,6)
>;
};
};
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: nice_nano_v2
shield: two_percent_milk
shield: waffle-34k
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.

5 changes: 5 additions & 0 deletions config/waffle-34k.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Make Bluetooth stronger
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y

# Turn on logging, and set ZMK logging to debug output
CONFIG_ZMK_USB_LOGGING=y

0 comments on commit c7a4178

Please sign in to comment.