Class Lcd2004
- Namespace
- Iot.Device.CharacterLcd
- Assembly
- Iot.Device.CharacterLcd.dll
20x4 HD44780 compatible character LCD display.
public class Lcd2004 : Hd44780, ICharacterLcd
- Inheritance
-
Lcd2004
- Implements
- Inherited Members
- Extension Methods
Constructors
Lcd2004(LcdInterface)
Constructs a new LCD 20x4 controller with the given interface
public Lcd2004(LcdInterface lcdInterface)
Parameters
lcdInterfaceLcdInterfaceThe LCD Interface
Lcd2004(I2cDevice, bool)
Constructs a new HD44780 based 16x2 LCD controller with integrated I2c support.
public Lcd2004(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).
Lcd2004(int, int, int[], int, float, int, GpioController?, bool)
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, 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