VEX IQ Python API
Public Member Functions | List of all members
vex.BrainLcd Class Reference

Public Member Functions

def __init__ (self)
 
def print_line (self, number, text)
 Prints a number, string, or boolean at a particular line, clearing the rest of the line. More...
 
def clear_screen (self)
 Clears the whole screen. 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

◆ __init__()

def vex.BrainLcd.__init__ (   self)

Member Function Documentation

◆ print_line()

def vex.BrainLcd.print_line (   self,
  number,
  text 
)

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. TODO default empty string?
textobject to print, usually a string. Use "" to clear the line For multiple arguments, use format like "x: %g y: %g" % (x, y) -> "x: 123 y: 456" Supported format flags are g (all) x (hex) d (int) f (float)

◆ clear_screen()

def vex.BrainLcd.clear_screen (   self)

Clears the whole screen.