mirror of
https://github.com/CovidBraceletPrj/CovidBracelet.git
synced 2025-05-15 00:33:34 +02:00
19 lines
454 B
Plaintext
19 lines
454 B
Plaintext
&adc {
|
|
status = "okay";
|
|
};
|
|
|
|
/ {
|
|
vbatt {
|
|
compatible = "voltage-divider";
|
|
io-channels = <&adc 7>;
|
|
output-ohms = <1000000>;
|
|
full-ohms = <(1000000 + 1000000)>;
|
|
};
|
|
|
|
battery {
|
|
compatible = "simple-battery";
|
|
/* state of charge, battery voltage mv pairs
|
|
eyeballed from various small LiPo datasheets */
|
|
soc-voltage-mv = <100 4200 80 3950 60 3800 40 3750 20 3700 0 3000>;
|
|
};
|
|
}; |