脑部感知#
介绍#
“脑机感应”类别包含一些模块,用于检测来自 VEX IQ(第一代)脑机的输入并报告内部系统值。这些模块可以让您的项目响应按钮按下操作、监控电池状态,并在打印时确定当前屏幕光标位置。
这些模块通常与 Screen 或 Console 等视觉反馈工具配合使用,有助于在运行时创建交互式或响应式程序。
以下是所有模块的列表:
Brain button pressed — Reports whether a specific brain button is currently pressed.
battery capacity — Reports the brain’s current battery percentage.
when Brain button — Runs the attached stack of blocks when a brain button is pressed or released.
电池容量#
The battery capacity reporter block reports the battery level, as a percentage from 0% to 100%.
(battery capacity in %)
参数 |
描述 |
|---|---|
此代码块没有参数。 |
例子
当开始
[Display the current battery capacity.]
在屏幕上打印 (battery capacity in %)◀ 并设定光标为下一行