Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add studio and bat config #8

Merged
merged 2 commits into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,11 @@
# artifact-name: corne_left_with_logging
#
---
board: ["seeeduino_xiao_ble"]
shield: ["roBa_R","roBa_L","settings_reset"]
include:
- board: seeeduino_xiao_ble
shield: roBa_R
snippet: studio-rpc-usb-uart
- board: seeeduino_xiao_ble
shield: roBa_L
- board: seeeduino_xiao_ble
shield: settings_reset
68 changes: 66 additions & 2 deletions config/boards/shields/Test/roBa.dtsi
Original file line number Diff line number Diff line change
@@ -1,9 +1,73 @@
#include <dt-bindings/zmk/matrix_transform.h>
#include <physical_layouts.dtsi>

/ {
chosen {
zmk,kscan = &kscan0;
zmk,matrix_transform = &default_transform;
zmk,physical-layout = &roba_physical_layout;
};

roba_physical_layout: roba_physical_layout {
compatible = "zmk,physical-layout";
display-name = "Default";
transform = <&default_transform>;
kscan = <&kscan0>;

keys // w h x y rot rx ry
= <&key_physical_attrs 100 100 0 37 0 0 0>
, <&key_physical_attrs 100 100 100 12 0 0 0>
, <&key_physical_attrs 100 100 200 0 0 0 0>
, <&key_physical_attrs 100 100 300 12 0 0 0>
, <&key_physical_attrs 100 100 400 24 0 0 0>

, <&key_physical_attrs 100 100 800 24 0 0 0>
, <&key_physical_attrs 100 100 900 12 0 0 0>
, <&key_physical_attrs 100 100 1000 0 0 0 0>
, <&key_physical_attrs 100 100 1100 12 0 0 0>
, <&key_physical_attrs 100 100 1200 37 0 0 0>

, <&key_physical_attrs 100 100 0 137 0 0 0>
, <&key_physical_attrs 100 100 100 112 0 0 0>
, <&key_physical_attrs 100 100 200 100 0 0 0>
, <&key_physical_attrs 100 100 300 112 0 0 0>
, <&key_physical_attrs 100 100 400 124 0 0 0>
, <&key_physical_attrs 100 100 500 137 0 0 0>

, <&key_physical_attrs 100 100 700 137 0 0 0>
, <&key_physical_attrs 100 100 800 124 0 0 0>
, <&key_physical_attrs 100 100 900 112 0 0 0>
, <&key_physical_attrs 100 100 1000 100 0 0 0>
, <&key_physical_attrs 100 100 1100 112 0 0 0>
, <&key_physical_attrs 100 100 1200 137 0 0 0>

, <&key_physical_attrs 100 100 0 237 0 0 0>
, <&key_physical_attrs 100 100 100 212 0 0 0>
, <&key_physical_attrs 100 100 200 200 0 0 0>
, <&key_physical_attrs 100 100 300 212 0 0 0>
, <&key_physical_attrs 100 100 400 224 0 0 0>
, <&key_physical_attrs 100 100 500 237 0 0 0>

, <&key_physical_attrs 100 100 700 237 0 0 0>
, <&key_physical_attrs 100 100 800 224 0 0 0>
, <&key_physical_attrs 100 100 900 212 0 0 0>
, <&key_physical_attrs 100 100 1000 200 0 0 0>
, <&key_physical_attrs 100 100 1100 212 0 0 0>
, <&key_physical_attrs 100 100 1200 237 0 0 0>

, <&key_physical_attrs 100 100 0 337 0 0 0>
, <&key_physical_attrs 100 100 100 312 0 0 0>
, <&key_physical_attrs 100 100 200 300 0 0 0>
, <&key_physical_attrs 100 100 325 337 0 0 0>
, <&key_physical_attrs 100 100 437 350 1000 437 350>
, <&key_physical_attrs 100 100 550 387 2000 550 387>



, <&key_physical_attrs 100 100 650 387 (-2000) 650 387>
, <&key_physical_attrs 100 100 763 350 (-1000) 0 350>

, <&key_physical_attrs 100 100 1200 337 0 0 0>

;
};

default_transform: keymap_transform_0 {
Expand Down
4 changes: 4 additions & 0 deletions config/boards/shields/Test/roBa_L.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
CONFIG_NFCT_PINS_AS_GPIOS=y
CONFIG_EC11=y
CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y

CONFIG_ZMK_BATTERY_REPORTING=y
CONFIG_ZMK_SPLIT_BLE_CENTRAL_BATTERY_LEVEL_PROXY=y
CONFIG_ZMK_SPLIT_BLE_CENTRAL_BATTERY_LEVEL_FETCHING=y
9 changes: 8 additions & 1 deletion config/boards/shields/Test/roBa_R.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,17 @@ CONFIG_PMW3610_REST1_SAMPLE_TIME_MS=20
CONFIG_PMW3610_POLLING_RATE_125_SW=y
CONFIG_PMW3610_AUTOMOUSE_TIMEOUT_MS=700

CONFIG_PMW3610_MOVEMENT_THRESHOLD=5
CONFIG_PMW3610_MOVEMENT_THRESHOLD=0

CONFIG_PMW3610_SMART_ALGORITHM=y

CONFIG_EC11=y
CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y

CONFIG_ZMK_BATTERY_REPORTING=y
CONFIG_ZMK_SPLIT_BLE_CENTRAL_BATTERY_LEVEL_PROXY=y
CONFIG_ZMK_SPLIT_BLE_CENTRAL_BATTERY_LEVEL_FETCHING=y

CONFIG_ZMK_STUDIO=y
CONFIG_ZMK_STUDIO_LOCKING=n

2 changes: 2 additions & 0 deletions config/boards/shields/Test/roBa_R.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
};
};

&xiao_serial { status = "disabled"; };

&spi0 {
status = "okay";
compatible = "nordic,nrf-spim";
Expand Down
Loading