Meadow.Foundation.Grove.Displays.LCD
LCD | |
---|---|
Status | |
Source code | GitHub |
NuGet package |
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 |
Class LCD
Represents a Grove LCD display
Assembly: LCD.dll
View Source
Declaration
public class LCD : CharacterDisplay, ITextDisplay, IDisplay
Inheritance: System.Object
-> Meadow.Foundation.Displays.Lcd.CharacterDisplay
Implements:
Meadow.Peripherals.Displays.ITextDisplay
, Meadow.Peripherals.Displays.IDisplay
Implements
Meadow.Peripherals.Displays.ITextDisplay
Meadow.Peripherals.Displays.IDisplay