D253Monitor

Class used for controlling a Dasung253 monitor.

Provides functions for changing all of the monitor's settings and performing other common operations.

Parameters

port

Serial port through which this class interacts with the monitor

Constructors

Link copied to clipboard
constructor(port: D253SerialPort)

Functions

Link copied to clipboard
open suspend override fun clearGhosting(): D253Response

Refreshes the screen to clear any ghosting.

Link copied to clipboard
open suspend override fun getCapabilities(): D253Capabilities

Queries the monitor to find out which features it supports.

Link copied to clipboard
open suspend override fun getDisplayMode(): D253DisplayMode

Gets the display mode of the monitor.

Link copied to clipboard
open suspend override fun getEnhancement(): Int

Gets the value of the enhancement setting from the monitor.

Link copied to clipboard
open suspend override fun getFrontlight(): Int

Gets the value of the front light setting from the monitor.

Link copied to clipboard
open suspend override fun getLight(): Int

Gets the value of the light setting from the monitor.

Link copied to clipboard
open suspend override fun getParameters(): D253Parameters

Retrieves all known settings from the monitor.

Link copied to clipboard
open suspend override fun getSpeed(): Int

Gets the value of the speed setting from the monitor.

Link copied to clipboard
open suspend override fun getTemperature(): Int

Gets the monitor's color temperature.

Link copied to clipboard
open suspend override fun getThreshold(): Int

Gets the value of the threshold setting from the monitor.

Link copied to clipboard
open suspend override fun getVersion(): Int

Gets the model (mcu version) of the monitor.

Link copied to clipboard
open suspend override fun setDisplayMode(mode: D253DisplayMode): D253Response

Sets the monitor's display mode.

Link copied to clipboard
open suspend override fun setEnhancement(value: Int): D253Response

Sets the value of the enhancement setting on the monitor.

Link copied to clipboard
open suspend override fun setFrontlight(value: Int): D253Response

Sets the value of the front light setting on the monitor.

Link copied to clipboard
open suspend override fun setLight(value: Int): D253Response

Sets the value of the light setting on the monitor.

Link copied to clipboard
open suspend override fun setRtc(value: Instant): D253Response

Sets the RTC (real-time clock) of the monitor.

Link copied to clipboard
open suspend override fun setSpeed(value: Int): D253Response

Sets the value of the speed setting on the monitor.

Link copied to clipboard
open suspend override fun setTemperature(value: Int): D253Response

Sets the monitor's color temperature.

Link copied to clipboard
open suspend override fun setThreshold(value: Int): D253Response

Sets the value of the threshold setting on the monitor.