![]() |
VEXcode IQ C++ Unofficial documentation for version 3.0.4.1
|
Classes | |
| class | battery |
| Use the battery class to see information about the battery. More... | |
| class | button |
| Use the button class to get values from the brain's buttons. More... | |
| class | lcd |
| Use this class to write or draw to the brain's LCD screen. More... | |
| class | terminal |
| Use the terminal class to send text to the brain USB port. More... | |
Public Member Functions | |
| brain () | |
| Creates a new brain object. | |
| double | timer (timeUnits units) |
| Gets the value of the timer in the units specified. | |
| void | resetTimer () |
| Resets the timer to zero. | |
| void | setTimer (double value, timeUnits units) |
| Sets the timer to a value and time unit. | |
| void | playSound (soundType sound) |
| play one of the predefined sounds on the brain | |
| void | playNote (int32_t octave, int32_t note) |
| play a note in the given octave on the brain | |
| void | playNote (int32_t octave, int32_t note, int32_t ms) |
| play a note in the given octave on the brain and wait for the given time before returning | |
| void | soundOff (void) |
| turn sound off on the brain | |
| void | programStop () |
| request that vexos stop the running program. The program will stop after approximately 500mS. | |
Public Attributes | |
| button | buttonUp = button(0) |
| A button that represents the Up/Left button on the brain. | |
| button & | buttonLeft = buttonUp |
| button | buttonDown = button(1) |
| A button that represents the Down/Right button on the brain. | |
| button & | buttonRight = buttonDown |
| button | buttonCheck = button(2) |
| A button that represents the Check button on the brain. | |
| lcd | Screen |
| Use the Screen class to write or draw to the screen. | |
| vex::timer | Timer |
| Use the Timer class to obtain the system time. | |
| battery | Battery |
| terminal | Terminal |
Definition at line 25 of file vex_brain.h.
| void vex::brain::setTimer | ( | double | value, |
| timeUnits | units ) |
Sets the timer to a value and time unit.
| value | The value that the timer is set to. |
| units | The unit of time that will be returned. |
| double vex::brain::timer | ( | timeUnits | units | ) |
Gets the value of the timer in the units specified.
| units | The unit of time that will be returned. |
| battery vex::brain::Battery |
Definition at line 339 of file vex_brain.h.
A button that represents the Check button on the brain.
Definition at line 89 of file vex_brain.h.
A button that represents the Down/Right button on the brain.
Definition at line 84 of file vex_brain.h.
Definition at line 80 of file vex_brain.h.
| button& vex::brain::buttonRight = buttonDown |
Definition at line 85 of file vex_brain.h.
A button that represents the Up/Left button on the brain.
Definition at line 79 of file vex_brain.h.
| lcd vex::brain::Screen |
Use the Screen class to write or draw to the screen.
Definition at line 290 of file vex_brain.h.
| terminal vex::brain::Terminal |
Definition at line 357 of file vex_brain.h.
| vex::timer vex::brain::Timer |
Use the Timer class to obtain the system time.
Definition at line 314 of file vex_brain.h.