feat(boards): Add battery sensor for Makerdiary M60 keyboard

Signed-off-by: hyx0329 <hyx0329@163.com>
This commit is contained in:
hyx0329 2022-12-14 17:02:04 +08:00 committed by Pete Johanson
parent 408b87ae7b
commit 4faf6eba97

View file

@ -16,6 +16,7 @@
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,console = &cdc_acm_uart;
zmk,battery = &vbatt;
};
leds {
@ -34,6 +35,14 @@
};
};
vbatt: vbatt {
compatible = "zmk,battery-voltage-divider";
label = "BATTERY";
io-channels = <&adc 0>;
output-ohms = <1000000>;
full-ohms = <(1000000 + 1000000)>;
};
};
&adc {