大脑感知#
介绍#
Brain Sensing 类别包含可检测 VEX IQ(第二代)Brain 输入并报告内部系统值的模块。这些模块可让您的项目响应按钮按下、监控电池状态,并在打印时确定当前屏幕光标位置。
These blocks are often used in tandem with visual feedback tools such as the Screen or Console blocks, helping create interactive or responsive programs during runtime.
Below is a list of all blocks:
brain button pressed? — Returns a Boolean indicating whether a specific brain button is currently pressed.
battery capacity — Returns the current battery level as a percentage.
when Brain button — Executes the attached stack of blocks when a brain button is pressed or released.
电池容量#
电池容量 模块以百分比形式返回电池电量。它会返回一个 0 到 100 之间的数字。
(battery capacity in %)
参数 |
描述 |
|---|---|
该块没有参数。 |
例子
当开始
[Display the current battery capacity.]
在屏幕上打印 (battery capacity in %)◀ 并设定光标为下一行