Skip to main content

Class CharacterDisplay

Represents a single or multirow LCD character display

Assembly: CharacterDisplay.dll
View Source
public class CharacterDisplay : ITextDisplay

Implements:
Meadow.Peripherals.Displays.ITextDisplay

Properties

DisplayConfig

The display configuration for text display menu

View Source
public TextDisplayConfig DisplayConfig { get; }

Methods

ClearLine(byte)

Clear a line of text

View Source
public void ClearLine(byte lineNumber)
Parameters
TypeNameDescription
System.BytelineNumberThe line to clear (0 indexed)

ClearLines()

Clear all lines

View Source
public void ClearLines()

SaveCustomCharacter(byte[], byte)

Save a custom character to the display

View Source
public void SaveCustomCharacter(byte[] characterMap, byte address)
Parameters
TypeNameDescription
System.Byte[]characterMapThe character data
System.ByteaddressThe display character address (0-7)

SetCursorPosition(byte, byte)

Set the cursor position

View Source
public void SetCursorPosition(byte column, byte line)
Parameters
TypeNameDescription
System.BytecolumnThe cursor column
System.BytelineThe cursor line

Write(string)

Write a string to the display

View Source
public void Write(string text)
Parameters
TypeNameDescription
System.StringtextThe text to show as a string

WriteLine(string, byte, bool)

Write text to a line

View Source
public void WriteLine(string text, byte lineNumber, bool showCursor = false)
Parameters
TypeNameDescription
System.StringtextThe text to display
System.BytelineNumberThe target line
System.BooleanshowCursorIf true, show the cursor

Show()

Update the display

View Source
public void Show()

Implements

  • Meadow.Peripherals.Displays.ITextDisplay