Difference between revisions of "VEX2 Functions Display"

From ROBOTC API Guide
Jump to: navigation, search
(displayLCDCenteredString)
Line 86: Line 86:
 
   {|
 
   {|
 
   |-
 
   |-
   |<syntaxhighlight lang="ROBOTC">displayLCDCenterString(0,"ROBOT123");  //Displays the string "ROBOTC123" to the center of line 0</syntaxhighlight>
+
   |<syntaxhighlight lang="ROBOTC">displayLCDCenteredString(0,"ROBOT123");  //Displays the string "ROBOTC123" to the center of line 0</syntaxhighlight>
 
   |-
 
   |-
 
   |}
 
   |}

Revision as of 21:45, 10 February 2012

Main >> CORTEX >> Functions and Variables >> Display


For information about ROBOTC string, please see the article: Strings.


Color Key
Function:
Variable:


clearLCDLine

void clearLCDLine(const int nLine)
(void) Clears the indicated line of the VEX LCD to blanks.
Parameter Explanation Data Type
nLine The line to clear. 0 is the top, 1 is the bottom. int
clearLCDLine(1);  //Clears the second line of the LCD Screen (0 would be the first line)


displayLCDCenteredString

void displayLCDCenteredString(const int nLine,string sString)
(void) Clears the indicated line of the VEX LCD to blanks.
Parameter Explanation Data Type
nLine The line to display on. 0 is the top, 1 is the bottom. int
sString The string to display. string
displayLCDCenteredString(0,"ROBOT123");  //Displays the string "ROBOTC123" to the center of line 0