public static void Main() { using (var display = new LcdDisplay()) { display.Init(); display.Clear(0x00); display.Rectangle(10, 10, 470, 310, 0xff); display.EmptyRectangle(50, 50, 200, 300, 0xfa, 0xaf); } }
private static void DoMessaging(LcdDisplay lcdDisplay) { var readedLine = string.Empty; do { lcdDisplay.Clear(); lcdDisplay.DisplayString(readedLine); Console.WriteLine("Type any text:"); readedLine = Console.ReadLine(); }while (!string.IsNullOrEmpty(readedLine)); }
private void WriteText(string text) { _lcdDisplay.Clear(); _lcdDisplay.DisplayText(text, 1); }