feat(nrf52840 m.2): add battery definitions

This commit is contained in:
KemoNine 2021-02-01 23:00:20 +00:00
parent c80fc1f87c
commit 2e825908dc
2 changed files with 11 additions and 1 deletions

View file

@ -25,4 +25,7 @@ config ZMK_BLE
config ZMK_USB
default y
config ZMK_BATTERY_VOLTAGE_DIVIDER
default y
endif # BOARD_NRF52840_M2

View file

@ -17,6 +17,14 @@
zephyr,flash = &flash0;
};
vbatt {
compatible = "zmk,battery-voltage-divider";
label = "BATTERY";
io-channels = <&adc 0>;
output-ohms = <1000000>;
full-ohms = <(1000000 + 1000000)>;
};
leds {
compatible = "gpio-leds";
red_led: led_1 {
@ -119,7 +127,6 @@
};
};
&flash0 {
/*
* For more information, see: