Edit

Share via


Lcd2004 Constructors

Definition

Overloads

Lcd2004(LcdInterface)

Constructs a new LCD 20x4 controller with the given interface

Lcd2004(I2cDevice, Boolean)

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

Lcd2004(Int32, Int32, Int32[], Int32, Single, Int32, GpioController)
Lcd2004(Int32, Int32, Int32[], Int32, Single, Int32, GpioController, Boolean)

Constructs a new HD44780 based 20x4 LCD controller.

Lcd2004(LcdInterface)

Constructs a new LCD 20x4 controller with the given interface

public Lcd2004 (Iot.Device.CharacterLcd.LcdInterface lcdInterface);
new Iot.Device.CharacterLcd.Lcd2004 : Iot.Device.CharacterLcd.LcdInterface -> Iot.Device.CharacterLcd.Lcd2004
Public Sub New (lcdInterface As LcdInterface)

Parameters

lcdInterface
LcdInterface

The LCD Interface

Applies to

Lcd2004(I2cDevice, Boolean)

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

public Lcd2004 (System.Device.I2c.I2cDevice device, bool uses8Bit = true);
new Iot.Device.CharacterLcd.Lcd2004 : System.Device.I2c.I2cDevice * bool -> Iot.Device.CharacterLcd.Lcd2004
Public Sub New (device As I2cDevice, Optional uses8Bit As Boolean = true)

Parameters

device
I2cDevice

The I2c device for the LCD.

uses8Bit
Boolean

True if the device uses 8 Bit commands, false if it handles only 4 bit commands.

Remarks

This is for on-chip I2c support. For connecting via I2c GPIO expanders, use the GPIO constructor Lcd1602(Int32, Int32, Int32[], Int32, Single, Int32, GpioController, Boolean).

Applies to

Lcd2004(Int32, Int32, Int32[], Int32, Single, Int32, GpioController)

public Lcd2004 (int registerSelectPin, int enablePin, int[] dataPins, int backlightPin = -1, float backlightBrightness = 1, int readWritePin = -1, System.Device.Gpio.GpioController controller = default);
new Iot.Device.CharacterLcd.Lcd2004 : int * int * int[] * int * single * int * System.Device.Gpio.GpioController -> Iot.Device.CharacterLcd.Lcd2004
Public Sub New (registerSelectPin As Integer, enablePin As Integer, dataPins As Integer(), Optional backlightPin As Integer = -1, Optional backlightBrightness As Single = 1, Optional readWritePin As Integer = -1, Optional controller As GpioController = Nothing)

Parameters

registerSelectPin
Int32
enablePin
Int32
dataPins
Int32[]
backlightPin
Int32
backlightBrightness
Single
readWritePin
Int32
controller
GpioController

Applies to

Lcd2004(Int32, Int32, Int32[], Int32, Single, Int32, GpioController, Boolean)

Constructs a new HD44780 based 20x4 LCD controller.

public Lcd2004 (int registerSelectPin, int enablePin, int[] dataPins, int backlightPin = -1, float backlightBrightness = 1, int readWritePin = -1, System.Device.Gpio.GpioController? controller = default, bool shouldDispose = true);
new Iot.Device.CharacterLcd.Lcd2004 : int * int * int[] * int * single * int * System.Device.Gpio.GpioController * bool -> Iot.Device.CharacterLcd.Lcd2004
Public Sub New (registerSelectPin As Integer, enablePin As Integer, dataPins As Integer(), Optional backlightPin As Integer = -1, Optional backlightBrightness As Single = 1, Optional readWritePin As Integer = -1, Optional controller As GpioController = Nothing, Optional shouldDispose As Boolean = true)

Parameters

registerSelectPin
Int32

The pin that controls the regsiter select.

enablePin
Int32

The pin that controls the enable switch.

dataPins
Int32[]

Collection of pins holding the data that will be printed on the screen.

backlightPin
Int32

The optional pin that controls the backlight of the display.

backlightBrightness
Single

The brightness of the backlight. 0.0 for off, 1.0 for on.

readWritePin
Int32

The optional pin that controls the read and write switch.

controller
GpioController

The controller to use with the LCD. If not specified, uses the platform default.

shouldDispose
Boolean

True to dispose the Gpio Controller

Applies to