diff options
author | Nick Winans <nick@winans.codes> | 2021-07-24 23:41:03 -0500 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2021-08-02 21:56:53 -0400 |
commit | cf5c56c4f1023c3d6b3911e2f57724e54dfd6842 (patch) | |
tree | 5d367537bef4ec70728ad20c52ae16d3591d1451 /app | |
parent | 1cafbd8069ae98682b4b4849a6dfd281c1370f58 (diff) |
feat(boards): Use the nRF VDDH driver for the nice!nano v2
Diffstat (limited to 'app')
-rw-r--r-- | app/boards/arm/nice_nano/Kconfig.defconfig | 13 | ||||
-rw-r--r-- | app/boards/arm/nice_nano/nice_nano_v2.dts | 6 |
2 files changed, 13 insertions, 6 deletions
diff --git a/app/boards/arm/nice_nano/Kconfig.defconfig b/app/boards/arm/nice_nano/Kconfig.defconfig index 0728bf0..876002b 100644 --- a/app/boards/arm/nice_nano/Kconfig.defconfig +++ b/app/boards/arm/nice_nano/Kconfig.defconfig @@ -25,7 +25,18 @@ config ZMK_BLE config ZMK_USB default y +endif # BOARD_NICE_NANO || BOARD_NICE_NANO_V2 + +if BOARD_NICE_NANO + config ZMK_BATTERY_VOLTAGE_DIVIDER default y -endif # BOARD_NICE_NANO || BOARD_NICE_NANO_V2 +endif # BOARD_NICE_NANO + +if BOARD_NICE_NANO_V2 + +config ZMK_BATTERY_NRF_VDDH + default y + +endif # BOARD_NICE_NANO_V2 diff --git a/app/boards/arm/nice_nano/nice_nano_v2.dts b/app/boards/arm/nice_nano/nice_nano_v2.dts index 7c044b4..b17f478 100644 --- a/app/boards/arm/nice_nano/nice_nano_v2.dts +++ b/app/boards/arm/nice_nano/nice_nano_v2.dts @@ -16,11 +16,7 @@ }; vbatt { - compatible = "zmk,battery-voltage-divider"; + compatible = "zmk,battery-nrf-vddh"; label = "BATTERY"; - io-channels = <&adc (0x0D - 1)>; - // Multiply ADC result by 5 - full-ohms = <5>; - output-ohms = <1>; }; }; |