Table of Contents

Class LcdRgb

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

Supports I2c LCDs with I2c RGB backlight, such as the Grove - LCD RGB Backlight (i.e. 16x2 LCD character display with RGB backlight).

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

Remarks

This implementation was drawn from numerous libraries such as Grove_LCD_RGB_Backlight.

Constructors

LcdRgb(Size, LcdInterface, I2cDevice)

Initializes a new HD44780 LCD with an RGB Backlight.

public LcdRgb(Size size, LcdInterface lcdInterface, I2cDevice rgbDevice)

Parameters

size Size

Size of the device in characters. Usually 16x2 or 20x4.

lcdInterface LcdInterface

Interface to the display.

rgbDevice I2cDevice

The I2C device to control RGB backlight.

LcdRgb(Size, I2cDevice, I2cDevice)

Initializes a new HD44780 LCD controller.

public LcdRgb(Size size, I2cDevice lcdDevice, I2cDevice rgbDevice)

Parameters

size Size

Size of the device in characters. Usually 16x2 or 20x4.

lcdDevice I2cDevice

The I2C device to control LCD display.

rgbDevice I2cDevice

The I2C device to control RGB backlight.

Properties

BacklightOn

Enable/disable the backlight.

public override bool BacklightOn { get; set; }

Property Value

bool

Methods

Dispose()

Releases unmanaged resources used by Hd44780 and optionally release managed resources

public override void Dispose()

SetBacklightColor(Color)

Sets the backlight color. The action will be ignored in case of the backlight is disabled.

public void SetBacklightColor(Color color)

Parameters

color Color

The color to set.