Difference between revisions of "VEX2 Functions Display"

From ROBOTC API Guide
Jump to: navigation, search
(Information)
Line 31: Line 31:
  
  
== nxtSetPixel ==
+
== clearLCDLine ==
 
{| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0"
 
{| style="color:black;" width="100%" cellpadding="5%" cellspacing="0" border="0"
 
|-
 
|-
| class="functionType"| <span class="bigKeywordBI">void </span><span class="bigKeywordB">nxtSetPixel</span><span class="bigCodePunc">(</span><span class="bigKeywordBI">const int </span><span class="bigCodeBasic">xPos</span><span class="bigCodePunc">, </span><span class="bigKeywordBI">const int </span><span class="bigCodeBasic">yPos</span><span class="bigCodePunc">)</span>
+
| class="functionType"| <span class="bigKeywordBI">void </span><span class="bigKeywordB">clearLCDLine</span><span class="bigCodePunc">(</span><span class="bigKeywordBI">const int </span><span class="bigCodeBasic">nLine</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]]) Sets a single pixel on the NXT LCD screen.
+
| style="font-family:Verdana, Geneva, sans-serif; color:black; background-color:#FFFFFF; text-align:left; font-size:100%;"|([[Data_Types#dataType_void|void]]) Clears the indicated line of the VEX LCD to blanks.
 
|-
 
|-
 
|
 
|
Line 44: Line 44:
 
   ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Data Type
 
   ! width="20%" style="border-style: solid; border-width: 0px 0px 1px 0px"|Data Type
 
   |-
 
   |-
   | style="border-style: solid; border-width: 1px 0px 1px 0px"|''xPos''  
+
   | style="border-style: solid; border-width: 1px 0px 1px 0px"|''nLine''  
   | style="border-style: solid; border-width: 1px 0px 1px 0px"|X-coordinate of pixel
+
   | style="border-style: solid; border-width: 1px 0px 1px 0px"|The line to clear.  0 is the top, 1 is the bottom.
 
   | style="border-style: solid; border-width: 1px 0px 1px 0px"|[[Data_Types#dataType_int|int]]
 
   | style="border-style: solid; border-width: 1px 0px 1px 0px"|[[Data_Types#dataType_int|int]]
  |-
 
  | style="border-style: solid; border-width: 0px 0px 0px 0px"|''yPos''
 
  | style="border-style: solid; border-width: 0px 0px 0px 0px"|Y-coordinate of pixel
 
  | style="border-style: solid; border-width: 0px 0px 0px 0px"|[[Data_Types#dataType_int|int]]
 
 
   |-
 
   |-
 
   |}
 
   |}
Line 57: Line 53:
 
   {|
 
   {|
 
   |-
 
   |-
   |<syntaxhighlight lang="ROBOTC">nxtSetPixel(42, 46);  // "set" a pixel (make it black) at position (42,46)</syntaxhighlight>
+
   |<syntaxhighlight lang="ROBOTC">clearLCDLine(1);  //Clears the second line of the LCD Screen (0 would be the first line)</syntaxhighlight>
 
   |-
 
   |-
 
   |}
 
   |}

Revision as of 21:38, 10 February 2012

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


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


Contents

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)