Veethree D7 SDK
Loading...
Searching...
No Matches
vsdk::sys::backlight_manager Class Reference

Detailed Description

The backlight_manager class.

This class is responsible for setting the D7 panel backlight to a desired level.

void fn()
{
using namespace vsdk::sys;
using namespace vsdk;
utils::print("backlight set to {}\n", backlight_manager::brightness());
}
static void set_brightness(uint32_t value)
Set the brightness level.
static uint32_t brightness()
Get the current brightness level.
backlight_manager interface.
Include this file to your file so you have access to fmtlib header-only implementation.
void print(fmt::format_string< Args... > fmt, Args &&...args) noexcept
Exception-safe fmt::print wrapper.
Definition fmt_wrapper.h:26
Any entities that belong to the system library.
Any entities that belong to the Veethree SDK libraries.
Definition can_adapter.h:11

#include <display_backlight.h>

Static Public Member Functions

static uint32_t brightness ()
 Get the current brightness level.
static void set_brightness (uint32_t value)
 Set the brightness level.

Detailed Description

The backlight_manager class.

This class is responsible for setting the D7 panel backlight to a desired level.

void fn()
{
using namespace vsdk::sys;
using namespace vsdk;
utils::print("backlight set to {}\n", backlight_manager::brightness());
}

Member Function Documentation

◆ brightness()

uint32_t vsdk::sys::backlight_manager::brightness ( )
static

Get the current brightness level.

Returns
Current brightness level (0-100).

◆ set_brightness()

void vsdk::sys::backlight_manager::set_brightness ( uint32_t value)
static

Set the brightness level.

Parameters
valueThe new brightness level (0-100).

The documentation for this class was generated from the following file: