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
LcdInterfaceThe 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
I2cDeviceThe I2c device for the LCD.
uses8Bit
boolTrue 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
intThe pin that controls the regsiter select.
enablePin
intThe pin that controls the enable switch.
dataPins
int[]Collection of pins holding the data that will be printed on the screen.
backlightPin
intThe optional pin that controls the backlight of the display.
backlightBrightness
floatThe brightness of the backlight. 0.0 for off, 1.0 for on.
readWritePin
intThe optional pin that controls the read and write switch.
controller
GpioControllerThe controller to use with the LCD. If not specified, uses the platform default.
shouldDispose
boolTrue to dispose the Gpio Controller