Exddcutil.VCP (Exddcutil v0.1.0)

View Source

VCP (Virtual Control Panel) code constants and utilities for DDC/CI commands.

This module provides constants for common VCP feature codes and helper functions to convert between different code representations.

Summary

Functions

VCP code for blue gain/drive (0x1A)

VCP code for brightness control (0x10)

VCP code for color preset/temperature (0x14)

VCP code for contrast control (0x12)

VCP code for display mode (0xDC)

VCP code for green gain/drive (0x18)

VCP code for input source selection (0x60)

VCP code for red gain/drive (0x16)

VCP code for screen orientation (0xAA)

Converts a VCP code to the argument format expected by ddcutil.

Converts a VCP value to the argument format expected by ddcutil.

Functions

blue()

VCP code for blue gain/drive (0x1A)

brightness()

VCP code for brightness control (0x10)

color_preset()

VCP code for color preset/temperature (0x14)

contrast()

VCP code for contrast control (0x12)

display_mode()

VCP code for display mode (0xDC)

green()

VCP code for green gain/drive (0x18)

input_source()

VCP code for input source selection (0x60)

red()

VCP code for red gain/drive (0x16)

screen_orientation()

VCP code for screen orientation (0xAA)

to_code_arg(int)

@spec to_code_arg(non_neg_integer() | String.t()) :: String.t()

Converts a VCP code to the argument format expected by ddcutil.

Integers are converted to lowercase hex strings, hex strings are passed through.

to_value_arg(int)

@spec to_value_arg(non_neg_integer() | String.t()) :: String.t()

Converts a VCP value to the argument format expected by ddcutil.

Integers are converted to strings, hex strings are passed through.