The latest development version of this page may be more current than this released 2.7.5 version.

CONFIG_SENSOR_SHELL_BATTERY

Enable sensor shell ‘battery’ command

Type: bool

Help

This enables the 'battery' command which reports charging information
in a convenient format. It makes use of a fuel gauge to read its
information.

Direct dependencies

SHELL && SENSOR

(Includes any dependencies from ifs and menus.)

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

At drivers/sensor/Kconfig:31

Included via Kconfig:8Kconfig.zephyr:42drivers/Kconfig:64

Menu path: (Top) → Device Drivers → Sensor Drivers

config SENSOR_SHELL_BATTERY
    bool "Enable sensor shell 'battery' command"
    depends on SHELL && SENSOR
    help
      This enables the 'battery' command which reports charging information
      in a convenient format. It makes use of a fuel gauge to read its
      information.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)