屏幕#
这些命令仅适用于连接到 VEX EXP Brain 的 VEX V5 控制器。
打印()#
The print(value, format, …)
method prints text on the screen using the current cursor position.
参数 |
描述 |
---|---|
价值 |
要打印的文本。 |
格式 |
**可选。**打印变量值时使用的格式说明符。 |
… |
可选。 要使用格式说明符打印的参数变量列表。 |
**返回:**无。
// Print the number 1 on the screen at current
// cursor position.
Controller.Screen.print(1);
设置光标()#
The setCursor(row, col)
method sets the cursor position used for printing text on the screen.
V5控制器最多可以显示3行文本。
范围 |
描述 |
---|---|
排 |
光标行:1、2 或 3。 |
科尔 |
光标所在的列。第一列是 1。 |
**返回:**无。
柱子()#
The column()
method returns the current column where text will be printed, starting at 1.
**返回:**当前列。
排()#
The row()
method returns the current row where text will be printed, starting at 1.
**返回:**当前行。
清除屏幕()#
The clearScreen()
method clears the whole screen.
**返回:**无。
清除线()#
有两种方法可以清除控制器屏幕上的一行。
The clearLine()
method clears the row that the cursor is currently on.
**返回:**无。
The clearLine(row)
method clears the specified row.
范围 |
描述 |
---|---|
排 |
要清除的行:1、2 或 3。 |
**返回:**无。
// Clear row 2.
Controller.Screen.clearLine(2);
新行()#
The newLine()
method moves the cursor to the beginning of the next line.
**返回:**无。