VEXcode IQ C++ Unofficial documentation for version 3.0.4.1
All Classes Namespaces Files Functions Variables Enumerations
vex::console Class Reference
Inheritance diagram for vex::console:
vex::brain

Static Public Member Functions

static int32_t write (const char *fmt,...)
 print formatted output on the serial console
 

Additional Inherited Members

- Public Member Functions inherited from vex::brain
 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 inherited from vex::brain
button buttonUp = button(0)
 A button that represents the Up/Left button on the brain.
 
buttonbuttonLeft = buttonUp
 
button buttonDown = button(1)
 A button that represents the Down/Right button on the brain.
 
buttonbuttonRight = 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
 

Detailed Description

Definition at line 27 of file vex_console.h.

Member Function Documentation

◆ write()

static int32_t vex::console::write ( const char * fmt,
... )
static

print formatted output on the serial console

Parameters
formatThis is a reference to a char format that prints the value of variables.
...A variable list of parameters to insert into format string.

The documentation for this class was generated from the following file: