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
lcdInterface
LcdInterfaceThe 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
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).
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
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