Remarks

LCD
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.Grove.Displays.LCD

Code Example

LCD display;

public override Task Initialize()
{
    Resolver.Log.Info("Initialize...");

    display = new LCD(Device.CreateI2cBus());

    return Task.CompletedTask;
}

public override async Task Run()
{
    display.Write("Hello Grove");

    await Task.Delay(2000);

    for (byte i = 0; i < 16; i++)
    {
        display.SetCursorPosition(i, 0);
        display.Write("1");
        Thread.Sleep(250);

        display.SetCursorPosition(i, 1);
        display.Write("2");
        Thread.Sleep(250);
    }

    display.ClearLines();
}

Sample project(s) available on GitHub

Wiring Example

LCD Meadow Pin
GND GND
VCC 3.3V
RX D01
TX D00
Characteristic Locus
Inheritance object CharacterDisplay > LCD
Implements ITextDisplay
Inherited Members CharacterDisplay.DisplayConfig CharacterDisplay.ClearLine(byte) CharacterDisplay.ClearLines() CharacterDisplay.SaveCustomCharacter(byte[], byte) CharacterDisplay.SetCursorPosition(byte, byte) CharacterDisplay.Write(string) CharacterDisplay.WriteLine(string, byte, bool) CharacterDisplay.Show() object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString()
Namespace Meadow.Foundation.Grove.Displays
Assembly LCD.dll

Syntax

public class LCD : CharacterDisplay, ITextDisplay

Constructors

LCD(II2cBus, byte, byte, byte)

Creates a Grove LCD display object

Declaration
public LCD(II2cBus i2cBus, byte address = 62, byte rows = 2, byte columns = 16)

Parameters

Type Name Description
II2cBus i2cBus

The I2C bus connected to the display

byte address

The I2C address

byte rows

The number of character rows

byte columns

The number of character columns

Remarks

LCD
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.Grove.Displays.LCD

Code Example

LCD display;

public override Task Initialize()
{
    Resolver.Log.Info("Initialize...");

    display = new LCD(Device.CreateI2cBus());

    return Task.CompletedTask;
}

public override async Task Run()
{
    display.Write("Hello Grove");

    await Task.Delay(2000);

    for (byte i = 0; i < 16; i++)
    {
        display.SetCursorPosition(i, 0);
        display.Write("1");
        Thread.Sleep(250);

        display.SetCursorPosition(i, 1);
        display.Write("2");
        Thread.Sleep(250);
    }

    display.ClearLines();
}

Sample project(s) available on GitHub

Wiring Example

LCD Meadow Pin
GND GND
VCC 3.3V
RX D01
TX D00