Brain Sensing#
Introduction#
The Brain Sensing category includes blocks that detect input from the VEX IQ (1st gen) Brain and report internal system values. These blocks allow your project to respond to button presses, monitor battery status, and determine the current screen cursor position when printing.
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 — 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.
battery capacity#
The battery capacity reporter block reports the battery level, as a percentage from 0% to 100%.
(battery capacity in %)
Parameters |
Description |
|---|---|
This block has no parameters. |
Example
when started
[Display the current battery capacity.]
print (battery capacity in %) on screen ◀ and set cursor to next row