VEX IQ C++ API
Public Member Functions | List of all members
vex::brain::lcd Class Reference

Use this class to write or draw to the brain's LCD screen. 21 characters wide 5 lines (1-5) More...

Public Member Functions

 lcd ()
 
 ~lcd ()
 
void printLine (int32_t number, const char *format,...)
 Prints a number, string, or boolean at a particular line, clearing the rest of the line. More...
 
void clearScreen (void)
 Clears the whole Screen. More...
 
void clearLine (int32_t number)
 Clears the specified line. More...
 

Detailed Description

Use this class to write or draw to the brain's LCD screen. 21 characters wide 5 lines (1-5)

Constructor & Destructor Documentation

◆ lcd()

vex::brain::lcd::lcd ( )
inline

◆ ~lcd()

vex::brain::lcd::~lcd ( )
inline

Member Function Documentation

◆ printLine()

void vex::brain::lcd::printLine ( int32_t  number,
const char *  format,
  ... 
)

Prints a number, string, or boolean at a particular line, clearing the rest of the line.

Parameters
numberLine to print on, 1 is top line.
formatThis is a reference to a char format that prints the value of variables.
...A variable list of parameters to insert into format string.

◆ clearScreen()

void vex::brain::lcd::clearScreen ( void  )

Clears the whole Screen.

◆ clearLine()

void vex::brain::lcd::clearLine ( int32_t  number)

Clears the specified line.

Parameters
numberThe integer sets the line that is to be cleared, 1 is top line.