Table of Contents

Class Lcd1602

Namespace
Iot.Device.CharacterLcd
Assembly
Iot.Device.CharacterLcd.dll

16x2 HD44780 compatible character LCD display.

public class Lcd1602 : Hd44780, ICharacterLcd
Inheritance
Lcd1602
Implements
Inherited Members
Extension Methods

Constructors

Lcd1602(LcdInterface)

Constructs a new 16x2 LCD controller with the given interface

public Lcd1602(LcdInterface lcdInterface)

Parameters

lcdInterface LcdInterface

The LCD Interface

Lcd1602(I2cDevice, bool)

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

public Lcd1602(I2cDevice device, bool uses8Bit = true)

Parameters

device I2cDevice

The I2c device for the LCD.

uses8Bit bool

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(int, int, int[], int, float, int, GpioController?, bool).

Lcd1602(int, int, int[], int, float, int, GpioController?, bool)

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

public Lcd1602(int registerSelectPin, int enablePin, int[] dataPins, int backlightPin = -1, float backlightBrightness = 1, int readWritePin = -1, GpioController? controller = null, bool shouldDispose = true)

Parameters

registerSelectPin int

The pin that controls the regsiter select.

enablePin int

The pin that controls the enable switch.

dataPins int[]

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

backlightPin int

The optional pin that controls the backlight of the display.

backlightBrightness float

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

readWritePin int

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 bool

True to dispose the Gpio Controller