Pantalla#

Estos comandos solo funcionan con un Controlador VEX V5 conectado al VEX EXP Brain.

imprimir()#

The print(value, format, …) method prints text on the screen using the current cursor position.

Parámetros

Descripción

valor

El texto a imprimir.

formato

Opcional. Un especificador de formato que se utilizará al imprimir el valor de las variables.

Opcional. Una lista variable de parámetros que se imprimirán con el especificador de formato.

Devoluciones: Ninguna.

// Print the number 1 on the screen at current
// cursor position.
Controller.Screen.print(1);

establecerCursor()#

The setCursor(row, col) method sets the cursor position used for printing text on the screen.

El controlador V5 puede mostrar como máximo 3 líneas de texto.

Parámetro

Descripción

fila

La fila del cursor: 1, 2 o 3.

columna

La columna del cursor. La primera columna es 1.

Devoluciones: Ninguna.

columna()#

The column() method returns the current column where text will be printed, starting at 1.

Devuelve: La columna actual.

fila()#

The row() method returns the current row where text will be printed, starting at 1.

Devuelve: La fila actual.

Borrar pantalla()#

The clearScreen() method clears the whole screen.

Devoluciones: Ninguna.

clearLine()#

Hay dos formas de borrar una línea en la pantalla del controlador.

The clearLine() method clears the row that the cursor is currently on.

Devoluciones: Ninguna.

The clearLine(row) method clears the specified row.

Parámetro

Descripción

fila

La fila a despejar: 1, 2 o 3.

Devoluciones: Ninguna.

// Clear row 2.
Controller.Screen.clearLine(2);

nuevaLínea()#

The newLine() method moves the cursor to the beginning of the next line.

Devoluciones: Ninguna.