Skip to content

Commit 768f74e

Browse files
authored
Update cool642tb-mini.dtsi
1 parent 138d5cf commit 768f74e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

config/boards/shields/Test/cool642tb-mini.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,12 @@
112112
triggers-per-rotation = <10>;
113113
};
114114

115+
battery_sensor: battery-sensor {
116+
compatible = "zmk,battery-voltage-divider";
117+
io-channels = <&adc 0>;
118+
full-mv = <2400>; // 満充電2.4V
119+
empty-mv = <2000>; // 空2.0V
120+
};
121+
122+
115123
};

0 commit comments

Comments
 (0)