#Whats the requirements to show layer name instead of number on OLED?

1 messages · Page 1 of 1 (latest)

rose ridge
#

I'm trying to get layer names to display on my oled and for some reason it always just shows "1", im probably missunderstanding something obvious.
I've added label = "text"; but makes no difference 😦 help?
https://github.com/d1One/ZMK_TestKit

#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/outputs.h>
#define DEFAULT 0
#define NAVI    1
#define NONE 0

&encoder_1 {
    status = "okay";
};

/ {
    sensors {
        compatible = "zmk,keymap-sensors";
        sensors = <&encoder_1>;
        triggers-per-rotation = <30>;
    };
    keymap {
        compatible = "zmk,keymap";
        default_layer {
            label = "def";
            bindings = <
                &tog NAVI       &kp KP_DIVIDE   &kp KP_MULTIPLY &kp KP_MINUS
                &kp NUMBER_7    &kp NUMBER_8    &kp NUMBER_9    &kp KP_PLUS
                &kp NUMBER_4    &kp NUMBER_5    &kp NUMBER_6    &kp KP_PLUS
                &kp NUMBER_1    &kp NUMBER_2    &kp NUMBER_3    &kp RETURN
                &kp NUMBER_0    &kp NUMBER_0    &kp DOT         &kp RETURN
            >;
            sensor-bindings = <&inc_dec_kp C_VOLUME_UP C_VOLUME_DOWN>;
        };
         navi_layer {
            label = "Navi";
             bindings = <
                &tog NAVI       &kp KP_DIVIDE   &kp KP_MULTIPLY &kp KP_MINUS
                &kp HOME        &kp UP          &kp PAGE_UP     &kp KP_PLUS
                &kp LEFT        &none           &kp RIGHT       &kp KP_PLUS
                &kp END         &kp DOWN        &kp PAGE_DOWN   &kp RETURN
                &kp INSERT      &kp INSERT      &kp DEL         &kp RETURN
            >;
            sensor-bindings = <&inc_dec_kp C_VOLUME_UP C_VOLUME_DOWN>;
         };
    };
};```
formal surge
#

looks like that should work. link to your config repo?

formal surge
formal surge
#

nm. i see you put that in your overlay.

late isle
#

Are you sure it is the layer widget and not e.g. BLE profile that shows 1?

rose ridge
#

Humm not sure

#

I found the issue, i declared to OLED high a higher pixel count than it has

#
height = <64>;```
#

On the .overlay, It's 32, not 64. Fixed it, thanks guys