Class DirectDisplayScreen
Standard direct-connect display screen
Inherited Members
Namespace: DuetAPI.ObjectModel
Assembly: DuetAPI.dll
Syntax
public class DirectDisplayScreen : ModelObject, IModelObject, ICloneable, INotifyPropertyChanged, INotifyPropertyChanging
Properties
ColourBits
Number of colour bits
Declaration
public int ColourBits { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Controller
Display type
Declaration
public DirectDisplayController Controller { get; set; }
Property Value
| Type | Description |
|---|---|
| DirectDisplayController |
Height
Height of the display screen in pixels
Declaration
public int Height { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
SpiFreq
SPI frequency of the display (in Hz)
Declaration
public int SpiFreq { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Width
Width of the display screen in pixels
Declaration
public int Width { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
UpdateFromJson(JsonElement, bool)
Update this instance from a given JSON element
Declaration
public override IModelObject? UpdateFromJson(JsonElement jsonElement, bool ignoreSbcProperties)
Parameters
| Type | Name | Description |
|---|---|---|
| JsonElement | jsonElement | Element to update this intance from |
| bool | ignoreSbcProperties | Whether SBC properties are ignored |
Returns
| Type | Description |
|---|---|
| IModelObject | Updated instance |
Overrides
Exceptions
| Type | Condition |
|---|---|
| JsonException | Failed to deserialize data |