Class CharacterDisplay
Represents a single or multirow LCD character display
Assembly: CharacterDisplay.dll
View Source
Declaration
public class CharacterDisplay : ITextDisplay, IDisplay
Implements:
Meadow.Peripherals.Displays.ITextDisplay
, Meadow.Peripherals.Displays.IDisplay
Properties
DisplayConfig
The display configuration for text display menu
View Source
Declaration
public TextDisplayConfig DisplayConfig { get; }
Methods
ClearLine(byte)
Clear a line of text
View Source
Declaration
public void ClearLine(byte lineNumber)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | lineNumber | The line to clear (0 indexed) |
ClearLines()
Clear all lines
View Source
Declaration
public void ClearLines()
SaveCustomCharacter(byte[], byte)
Save a custom character to the display
View Source
Declaration
public void SaveCustomCharacter(byte[] characterMap, byte address)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | characterMap | The character data |
System.Byte | address | The display character address (0-7) |
SetCursorPosition(byte, byte)
Set the cursor position
View Source
Declaration
public void SetCursorPosition(byte column, byte line)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | column | The cursor column |
System.Byte | line | The cursor line |
Write(string)
Write a string to the display
View Source
Declaration
public void Write(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text to show as a string |
WriteLine(string, byte, bool)
Write text to a line
View Source
Declaration
public void WriteLine(string text, byte lineNumber, bool showCursor = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text to display |
System.Byte | lineNumber | The target line |
System.Boolean | showCursor | If true, show the cursor |
Show()
Update the display
View Source
Declaration
public void Show()
Implements
Meadow.Peripherals.Displays.ITextDisplay
Meadow.Peripherals.Displays.IDisplay