forked from kofal.net/zmk
Refactor driver to use Sensor API
This commit is contained in:
@@ -29,6 +29,14 @@
|
||||
};
|
||||
};
|
||||
|
||||
vbatt {
|
||||
compatible = "zmk,battery-voltage-divider";
|
||||
label = "VOLTAGE_DIVIDER";
|
||||
io-channels = <&adc 7>;
|
||||
output-ohms = <2000000>;
|
||||
full-ohms = <(2000000 + 806000)>;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
&gpio0 {
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
|
||||
vbatt {
|
||||
compatible = "zmk,battery-voltage-divider";
|
||||
label = "VOLTAGE_DIVIDER";
|
||||
io-channels = <&adc 2>;
|
||||
output-ohms = <2000000>;
|
||||
full-ohms = <(2000000 + 806000)>;
|
||||
|
||||
@@ -26,6 +26,14 @@
|
||||
};
|
||||
};
|
||||
|
||||
vbatt {
|
||||
compatible = "zmk,battery-voltage-divider";
|
||||
label = "VOLTAGE_DIVIDER";
|
||||
io-channels = <&adc 2>;
|
||||
output-ohms = <2000000>;
|
||||
full-ohms = <(2000000 + 820000)>;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
&gpio0 {
|
||||
|
||||
Reference in New Issue
Block a user