vex.brain.button module

Brain Buttons.

class vex.brain.button.BrainButton(id: str)[source]

Bases: object

Brain Button.

ROBOT MESH PYTHON B:

Use the Button class to get values from the Brain’s buttons.

robotmesh.com/studio/content/docs/vexiq-python_b/html/classvex_1_1_brain_button.html

pressing() bool[source]

Return Button’s pressed status.

VEXCODE PYTHON:

Reports if the specified button on the VEX IQ Brain is being pressed.

Reports True if the specified Brain button is pressed. Reports False if the specified Brain button is not pressed.

After brain. enter a Brain button to receive the pressed status on.

Supported Brain buttons are as follows: - buttonUp / buttonLeft - buttonDown / buttonRight - buttonCheck

ROBOT MESH PYTHON B:

Get the pressed status of a button.

Returns: True if pressed, False otherwise.