Screen#

Introduction#

The Screen category includes blocks that allow your IQ (1st gen) Brain’s Screen to display text and values on the brain’s built-in screen.

The IQ (1st gen) Brain screen supports up to 5 rows and 21 columns of text.

The VEX IQ (1st gen) Brain with a numbered grid overlay (columns 1–21 and rows 1–5). Red overlay lines highlight the grid structure, with arrows labeling Column 1, Column 21, Row 1, Row 2, and Row 5. The first row displays numbers 1 through 21 across the top.

Below is a list of all blocks:

Cursor Print — Display text and values on the brain.

Settings — Configure screen display properties.

Cursor Print#

print#

The print block displays text on the brain’s screen at the current cursor position.

imprimir [VEXcode] en la pantalla ▶

Parameters

Description

value

The text, number, or variable value to display.

expanding arrow

Expand the block to read and set cursor to next row to make the cursor move to the next row after this block.

Example

cuando empezó
[Display a message at the starting cursor position.]
imprimir [Hello, Robot!] en la pantalla ◀ y coloque el cursor en la siguiente fila

set cursor to row column#

When using the set cursor to row column block, the cursor is placed at a specific row and column on the brain’s screen.

The IQ (1st gen) Brain uses a monospaced font, meaning each character has the same width for consistent text alignment. The IQ (1st gen) Brain screen supports up to 5 rows and 21 columns of text.

Set cursor stack block#
Coloque el cursor en la fila [1] columna [1] en la pantalla

Parameters

Description

row

The row of the cursor as an integer.

column

The column of the cursor as an integer.

Example

cuando empezó
[Display a message in the middle of the screen]
Coloque el cursor en la fila (3) columna (7) en la pantalla
imprimir [VEXcode!] en la pantalla ▶

The IQ (1st gen) Brain screen displaying centered text reading “VEXcode!”.

set cursor to next row#

The set cursor to next row block moves the cursor to column 1 on the next row on the brain’s screen.

Colocar el cursor en la siguiente fila de la pantalla

Parameters

Description

This block has no parameters.

Example

cuando empezó
[Display two lines of text.]
imprimir [First Message] en la pantalla ▶
Colocar el cursor en la siguiente fila de la pantalla
imprimir [Second Message] en la pantalla ◀ y coloque el cursor en la siguiente fila

The IQ (1st gen) Brain screen displaying “First Message” and “Second Message,” displayed on separate lines.

clear row#

The clear row block is used to clear a single row on the brain’s screen.

Limpiar la fila (1) de la pantalla

Parameters

Description

row

The row number to clear as an integer.

Example

cuando empezó
[Display text on two rows, but only keep one.]
imprimir [This text stays] en la pantalla ◀ y coloque el cursor en la siguiente fila
imprimir [This disappears] en la pantalla ◀ y coloque el cursor en la siguiente fila
esperar (3) segundos
Limpiar la fila (2) de la pantalla

Settings#

clear screen#

The clear screen block clears all text and drawings from the brain’s screen.

pantalla clara

Parameters

Description

This block has no parameters.

Example

cuando empezó
[Fill the screen, then clear it after 2 seconds.]
repetir (5)
imprimir [Line] en la pantalla ◀ y coloque el cursor en la siguiente fila
fin
esperar (3) segundos
pantalla clara

set print precision on screen#

The set print precision on screen block sets the precision formatting used for displaying numbers on the brain’s screen. This print precision will apply to all subsequently printed numbers.

Establezca la precisión de impresión en [0.1 v] en la pantalla

Parameters

Description

precision

Sets the print precision to:

  • 1
  • 0.1
  • 0.01
  • 0.001
  • All Digits

Example

cuando empezó
[Print 1/3 as 0.33.]
Establezca la precisión de impresión en [0.01 v] en la pantalla
imprimir ([1] / [3]) en la pantalla ◀ y coloque el cursor en la siguiente fila