Version 2 (modified by 14 years ago) ( diff ) | ,
---|
PrintLCD
Prints text on the LCD screen using the default font.
void PrintLCD(const char* pszText); void PrintLCD(const std::string& strText);
Parameters
- pszText - character array pointer such as string literal "Hello World"
- strText - const string reference
Return Value
- void - does not return any value
Remarks
- Text may contain carriage returns to cause current position to drop to next line and left of screen. For example, "Hello\rWorld" will cause "Hello" to be displayed at the currect cursor location and "World" to be displayed one line down and at the left of the display.
Examples
LocateLCD(10, 10); PrintLCD("Hello World");
string strMsg = "Hello\rWorld"; LocateLCD(0, 0); PrintLCD(strMsg);
See Also
- LocateLCD
- DisplayText
Note:
See TracWiki
for help on using the wiki.