Skip to content

Commit

Permalink
add i2c config for left side
Browse files Browse the repository at this point in the history
  • Loading branch information
mike1808 committed Jun 21, 2024
1 parent 73cd062 commit 93e7a24
Show file tree
Hide file tree
Showing 6 changed files with 126 additions and 3 deletions.
6 changes: 6 additions & 0 deletions config/boards/shields/hillside_view/hillside_view.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,9 @@ CONFIG_ZMK_DISPLAY_BLANK_ON_IDLE=n
# CONFIG_ZMK_RGB_UNDERGLOW_BRT_START=60
# CONFIG_ZMK_RGB_UNDERGLOW_ON_START=y

CONFIG_I2C=y
CONFIG_PINNACLE=y
CONFIG_NFCT_PINS_AS_GPIOS=y
CONFIG_ZMK_MOUSE=y
CONFIG_INPUT=y
CONFIG_INPUT_PINNACLE=y
43 changes: 43 additions & 0 deletions config/boards/shields/hillside_view/hillside_view.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,21 @@ RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC
low-power-enable;
};
};

i2c0_default: i2c0_default {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 0, 24)>,
<NRF_PSEL(TWIM_SCL, 1, 0)>;
};
};

i2c0_sleep: i2c0_sleep {
group1 {
psels = <NRF_PSEL(TWIM_SDA, 0, 24)>,
<NRF_PSEL(TWIM_SCL, 1, 0)>;
low-power-enable;
};
};
};

&spi3 {
Expand All @@ -147,6 +162,34 @@ RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC
};
};

&i2c0 {
status = "disabled";
glidepoint: glidepoint@2a {
compatible = "cirque,pinnacle";
reg = <0x2a>;
status = "disabled";
dr-gpios = <&gpio1 2 (GPIO_ACTIVE_HIGH)>;

sensitivity = "4x";
// sleep;
no-taps;
};

// Rotation config, from Pete
// This will change in the future
// https://discord.com/channels/719497620560543766/845285481888743434/1206407883777114182
input_config {
compatible = "zmk,input-configs";

cirque_config {
device = <&glidepoint>;
xy-swap;
y-invert;
x-invert;
};
};
};

nice_view_spi: &spi0 {
compatible = "nordic,nrf-spim";
pinctrl-0 = <&spi0_default>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,10 @@
&nice_view {
status = "okay";
};

&i2c0 {
status = "okay";
glidepoint: glidepoint@2a {
status = "okay";
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@
&nice_view {
status = "okay";
};

9 changes: 9 additions & 0 deletions config/hillside_view.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,12 @@ CONFIG_ZMK_SLEEP=y
CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=900000

CONFIG_ZMK_BLE_EXPERIMENTAL_CONN=y



CONFIG_I2C=y
CONFIG_PINNACLE=y
CONFIG_NFCT_PINS_AS_GPIOS=y
CONFIG_ZMK_MOUSE=y
CONFIG_INPUT=y
CONFIG_INPUT_PINNACLE=y
63 changes: 60 additions & 3 deletions config/west.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,68 @@
manifest:
remotes:
- name: zmkfirmware
url-base: https://github.com/mike1808
url-base: https://github.com/zmkfirmware
- name: badjeff
url-base: https://github.com/badjeff
projects:
# - name: zmk
# remote: zmkfirmware
# revision: main
# import: app/west.yml
- name: zmk
remote: zmkfirmware
revision: main
remote: badjeff
revision: feat/pointers-move-scroll
import: app/west.yml
- name: zmk-adns9800-driver
remote: badjeff
revision: main
- name: zmk-pmw3610-driver
remote: badjeff
revision: main
- name: zmk-analog-input-driver
remote: badjeff
revision: main
- name: zmk-behavior-insomnia
remote: badjeff
revision: main
- name: zmk-behavior-key-tempo
remote: badjeff
revision: main
- name: zmk-behavior-mouse-key-toggle
remote: badjeff
revision: main
- name: zmk-input-behavior-listener
remote: badjeff
revision: main
- name: zmk-output-behavior-listener
remote: badjeff
revision: main
- name: zmk-hid-io
remote: badjeff
revision: main
- name: zmk-split-peripheral-input-relay
remote: badjeff
revision: main
- name: zmk-split-peripheral-output-relay
remote: badjeff
revision: main
- name: zmk-split-peripheral-bonding-tweak
remote: badjeff
revision: main
- name: zmk-drv2605-driver
remote: badjeff
revision: main
- name: zmk-kscan-blackout
remote: badjeff
revision: main
# - name: zmk-behavior-set-default-layer
# remote: badjeff
# revision: main
- name: kb_zmk_ps2_mouse_trackpoint_driver
remote: badjeff
revision: main
- name: cirque-input-module
remote: badjeff
revision: main
self:
path: config

0 comments on commit 93e7a24

Please sign in to comment.