public void DisplayStringOnLcd(LcdLine line, string displayString) { switch (line) { case LcdLine.SecondLine: this.WriteCommandToLcd(LcdCommand.LcdSecondLine); break; case LcdLine.FirstLine: default: this.WriteCommandToLcd(LcdCommand.LcdFirstLine); break; } foreach (char stringCharacter in displayString) { this.WriteDataToLcd(stringCharacter); } }
public void DisplayStringOnLcd(LcdLine line, string displayString) { switch (line) { case LcdLine.SecondLine: this.WriteCommandToLcd(LcdCommand.LcdSecondLine); break; case LcdLine.FirstLine: default: this.WriteCommandToLcd(LcdCommand.LcdFirstLine); break; } foreach (char stringCharacter in displayString) { this.WriteDataToLcd(stringCharacter); } }