VEX2 Functions Display
| Line 10: | Line 10: | ||
|- | |- | ||
|''For information about ROBOTC ''string'', please see the article: [[VEX2:_Functions_-_Strings|Strings]].'' | |''For information about ROBOTC ''string'', please see the article: [[VEX2:_Functions_-_Strings|Strings]].'' | ||
| + | |- | ||
| + | | | ||
| + | '''Some display functions offer a precision parameter, which pads the displayed number with either zeros or spaces, until the number of digits is equal to the precision value:''' | ||
| + | {| style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:center; font-size:100%; border-collapse: separate; border-spacing: 0; border-width: 1px; border-style: solid; border-color: #000;" cellpadding="5%" | ||
| + | ! style="border-style: solid; border-width: 0px 1px 1px 0px"|''Precision value'' | ||
| + | ! style="text-align:left; border-style: solid; border-width: 0px 1px 1px 0px"|Description | ||
| + | ! style="border-style: solid; border-width: 0px 0px 1px 0px"|Example Output | ||
| + | |- | ||
| + | | style="border-style: solid; border-width: 0px 1px 1px 0px"|-4 | ||
| + | | style="text-align:left; border-style: solid; border-width: 0px 1px 1px 0px"|Pads the displayed number with zeros until the number of digits equals 4. | ||
| + | | style="border-style: solid; border-width: 0px 0px 1px 0px"|000# <br />00## <br />0### <br />#### | ||
| + | |- | ||
| + | | style="border-style: solid; border-width: 0px 1px 1px 0px"|0 | ||
| + | | style="text-align:left; border-style: solid; border-width: 0px 1px 1px 0px"|No padding. | ||
| + | | style="border-style: solid; border-width: 0px 0px 1px 0px"|## | ||
| + | |- | ||
| + | | style="border-style: solid; border-width: 0px 1px 1px 0px"|4 | ||
| + | | style="text-align:left; border-style: solid; border-width: 0px 1px 1px 0px"|Pads the displayed number with spaces until the number of digits equals 4. | ||
| + | | style="border-style: solid; border-width: 0px 0px 1px 0px"|_ _ _# <br />_ _## <br />_### <br />#### | ||
| + | |- | ||
| + | |} | ||
| + | ''Note: Underscore ( _ ) character denotes a space.'' | ||
| + | <br /> | ||
|- | |- | ||
|} | |} | ||
| Line 29: | Line 52: | ||
|- | |- | ||
|} | |} | ||
| − | + | <br /> | |
== clearLCDLine == | == clearLCDLine == | ||
Revision as of 09:30, 13 February 2012
|
Main >> CORTEX >> Functions and Variables >> Display |
| For information about ROBOTC string, please see the article: Strings. | ||||||||||||
|
Some display functions offer a precision parameter, which pads the displayed number with either zeros or spaces, until the number of digits is equal to the precision value:
Note: Underscore ( _ ) character denotes a space.
|
|
| |||||||
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
| void displayNextLCDNumber(const int nValue, const int nPrecision = 0x40) | |||||||||
| (void) Displays a integer number on the VEX LCD. | |||||||||
| |||||||||
|