diff options
| author | Carey <kcarey1@APC02S226SG8WM.local> | 2020-10-28 07:40:54 -0500 |
|---|---|---|
| committer | Carey <kcarey1@APC02S226SG8WM.local> | 2020-10-28 07:40:54 -0500 |
| commit | 99ad9cbdefee94007511ec2e53437951cf0e4305 (patch) | |
| tree | 168c9886965ad5e5f36f4fbbad55cd5f70c5124e /app/boards/arm/nice_nano/nice_nano.dts | |
| parent | 6aae66782682ffcabf953d785308b83ee16fc3b6 (diff) | |
| parent | cb922fd8a2a3eddcbece040ca3727d43b171ffe3 (diff) | |
Merge https://github.com/zmkfirmware/zmk into refactor_kconfig
Diffstat (limited to 'app/boards/arm/nice_nano/nice_nano.dts')
| -rw-r--r-- | app/boards/arm/nice_nano/nice_nano.dts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/boards/arm/nice_nano/nice_nano.dts b/app/boards/arm/nice_nano/nice_nano.dts index 0538b1d..1819541 100644 --- a/app/boards/arm/nice_nano/nice_nano.dts +++ b/app/boards/arm/nice_nano/nice_nano.dts @@ -34,6 +34,18 @@ label = "EXT_POWER"; control-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; + + vbatt { + compatible = "zmk,battery-voltage-divider"; + label = "VOLTAGE_DIVIDER"; + io-channels = <&adc 2>; + output-ohms = <2000000>; + full-ohms = <(2000000 + 806000)>; + }; +}; + +&adc { + status = "okay"; }; &gpiote { |
