Files
zmk/docs/docs/config/backlight.md
Joel Spadin ae78aa247a feat(docs): Update power and lighting config pages
Moved battery configuration to its own page to match the feature page.

Documented that external power is disabled when in sleep mode.

Clarified that the *_START configs apply on first boot, and any changes
after that are persisted.
2022-07-03 18:55:54 +01:00

2.2 KiB

title, sidebar_label
title sidebar_label
Backlight Configuration Backlight

See the backlight feature page for more details, including instructions for adding backlight support to a board.

See Configuration Overview for instructions on how to change these settings.

Kconfig

Definition file: zmk/app/Kconfig

Option Type Description Default
CONFIG_ZMK_BACKLIGHT bool Enables LED backlight n
CONFIG_ZMK_BACKLIGHT_BRT_STEP int Brightness step in percent 20
CONFIG_ZMK_BACKLIGHT_BRT_START int Default brightness in percent 40
CONFIG_ZMK_BACKLIGHT_ON_START bool Default backlight state y
CONFIG_ZMK_BACKLIGHT_AUTO_OFF_IDLE bool Turn off backlight when keyboard goes into idle state n
CONFIG_ZMK_BACKLIGHT_AUTO_OFF_USB bool Turn off backlight when USB is disconnected n

:::note The *_START settings only determine the initial backlight state. Any changes you make with the backlight behavior are saved to flash after a one minute delay and will be used after that. :::

Devicetree

Applies to: /chosen node

Property Type Description
zmk,backlight path The node for the backlight LED driver to use

See the Zephyr devicetree bindings for LED drivers:

See the backlight feature page for examples of the properties that must be set to enable backlighting.