zmk icon indicating copy to clipboard operation
zmk copied to clipboard

LED array driver for simple indications

Open danricho opened this issue 3 years ago • 1 comments

Hi everyone, I'm still pretty new to ZMK so I hope I'm not duplicating.

I'm designing a shield and I'm thinking about additional features I'd like to add to it. I'd like to add an array of LEDs (5-10 long) which could be configured in ZMK to show various things (triggered by keypress defined in the keymap).

The types of things I'd like to be able to show are:

  • Battery Level (eg: 40% battery -> 11000)
  • Active BLE profile (eg: 4th BLE profile active -> 00010)
  • Active Layer (eg: 2nd Layer active -> 11000)

For energy preservation there would obviously be a timeout on the LEDS being lit after they are triggered.

For reference, I asked on Discord and the following examples were shared (thanks!):

danricho avatar Aug 22 '22 22:08 danricho

i wlll add #999 to this as resource

alinelena avatar Aug 23 '22 05:08 alinelena

@danricho I just posted a pull request that does that #1475. if you really need it and my code does not makes it to the main branch, then you can always set your west file pointing at my branch. :)

Xoffio avatar Sep 30 '22 00:09 Xoffio