Edit

Share via


Large4Digit7SegmentDisplay.Write Method

Definition

Overloads

Write(Int32, Alignment)

Write integer value as decimal digits

Write(ReadOnlySpan<Font>, Int32)

Write a series of characters to the display buffer

Write(ReadOnlySpan<Segment>, Int32)

Write a series of digits to the display buffer

Write(ReadOnlySpan<Byte>, Int32)

Write raw data to display buffer

Write(String, Alignment)

Write string value to display

Write(Int32, Alignment)

Write integer value as decimal digits

public void Write (int value, Iot.Device.Display.Alignment alignment = Iot.Device.Display.Alignment.Right);
override this.Write : int * Iot.Device.Display.Alignment -> unit
Public Sub Write (value As Integer, Optional alignment As Alignment = Iot.Device.Display.Alignment.Right)

Parameters

value
Int32

integer value

alignment
Alignment

alignment on display (left or right, right is default)

Exceptions

value must be between -999..9999

Applies to

Write(ReadOnlySpan<Font>, Int32)

Write a series of characters to the display buffer

public void Write (ReadOnlySpan<Iot.Device.Display.Font> characters, int startAddress = 0);
override this.Write : ReadOnlySpan<Iot.Device.Display.Font> * int -> unit
Public Sub Write (characters As ReadOnlySpan(Of Font), Optional startAddress As Integer = 0)

Parameters

characters
ReadOnlySpan<Font>

a list of characters represented in fonts

startAddress
Int32

Address to start writing from

Implements

Applies to

Write(ReadOnlySpan<Segment>, Int32)

Write a series of digits to the display buffer

public void Write (ReadOnlySpan<Iot.Device.Display.Segment> digits, int startAddress = 0);
override this.Write : ReadOnlySpan<Iot.Device.Display.Segment> * int -> unit
Public Sub Write (digits As ReadOnlySpan(Of Segment), Optional startAddress As Integer = 0)

Parameters

digits
ReadOnlySpan<Segment>

a list of digits represented in segments

startAddress
Int32

Address to start writing from

Implements

Applies to

Write(ReadOnlySpan<Byte>, Int32)

Write raw data to display buffer

public override void Write (ReadOnlySpan<byte> digits, int startAddress = 0);
override this.Write : ReadOnlySpan<byte> * int -> unit
Public Overrides Sub Write (digits As ReadOnlySpan(Of Byte), Optional startAddress As Integer = 0)

Parameters

digits
ReadOnlySpan<Byte>
startAddress
Int32

Address to start writing from

Exceptions

Large4Digit7SegmentDisplay only supports Iot.Device.Display.Large4Digit7SegmentDisplay.MaxNumberOfDigits digits

Remarks

Write clears dots, you'll have to reset them afterwards

Applies to

Write(String, Alignment)

Write string value to display

public void Write (string value, Iot.Device.Display.Alignment alignment = Iot.Device.Display.Alignment.Left);
override this.Write : string * Iot.Device.Display.Alignment -> unit
Public Sub Write (value As String, Optional alignment As Alignment = Iot.Device.Display.Alignment.Left)

Parameters

value
String

value to display, max 4 characters, or 5 characters if the 3rd character is ':' (this also turns on the center colon), or 6 characters if 1st character is also ':'

alignment
Alignment

alignment on display (left or right, right is default)

Exceptions

value[2] must be a ':'

value can contain maximum 5 characters

Remarks

* Unsupported characters will be replaced as whitespace * This method clears the buffer before writing, so dots have to be reset afterwards

Applies to