Skip to content

Commit

Permalink
feat(boards): Add posix MiniVan studio tester
Browse files Browse the repository at this point in the history
* New shield to easily test studio using the `native_posix_64` board.
  • Loading branch information
petejohanson committed Aug 10, 2024
1 parent c0eec26 commit 07db402
Show file tree
Hide file tree
Showing 5 changed files with 413 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/boards/shields/minivan_studio_tester/Kconfig.defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2024 The ZMK Contributors
# SPDX-License-Identifier: MIT

if SHIELD_MINIVAN_STUDIO_TESTER

config ZMK_KEYBOARD_NAME
default "MiniVan Tester"

endif
9 changes: 9 additions & 0 deletions app/boards/shields/minivan_studio_tester/Kconfig.shield
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2024 The ZMK Contributors
# SPDX-License-Identifier: MIT

config SHIELD_MINIVAN_STUDIO_TESTER
def_bool $(shields_list_contains,minivan_studio_tester)
select ZMK_STUDIO
select UART_NATIVE_POSIX_PORT_1_ENABLE
select CBPRINTF_LIBC_SUBSTS
select ZMK_STUDIO_TRANSPORT_UART
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_ZMK_STUDIO_LOCKING=n
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/*
* Copyright (c) 2024 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/

#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>

#define NAV_L 1
#define NUM_L 2
#define MED_L 3
#define FUN_L 4

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

base_layer {
display-name = "Base";
bindings = <
&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BKSP
&gresc &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp RET
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp QUOT
&kp LGUI &kp LALT &mo NAV_L &kp LEFT_SHIFT &kp SPACE &mo NUM_L &kp LALT &kp RCTL
>;
};

nav_layer {
display-name = "Nav";
bindings = <
&trans &trans &trans &trans &trans &trans &trans &kp GRAVE &kp TILDE &trans &trans &kp DEL
&trans &trans &trans &trans &trans &trans &trans &kp LARW &kp DARW &kp UARW &kp RARW &trans
&trans &trans &trans &trans &trans &trans &trans &kp HOME &kp PG_DN &kp PG_UP &kp END &trans
&trans &trans &trans &trans &trans &trans &trans &trans
>;
};

num_layer {
display-name = "Num";
bindings = <
&trans &trans &kp N7 &kp N8 &kp N9 &kp RBKT &trans &trans &trans &trans &trans &trans
&trans &kp MINUS &kp N4 &kp N5 &kp N6 &kp EQUAL &trans &trans &trans &trans &trans &trans
&kp PLUS &kp N1 &kp N2 &kp N3 &kp N0 &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &kp ESC &trans &trans
>;
};

med_layer {
display-name = "Sym";
bindings = <
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans
>;
};
};
};
Loading

0 comments on commit 07db402

Please sign in to comment.