Edit

Share via


Lcd1602 Class

Definition

16x2 HD44780 compatible character LCD display.

public class Lcd1602 : Iot.Device.CharacterLcd.Hd44780
type Lcd1602 = class
    inherit Hd44780
Public Class Lcd1602
Inherits Hd44780
Inheritance
Lcd1602
Derived

Constructors

Lcd1602(I2cDevice, Boolean)

Constructs a new HD44780 based 16x2 LCD controller with integrated I2c support.

Lcd1602(I2cDevice)
Lcd1602(Int32, Int32, Int32[], Int32, Single, Int32, GpioController, Boolean)

Constructs a new HD44780 based 16x2 LCD controller, using GPIO pins.

Lcd1602(Int32, Int32, Int32[], Int32, Single, Int32, GpioController)
Lcd1602(LcdInterface)

Constructs a new 16x2 LCD controller with the given interface

Fields

_interface (Inherited from Hd44780)
_lcdInterface

LCD interface used by the device

(Inherited from Hd44780)
_rowOffsets

Offsets of the rows

(Inherited from Hd44780)
ClearDisplayCommand

Command which can be used to clear the display

(Inherited from Hd44780)
ReturnHomeCommand

Command which can be used to return (cursor) home

(Inherited from Hd44780)
SetCGRamAddressCommand

Command which can be used to set CG RAM address

(Inherited from Hd44780)
SetDDRamAddressCommand

Command which can be used to set DD RAM address

(Inherited from Hd44780)

Properties

AutoShift

When enabled the display will shift rather than the cursor.

(Inherited from Hd44780)
BacklightOn

Enable/disable the backlight. (Will always return false if no backlight pin was provided.)

(Inherited from Hd44780)
BlinkingCursorVisible

Enable/disable the blinking cursor.

(Inherited from Hd44780)
DisplayOn

Enable/disable the display.

(Inherited from Hd44780)
Increment

Gets/sets whether the cursor location increments (true) or decrements (false).

(Inherited from Hd44780)
NumberOfCustomCharactersSupported

Returns the number of custom characters for this display. A custom character is one that can be user-defined and assigned to a slot using CreateCustomCharacter(Int32, ReadOnlySpan<Byte>)

(Inherited from Hd44780)
Size

Logical size, in characters, of the LCD.

(Inherited from Hd44780)
UnderlineCursorVisible

Enable/disable the underline cursor.

(Inherited from Hd44780)

Methods

Clear()

Clears the LCD, returning the cursor to home and unshifting if shifted. Will also set to Increment.

(Inherited from Hd44780)
CreateCustomCharacter(Byte, Byte[]) (Inherited from Hd44780)
CreateCustomCharacter(Byte, ReadOnlySpan<Byte>)

Fill one of the 8 CGRAM locations (character codes 0 - 7) with custom characters.

(Inherited from Hd44780)
CreateCustomCharacter(Int32, Byte[])

Fill one of the 8 CGRAM locations (character codes 0 - 7) with custom characters. See CreateCustomCharacter(Int32, ReadOnlySpan<Byte>) for details.

(Inherited from Hd44780)
CreateCustomCharacter(Int32, ReadOnlySpan<Byte>)

Fill one of the 8 CGRAM locations (character codes 0 - 7) with custom characters.

(Inherited from Hd44780)
Dispose()

Releases unmanaged resources used by Hd44780 and optionally release managed resources

(Inherited from Hd44780)
Dispose(Boolean)

Releases unmanaged resources used by Hd44780 and optionally release managed resources

(Inherited from Hd44780)
GetTwoLineMode(Int32)

Determines if the device should use two line mode

(Inherited from Hd44780)
Home()

Moves the cursor to the first line and first column, unshifting if shifted.

(Inherited from Hd44780)
InitializeRowOffsets(Int32)

Initializes row offsets

(Inherited from Hd44780)
SendCommand(Byte)

Sends command to the device

(Inherited from Hd44780)
SendCommandAndWait(Byte)

The initialization sequence and some other complex commands should be sent with delays, or the display may behave unexpectedly. It may show random, blinking characters or display text very faintly only.

(Inherited from Hd44780)
SendCommands(ReadOnlySpan<Byte>)

Send commands to the device

(Inherited from Hd44780)
SendData(Byte)

Sends byte to the device

(Inherited from Hd44780)
SendData(ReadOnlySpan<Byte>)

Sends data to the device

(Inherited from Hd44780)
SendData(ReadOnlySpan<Char>)

Sends data to the device

(Inherited from Hd44780)
SetCursorPosition(Int32, Int32)

Moves the cursor to an explicit column and row position.

(Inherited from Hd44780)
ShiftCursorLeft()

Move the cursor left one position.

(Inherited from Hd44780)
ShiftCursorRight()

Move the cursor right one position.

(Inherited from Hd44780)
ShiftDisplayLeft()

Move the display left one position.

(Inherited from Hd44780)
ShiftDisplayRight()

Move the display right one position.

(Inherited from Hd44780)
WaitForNotBusy(Int32)

Wait for the device to not be busy.

(Inherited from Hd44780)
Write(Char[])

Write a raw byte stream to the display. Used if character translation already took place

(Inherited from Hd44780)
Write(ReadOnlySpan<Byte>)

Write a raw byte stream to the display. Used if character translation already took place

(Inherited from Hd44780)
Write(ReadOnlySpan<Char>)

Write a raw byte stream to the display. Used if character translation already took place

(Inherited from Hd44780)
Write(String)

Write text to display.

(Inherited from Hd44780)

Extension Methods

CreateCustomCharacter(ICharacterLcd, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte)

Creates a custom character for standard displays with 8-pixel-per-row characters. See CreateCustomCharacter(Int32, ReadOnlySpan<Byte>) for details.

Applies to