VEX V5 Python API
Public Member Functions | Public Attributes | List of all members
vex.Brain Class Reference

Inherits vex.Device.

Public Member Functions

def __init__ (self)
 Use the brain class to see battery information, SD card information, or write to the Screen. More...
 
def type (self)
 Get the device type. More...
 
def installed (self)
 Gets the status of what is installed. More...
 
def value (self)
 

Public Attributes

 screen
 Use the Screen class to write or draw to the Screen. More...
 
 battery
 Brain's instance of the battery. More...
 
 three_wire_port
 Brain's instance of the internal TriPort. More...
 
 timer
 Use the Timer class to read the system time. More...
 
 sdcard
 SD card inserted into the Brain. More...
 
 serial
 Serial communication over USB or wireless @type vex.Serial. More...
 

Constructor & Destructor Documentation

◆ __init__()

def vex.Brain.__init__ (   self)

Use the brain class to see battery information, SD card information, or write to the Screen.

Member Function Documentation

◆ type()

def vex.Device.type (   self)
inherited

Get the device type.

Returns
V5DeviceType enum value

◆ installed()

def vex.Device.installed (   self)
inherited

Gets the status of what is installed.

Returns
Returns a true Boolean if the triport is installed. Returns a false Boolean if the triport is not installed.

◆ value()

def vex.Device.value (   self)
inherited

Member Data Documentation

◆ screen

vex.Brain.screen

Use the Screen class to write or draw to the Screen.

@type vex.BrainLcd

◆ battery

vex.Brain.battery

Brain's instance of the battery.

@type vex.BrainBattery

◆ three_wire_port

vex.Brain.three_wire_port

Brain's instance of the internal TriPort.

@type vex.Triport

◆ timer

vex.Brain.timer

Use the Timer class to read the system time.

@type vex.Timer

◆ sdcard

vex.Brain.sdcard

SD card inserted into the Brain.

@type vex.BrainSDCard

◆ serial

vex.Brain.serial

Serial communication over USB or wireless @type vex.Serial.