Skip to content

Commit

Permalink
off
Browse files Browse the repository at this point in the history
  • Loading branch information
daysgobye committed Nov 30, 2023
1 parent b3fd112 commit 9479ce8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 144 deletions.
5 changes: 3 additions & 2 deletions config/boards/arm/wubbo/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
if BOARD_WUBBO_LEFT

config ZMK_SPLIT_BLE_ROLE_CENTRAL
default y
default n

endif


config ZMK_SPLIT
default y

config ZMK_KEYBOARD_NAME
default "Wubbo"
Expand Down
146 changes: 4 additions & 142 deletions config/boards/arm/wubbo/wubbo_right.dts
Original file line number Diff line number Diff line change
@@ -1,143 +1,5 @@
/*
* Copyright (c) 2022 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/
#include "wubbo_left.dts"

/dts-v1/;
#include <nordic/nrf52840_qiaa.dtsi>
#include <dt-bindings/zmk/matrix_transform.h>

/ {
model = "wubbo";
compatible = "wubbo";

chosen {
zephyr,code-partition = &code_partition;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zmk,kscan = &kscan;
zmk,matrix_transform = &ortho_transform;
zmk,battery = &vbatt;
zephyr,console = &cdc_acm_uart0;
};

aliases {
led0 = &blue_led;
};

leds {
compatible = "gpio-leds";
blue_led: led_0 {
gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
label = "Blue LED";
};
};

vbatt: vbatt {
compatible = "zmk,battery-nrf-vddh";
label = "BATTERY";
};

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

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(0,10) RC(0,11)
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(1,10) RC(1,11)
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(2,10) RC(2,11)
RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(3,6) RC(3,7) RC(3,8) RC(3,9)
>;
};



kscan: kscan {
compatible = "zmk,kscan-gpio-matrix";
label = "KSCAN";
debounce-press-ms = <1>;
debounce-release-ms = <5>;

diode-direction = "col2row";

col-gpios
= <&gpio0 8 (GPIO_ACTIVE_HIGH)>
, <&gpio0 11 (GPIO_ACTIVE_HIGH)>
, <&gpio1 8 (GPIO_ACTIVE_HIGH)>
, <&gpio0 6 (GPIO_ACTIVE_HIGH)>
, <&gpio0 7 (GPIO_ACTIVE_HIGH)>
, <&gpio0 26 (GPIO_ACTIVE_HIGH)>
, <&gpio0 4 (GPIO_ACTIVE_HIGH)>
, <&gpio0 12 (GPIO_ACTIVE_HIGH)>
, <&gpio0 16 (GPIO_ACTIVE_HIGH)>
, <&gpio1 9 (GPIO_ACTIVE_HIGH)>
, <&gpio0 22 (GPIO_ACTIVE_HIGH)>
, <&gpio1 0 (GPIO_ACTIVE_HIGH)>
;
row-gpios
= <&gpio0 23 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&gpio0 17 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&gpio0 13 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
, <&gpio0 14 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
;
};
};

&adc {
status = "okay";
};

&gpiote {
status = "okay";
};

&gpio0 {
status = "okay";
};

&gpio1 {
status = "okay";
};


&usbd {
status = "okay";
cdc_acm_uart0: cdc_acm_uart0 {
compatible = "zephyr,cdc-acm-uart";
label = "CDC_ACM_0";
};
};


&flash0 {
/*
* For more information, see:
* http://docs.zephyrproject.org/latest/devices/dts/flash_partitions.html
*/
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

sd_partition: partition@0 {
label = "mbr";
reg = <0x00000000 0x00001000>;
};
code_partition: partition@1000 {
label = "code_partition";
reg = <0x00001000 0x000d3000>;
};

storage_partition: partition@d4000 {
label = "storage";
reg = <0x000d4000 0x00020000>;
};

boot_partition: partition@f4000 {
label = "adafruit_boot";
reg = <0x000f4000 0x0000c000>;
};
};
};
&ortho_transform {
col-offset=<0>
};

0 comments on commit 9479ce8

Please sign in to comment.