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.
1.2 KiB
1.2 KiB
title | sidebar_label |
---|---|
Backlight Behavior | Backlight |
Summary
This page contains backlight behaviors supported by ZMK.
Backlight Action Defines
Backlight actions defines are provided through the dt-bindings/zmk/backlight.h
header,
which is added at the top of the keymap file:
#include <dt-bindings/zmk/backlight.h>
This will allow you to reference the actions defined in this header such as BL_TOG
.
Here is a table describing the action for each define:
Define | Action |
---|---|
BL_TOG |
Toggles the backlight on and off |
BL_ON |
Turn on backlight on and off |
BL_OFF |
Toggles the backlight feature on and off |
BL_INC |
Increase backlight brightness |
BL_DEC |
Decrease backlight brightness |
Behavior Binding
- Reference:
&bl
- Parameter #1: The backlight action define, e.g.
BL_TOG
orBL_INC
Examples
-
Toggle backlight on/off
&bl BL_TOG
-
Increase backlight brightness
&bl BL_INC