LcdConsole Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This is a high-level interface to an LCD display. It supports automatic wrapping of text, automatic scrolling and code page mappings. This class is thread safe, however using Write from different threads may lead to unexpected results, since the order is not guaranteed.
public sealed class LcdConsole : IDisposable
type LcdConsole = class
interface IDisposable
Public NotInheritable Class LcdConsole
Implements IDisposable
- Inheritance
-
LcdConsole
- Implements
Lcd |
Creates a new instance of the LcdConsole class using the specified LCD low-level interface. This class automatically configures the low-level interface. Do not use the low-level interface at the same time. |
Backlight |
Enables or disables the backlight |
Cursor |
Position of the cursor, from left. Note: May be outside the bounds of the display. |
Cursor |
Position of the cursor, from top Note: May be outside the bounds of the display. |
Display |
Enables or disables the display |
Line |
Sets the Line Feed Mode. This defines what happens when writting past the end of the line/screen. |
Scroll |
If this is larger than zero, an a wait is introduced each time the display wraps to the next line or scrolls up. Can be used to print long texts to the display, but keeping it readable. |
Size |
Size of the display |
Blink |
Blinks the display text (and the backlight, if available). Can be used to get user attention. Operation is synchronous. |
Blink |
Blinks the display in the background |
Clear() |
Clears the screen and sets the cursor back to the start. |
Create |
Creates an encoding that can be used for an LCD display. Typically, the returned value will be loaded using LoadEncoding(LcdCharacterEncoding). |
Create |
Creates an encoding that can be used for an LCD display. Typically, the returned value will be loaded using LoadEncoding(LcdCharacterEncoding). |
Dispose() |
Disposes this instance. |
Load |
Loads the specified encoding. This behaves as LoadEncoding(LcdCharacterEncoding) when the argument is of the dynamic type LcdCharacterEncoding, otherwise like an encding with no special characters. |
Load |
Loads the specified character encoding. This loads any custom characters from the encoding to the display. |
Load |
Loads the specified character encoding. This loads any custom characters from the encoding to the display. |
Replace |
Replaces the text of the given line. This will overwrite the text in the given line, filling up with spaces, if needed. This will never wrap to the next line, and line feeds in the input string are not allowed. |
Reset |
Resets the character encoding to hardware defaults (using simply the lower byte of a char). |
Set |
Moves the cursor to an explicit column and row position. The position may be outside the bounds of the display. Any subsequent writes will then have no effect, unless LineFeedMode allows it or a newline character is written. |
Write(String) |
Write text to display. |
Write |
Writes the given text to the current position, then wraps to the next line. |
Tuote | Versiot |
---|---|
.NET IoT Libraries | 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 2.0.0, 2.1.0, 2.2.0 |