1 | | = PrintLCD = |
| 1 | == PrintLCD == |
| 2 | Prints text on the LCD screen using the default font. |
| 3 | |
| 4 | {{{ |
| 5 | void PrintLCD(const char* pszText); |
| 6 | |
| 7 | void PrintLCD(const std::string& strText); |
| 8 | }}} |
| 9 | |
| 10 | === Parameters === |
| 11 | |
| 12 | * pszText - character array pointer such as string literal "Hello World" |
| 13 | * strText - const string reference |
| 14 | |
| 15 | === Return Value === |
| 16 | |
| 17 | * void - does not return any value |
| 18 | |
| 19 | === Remarks === |
| 20 | |
| 21 | * 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. |
| 22 | |
| 23 | === Examples === |
| 24 | |
| 25 | {{{ |
| 26 | LocateLCD(10, 10); |
| 27 | PrintLCD("Hello World"); |
| 28 | }}} |
| 29 | |
| 30 | {{{ |
| 31 | string strMsg = "Hello\rWorld"; |
| 32 | LocateLCD(0, 0); |
| 33 | PrintLCD(strMsg); |
| 34 | }}} |
| 35 | |
| 36 | === See Also === |
| 37 | |
| 38 | * LocateLCD |
| 39 | * DisplayText |