feat(boards): Use the nRF VDDH driver for the nice!nano v2
This commit is contained in:
parent
1cafbd8069
commit
cf5c56c4f1
2 changed files with 13 additions and 6 deletions
|
@ -25,7 +25,18 @@ config ZMK_BLE
|
||||||
config ZMK_USB
|
config ZMK_USB
|
||||||
default y
|
default y
|
||||||
|
|
||||||
|
endif # BOARD_NICE_NANO || BOARD_NICE_NANO_V2
|
||||||
|
|
||||||
|
if BOARD_NICE_NANO
|
||||||
|
|
||||||
config ZMK_BATTERY_VOLTAGE_DIVIDER
|
config ZMK_BATTERY_VOLTAGE_DIVIDER
|
||||||
default y
|
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
|
||||||
|
|
|
@ -16,11 +16,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
vbatt {
|
vbatt {
|
||||||
compatible = "zmk,battery-voltage-divider";
|
compatible = "zmk,battery-nrf-vddh";
|
||||||
label = "BATTERY";
|
label = "BATTERY";
|
||||||
io-channels = <&adc (0x0D - 1)>;
|
|
||||||
// Multiply ADC result by 5
|
|
||||||
full-ohms = <5>;
|
|
||||||
output-ohms = <1>;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue