VEX2 Functions Display
| Line 27: | Line 27: | ||
|- | |- | ||
| style="border-style: solid; border-width: 0px 1px 0px 0px"|4 | | style="border-style: solid; border-width: 0px 1px 0px 0px"|4 | ||
| − | | style="text-align:left; border-style: solid; border-width: 0px 1px | + | | style="text-align:left; border-style: solid; border-width: 0px 1px 0px 0px"|Pads the displayed number with spaces until the number of digits equals 4. |
| style="border-style: solid; border-width: 0px 0px 0px 0px"|_ _ _# <br />_ _## <br />_### <br />#### | | style="border-style: solid; border-width: 0px 0px 0px 0px"|_ _ _# <br />_ _## <br />_### <br />#### | ||
|- | |- | ||
Revision as of 09:42, 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. | |||||||||
| |||||||||
|