Skip to content

Commit 604df89

Browse files
committed
feat(firmware): 풀업저항 소프트웨어로 처리 저항 추가로 달 필요 없음
1 parent 0009c8b commit 604df89

File tree

2 files changed

+35
-6
lines changed

2 files changed

+35
-6
lines changed

config/corne.conf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# CONFIG_ZMK_SLEEP=y
2-
# CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=1800000
1+
CONFIG_ZMK_SLEEP=y
2+
CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=900000
3+
34
CONFIG_ZMK_BLE_EXPERIMENTAL_FEATURES=y
45
CONFIG_SPI=n
56

config/corne.dtsi

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,38 @@
99
#define ZMK_MOUSE_DEFAULT_SCRL_VAL 20 // 10
1010

1111
#include <dt-bindings/zmk/mouse.h>
12-
//#include <behaviors/mouse_keys.dtsi>
1312

13+
&pinctrl {
14+
i2c1_default:i2c1_default {
15+
group1 {
16+
psels = <NRF_PSEL(TWIM_SDA, 0, 17)>,
17+
<NRF_PSEL(TWIM_SCL, 0, 20)>;
18+
// bias-disable;
19+
bias-pull-up;
20+
};
21+
};
22+
i2c1_sleep:i2c1_sleep {
23+
group1 {
24+
psels = <NRF_PSEL(TWIM_SDA, 0, 17)>,
25+
<NRF_PSEL(TWIM_SCL, 0, 20)>;
26+
// bias-disable;
27+
bias-pull-up;
28+
low-power-enable;
29+
};
30+
};
1431

15-
&pro_micro_i2c {
32+
};
33+
34+
&i2c1{
35+
status="disabled";
36+
compatible = "nordic,nrf-twi";
37+
pinctrl-0 = <&i2c1_default>;
38+
pinctrl-1 = <&i2c1_sleep>;
39+
pinctrl-names = "default", "sleep";
40+
};
41+
42+
43+
&i2c1 {
1644
status = "okay";
1745
clock-frequency = < 400000 >;
1846
cirque: cirque@2a {
@@ -24,7 +52,7 @@
2452
//sleep;
2553
// no-taps;
2654
};
27-
};
55+
};
2856

2957
/ {
3058
chosen {
@@ -66,7 +94,7 @@ 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
6694

6795
kscan0: kscan {
6896
compatible = "zmk,kscan-gpio-matrix";
69-
97+
wakeup-source;
7098
diode-direction = "col2row";
7199
row-gpios
72100
= <&pro_micro 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>

0 commit comments

Comments
 (0)