388e345c28
battery.c now uses the zmk,battery chosen node to select a battery sensor. Using the node labeled "BATTERY" is maintained for backwards compatibility but is now deprecated. Custom boards should switch to using the chosen node. # Conflicts: # app/boards/arm/bluemicro840/bluemicro840_v1.dts # app/boards/arm/nice60/nice60.dts # app/boards/arm/nrfmicro/nrfmicro_13.dts # Conflicts: # app/boards/arm/bluemicro840/bluemicro840_v1.dts
26 lines
402 B
Text
26 lines
402 B
Text
/*
|
|
* Copyright (c) 2021 The ZMK Contributors
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
/dts-v1/;
|
|
#include "nice_nano.dtsi"
|
|
|
|
/ {
|
|
chosen {
|
|
zmk,battery = &vbatt;
|
|
};
|
|
|
|
ext-power {
|
|
compatible = "zmk,ext-power-generic";
|
|
label = "EXT_POWER";
|
|
control-gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
|
|
init-delay-ms = <50>;
|
|
};
|
|
|
|
vbatt: vbatt {
|
|
compatible = "zmk,battery-nrf-vddh";
|
|
label = "BATTERY";
|
|
};
|
|
};
|