vex.brain.screen module¶
Brain LCD Screen.
- class vex.brain.screen.BrainLcd[source]¶
Bases:
SingletonDeviceBrain LCD Screen.
ROBOT MESH PYTHON B:
Use this class to write or draw to the brain’s LCD screen.
21 characters wide
5 lines (1-5)
robotmesh.com/studio/content/docs/vexiq-python_b/html/classvex_1_1_brain_lcd.html
- clear_screen()[source]¶
Clear Brain LCD Screen.
VEXCODE PYTHON:
Clears the entire VEX IQ Brain’s Screen.
Clear Screen will not reset the Brain’s screen cursor.
Use the Set Cursor command to set the Brain’s cursor to the desired position.
ROBOT MESH PYTHON B:
Clear the whole screen.
- print_line(number: int, text: str)[source]¶
Print to a line on Brain LCD Screen.
ROBOT MESH PYTHON B:
Print a number, string, or boolean at a particular line.
(clearing the rest of the line)
Parameters number: Line to print on, 1 is top line. text: object 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)