You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
468 B
27 lines
468 B
3 years ago
|
/*
|
||
|
* Copyright (c) 2021 The ZMK Contributors
|
||
|
*
|
||
|
* SPDX-License-Identifier: MIT
|
||
|
*/
|
||
|
|
||
|
/dts-v1/;
|
||
|
#include "nice_nano.dtsi"
|
||
|
|
||
|
/ {
|
||
|
ext-power {
|
||
|
compatible = "zmk,ext-power-generic";
|
||
|
label = "EXT_POWER";
|
||
|
control-gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
|
||
|
init-delay-ms = <10>;
|
||
|
};
|
||
|
|
||
|
vbatt {
|
||
|
compatible = "zmk,battery-voltage-divider";
|
||
|
label = "BATTERY";
|
||
|
io-channels = <&adc (0x0D - 1)>;
|
||
|
// Multiply ADC result by 5
|
||
|
full-ohms = <5>;
|
||
|
output-ohms = <1>;
|
||
|
};
|
||
|
};
|