Skip to content

Commit

Permalink
first files set up
Browse files Browse the repository at this point in the history
  • Loading branch information
Zack Forbing committed Jun 3, 2024
1 parent 92df780 commit e284c2a
Show file tree
Hide file tree
Showing 6 changed files with 93 additions and 0 deletions.
9 changes: 9 additions & 0 deletions boards/shields/alphalpha_plus/Kconfig.defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2020 The ZMK Contributors
# SPDX-License-Identifier: MIT

if SHIELD_ALPHALPHA_PLUS

config ZMK_KEYBOARD_NAME
default "Alphalpha+"

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

config SHIELD_ALPHALPHA_PLUS
def_bool $(shields_list_contains,alphalpha_plus)
21 changes: 21 additions & 0 deletions boards/shields/alphalpha_plus/alphalpha_plus.keymap
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.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 | , | . |
// | TAB | SPACE | BSPC | DEL |
bindings = <
&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P
&kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SQUOT
&kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT
&kp TAB &kp SPACE &kp BSPC &kp RALT
>;
};
};
};
46 changes: 46 additions & 0 deletions boards/shields/alphalpha_plus/alphalpha_plus.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/ {
chosen {
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
};

default_transform: keymap_transform_0 {
compatible = "zmk,matrix-transform";
columns = <5>;
rows = <8>;
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,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,2) RC(3,4) RC(3,6) RC(3,8)
>;
};

kscan0: kscan_0 {
compatible = "zmk,kscan-gpio-matrix";
diode-direction = "row2col";
wakeup-source;

col-gpios
= <&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 10 GPIO_ACTIVE_HIGH>
, <&pro_micro 16 GPIO_ACTIVE_HIGH>
, <&pro_micro 14 GPIO_ACTIVE_HIGH>
, <&pro_micro 15 GPIO_ACTIVE_HIGH>
, <&pro_micro 18 GPIO_ACTIVE_HIGH>
, <&pro_micro 19 GPIO_ACTIVE_HIGH>
;

row-gpios
= <&pro_micro 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&pro_micro 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&pro_micro 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&pro_micro 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
;
};
};

K302, K303, K304, K305, K306, K307, K308
9 changes: 9 additions & 0 deletions boards/shields/alphalpha_plus/alphalpha_plus.zmk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
file_format: "1"
id: alphalpha_plus
name: Alphalpha+
type: shield
url: https://github.com/subottimale/alphalpha_plus/
requires: [pro_micro]
exposes: [i2c_oled]
features:
- keys
3 changes: 3 additions & 0 deletions build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@
# artifact-name: corne_left_with_logging
#
---
include:
- board: nice_nano_v2
shield: alphalpha_plus

0 comments on commit e284c2a

Please sign in to comment.