Table of Contents

Class DirectDisplayScreen

Namespace
DuetAPI.ObjectModel
Assembly
DuetAPI.dll

Standard direct-connect display screen

[JsonDerivedType(typeof(DirectDisplayScreenST7567))]
public class DirectDisplayScreen : ModelObject, INotifyPropertyChanging, IDynamicModelObject, IModelObject, ICloneable, INotifyPropertyChanged
Inheritance
DirectDisplayScreen
Implements
Derived
Inherited Members

Constructors

DirectDisplayScreen()

public DirectDisplayScreen()

Properties

ColourBits

Number of colour bits

public int ColourBits { get; set; }

Property Value

int

Controller

Display type

public DirectDisplayController Controller { get; set; }

Property Value

DirectDisplayController

Height

Height of the display screen in pixels

public int Height { get; set; }

Property Value

int

SpiFreq

SPI frequency of the display (in Hz)

public int SpiFreq { get; set; }

Property Value

int

Width

Width of the display screen in pixels

public int Width { get; set; }

Property Value

int

Methods

Assign(IDynamicModelObject)

Assign the properties from another instance. This is required to update model properties which do not have a setter

public virtual IDynamicModelObject? Assign(IDynamicModelObject from)

Parameters

from IDynamicModelObject

Other instance

Returns

IDynamicModelObject

Updated instance

Clone()

Clone this instance

public virtual object Clone()

Returns

object

Cloned instance

Remarks

This method is auto-generated

GeneratedUpdateFromJson(JsonElement, bool)

Update this instance from a given JSON element

public virtual IDynamicModelObject? GeneratedUpdateFromJson(JsonElement jsonElement, bool ignoreSbcProperties)

Parameters

jsonElement JsonElement

Element to update this intance from

ignoreSbcProperties bool

Whether SBC properties are ignored

Returns

IDynamicModelObject

Updated instance

Remarks

This method is auto-generated

Exceptions

JsonException

Failed to deserialize data

GeneratedUpdateFromJsonReader(ref Utf8JsonReader, bool)

Update this instance from a given JSON element

public virtual IDynamicModelObject? GeneratedUpdateFromJsonReader(ref Utf8JsonReader reader, bool ignoreSbcProperties)

Parameters

reader Utf8JsonReader

Reader to update this intance from

ignoreSbcProperties bool

Whether SBC properties are ignored

Returns

IDynamicModelObject

Updated instance

Remarks

This method is auto-generated

Exceptions

JsonException

Failed to deserialize data

UpdateFromJson(JsonElement, bool)

Update this instance from a given JSON element

public IDynamicModelObject? UpdateFromJson(JsonElement jsonElement, bool ignoreSbcProperties)

Parameters

jsonElement JsonElement

Element to update this intance from

ignoreSbcProperties bool

Whether SBC properties are ignored

Returns

IDynamicModelObject

Updated instance

Exceptions

JsonException

Failed to deserialize data

UpdateFromJsonReader(ref Utf8JsonReader, bool)

Update this instance from a given JSON reader

public IDynamicModelObject? UpdateFromJsonReader(ref Utf8JsonReader reader, bool ignoreSbcProperties)

Parameters

reader Utf8JsonReader

JSON reader

ignoreSbcProperties bool

Whether SBC properties are ignored

Returns

IDynamicModelObject

Updated instance

Exceptions

JsonException

Failed to deserialize data