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
lcdInterfaceLcdInterfaceThe 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
deviceI2cDeviceThe I2c device for the LCD.
uses8BitboolTrue 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
registerSelectPinintThe pin that controls the regsiter select.
enablePinintThe pin that controls the enable switch.
dataPinsint[]Collection of pins holding the data that will be printed on the screen.
backlightPinintThe optional pin that controls the backlight of the display.
backlightBrightnessfloatThe brightness of the backlight. 0.0 for off, 1.0 for on.
readWritePinintThe optional pin that controls the read and write switch.
controllerGpioControllerThe controller to use with the LCD. If not specified, uses the platform default.
shouldDisposeboolTrue to dispose the Gpio Controller