VEX2 Functions Display
| Line 268: | Line 268: | ||
displayLCDPos(1,5); // sets the current LCD position to line 2, character 6 | displayLCDPos(1,5); // sets the current LCD position to line 2, character 6 | ||
displayNextLCdChar('A'); // displays the character 'A' on line 2, character 6</syntaxhighlight> | displayNextLCdChar('A'); // displays the character 'A' on line 2, character 6</syntaxhighlight> | ||
| + | |- | ||
| + | |} | ||
| + | |- | ||
| + | |} | ||
| + | <br /> | ||
| + | |||
| + | == displayNextLCDNumber ==(const int nValue, const int nPrecision = 0x40) | ||
| + | {| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0" | ||
| + | |- | ||
| + | | class="functionType"| <span class="bigKeywordBI">void </span><span class="bigKeywordB">displayNextLCDNumber</span><span class="bigCodePunc">(</span><span class="bigKeywordBI">const int </span><span class="bigCodeBasic">nValue</span><span class="bigCodePunc">, </span><span class="bigKeywordBI">const int </span><span class="bigCodeBasic">nPrecision</span><span class="bigCodePunc"> = </span><span class="bigCodeStringsNums">0x40</span><span class="bigCodePunc">)</span> | ||
| + | |- | ||
| + | | style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|([[Data_Types#dataType_void|void]]) Displays a integer number on the VEX LCD. | ||
| + | |- | ||
| + | | | ||
| + | {| class="parameterTable" cellpadding="5%" width="100%" | ||
| + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Parameter | ||
| + | ! width="60%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Explanation | ||
| + | ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Data Type | ||
| + | |- | ||
| + | | style="border-style: solid; border-width: 1px 0px 0px 0px"|''nValue'' | ||
| + | | style="border-style: solid; border-width: 1px 0px 0px 0px"|The number to display. | ||
| + | | style="border-style: solid; border-width: 1px 0px 0px 0px"|[[Data_Types#dataType_int|int]] | ||
| + | |- | ||
| + | | style="border-style: solid; border-width: 1px 0px 0px 0px"|''nPrecision'' | ||
| + | | style="border-style: solid; border-width: 1px 0px 0px 0px"|The precision of the number. 64 by default. | ||
| + | | style="border-style: solid; border-width: 1px 0px 0px 0px"|[[Data_Types#dataType_int|int]] | ||
| + | |- | ||
| + | |} | ||
| + | |- | ||
| + | | | ||
| + | {| | ||
| + | |- | ||
| + | |<syntaxhighlight lang="ROBOTC">displayNextLCDNumber(2365); // displays the number '2365' onto the LCD screen</syntaxhighlight> | ||
|- | |- | ||
|} | |} | ||
Revision as of 09:03, 13 February 2012
|
Main >> CORTEX >> Functions and Variables >> Display |
| For information about ROBOTC string, please see the article: Strings. |
|
| |||||||
clearLCDLine
| void clearLCDLine(const int nLine) | ||||||
| (void) Clears the indicated line of the VEX LCD to blanks. | ||||||
| ||||||
|
displayLCDCenteredString
| void displayLCDCenteredString(const int nLine, string sString) | |||||||||
| (void) Clears the indicated line of the VEX LCD to blanks. | |||||||||
| |||||||||
|
displayLCDChar
| void displayLCDChar(const int nLine, const int nPos, const int cChar) | ||||||||||||
| (void) Clears the indicated line of the VEX LCD to blanks. | ||||||||||||
| ||||||||||||
|
displayLCDNumber
| void displayLCDNumber(const int nLine, const int nPos, const int nValue, const int nPrecision = -1) | |||||||||||||||
| (void) Displays a number nValue on line nLine at position nPos. | |||||||||||||||
| |||||||||||||||
|
displayLCDPos
| void displayLCDPos(const int nLine, const int nPos) | |||||||||
| (void) Sets the next display position on the VEX LCD. | |||||||||
| |||||||||
|
displayLCDString
| void displayLCDString(const int nLine, const int nPos, string sString) | ||||||||||||
| (void) Displays a string sString on line nLine at position nPos. | ||||||||||||
| ||||||||||||
|
displayNextLCDChar
| void displayNextLCDChar(const int cChar) | ||||||
| (void) Displays a specific character on the VEX LCD. | ||||||
| ||||||
|
== displayNextLCDNumber ==(const int nValue, const int nPrecision = 0x40)
| void displayNextLCDNumber(const int nValue, const int nPrecision = 0x40) | |||||||||
| (void) Displays a integer number on the VEX LCD. | |||||||||
| |||||||||
|