VEX2 Functions Display
From ROBOTC API Guide
m (moved VEX2: Functions - Display to VEX2 Functions Display) |
|||
| (One intermediate revision by one user not shown) | |||
| Line 1: | Line 1: | ||
| − | + | <yambe:breadcrumb self="Display">VEX2_Functions_and_Variables|Functions and Variables</yambe:breadcrumb> | |
| − | + | <br /> | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | {| | |
| − | {| | + | |
|- | |- | ||
| − | |''For information about ROBOTC ''string'', please see the article: [[ | + | |''For information about ROBOTC ''string'', please see the article: [[VEX2_Functions_Strings|Strings]].'' |
|- | |- | ||
| | | | ||
| Line 35: | Line 30: | ||
|- | |- | ||
|} | |} | ||
| + | <br /> | ||
| − | + | {{tl|1|1}} | |
| − | { | + | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
<br /> | <br /> | ||
Latest revision as of 09:07, 30 April 2012
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. | |||||||||
| |||||||||
|
displayNextLCDString
| void displayNextLCDString(string sString) | ||||||
| (void) Displays a integer number on the VEX LCD. | ||||||
| ||||||
|
setLCDPosition
| void setLCDPosition(const int nLine, const int nPos) | |||||||||
| (void) Sets the next display position on the VEX LCD. | |||||||||
| |||||||||
|