Hey everyone! I am trying to get my custom Macropad to report the battery power. I'd like to see the power in PopOs power menu, or by doing upower from the terminal. I am using a nice_nano v2 and running PopOs (fairly similar to Ubuntu).
Following this https://zmk.dev/docs/config/battery I have added CONFIG_ZMK_BLE=y to my conf file. Here is my complete .conf File https://pastebin.com/9QYG7rUu.
According to https://zmk.dev/docs/features/battery I have to enable a sensor by adding it to my .dts file. I dont have a .dts since i couldnt get it to work with it. Pretty much all my configuration is in my .overlay here https://pastebin.com/EmNhtsRg.
A few points that might help you help me:
- I am fairly inexperienced using git, and couldnt really get the zmk-config route to work.
- I cloned the zmk Repo, added my board as a folder there and am builindg locally using the west commands.
- I want to build a custom split keyboard and am using a Macropad as a lil prototype.
- I understood that .dts files are not needed when the keyboard isn't split, so I dont have one but the doc for battery reference the .dts file.
- The Macropad works - It connects to the machine without a problem, the keys/layers work as expected. The Encoder works, it just runs out of power without me noticing haha.
See the battery level feature page for more details on configuring a battery sensor.
If your keyboard has a battery sensor, ZMK will report its battery level to the connected bluetooth host and show it on the keyboard's display, if it has one.