예제 #1
0
        private static void Display(byte line, string msg, Gadgeteer.Modules.GHIElectronics.Display_HD44780 lcd)
        {
            if (msg.Length > 16)
                msg = msg.Substring(0, 16);

            if (msg.Length < 16)
                msg += new string(' ', 16 - msg.Length);

            if (lcd != null)
            {
                lcd.SetCursor(line, 0);
                lcd.PrintString(msg);
            }
        }