DirectCommand MembersLEGO Mindstorms EV3 API Documentation
For more information, please see the OnlineCodePlex project page and the OnlineGetting Started guide.

The DirectCommand type exposes the following members.
Methods

  NameDescription
Public methodCleanUIAsync
Clear the entire screen
Public methodClearAllDevices
Resets all ports and devices to defaults.
Public methodClearChanges
Clears changes on specified port
Public methodDrawCircleAsync
Draw a circle
Public methodDrawDottedLineAsync
Draw a dotted line
Public methodDrawFillWindowAsync
Fills the width of the screen between the provided Y coordinates
Public methodDrawImageAsync
Draw an image to the LCD screen
Public methodDrawInverseRectangleAsync
Draw a filled rectangle, inverting the pixels underneath it
Public methodDrawLineAsync
Draw a line on the EV3 LCD screen
Public methodDrawPixelAsync
Draw a single pixel
Public methodDrawRectangleAsync
Draw a rectangle
Public methodDrawTextAsync
Write a string to the screen
Public methodEnableTopLineAsync
Enable or disable the top status bar
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodGetDeviceNameAsync
Get the name of the device attached to the specified port
Public methodGetFirmwareVersionAsync
Return the current version number of the firmware running on the EV3 brick.
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodGetModeNameAsync
Get the mode of the device attached to the specified port
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Public methodGetTypeModeAsync
Get the type and mode of the device attached to the specified port
Public methodIsBrickButtonPressedAsync
Returns whether the specified BrickButton is pressed
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodPlaySoundAsync
Play a sound file stored on the EV3 brick
Public methodPlayToneAsync
Plays a tone of the specified frequency for the specified time.
Public methodReadyPercentAsync
Read the percent value from the specified port in the specified mode
Public methodReadyRawAsync
Read the raw value from the specified port in the specified mode
Public methodReadySIAsync
Read the SI value from the specified port in the specified mode
Public methodSelectFontAsync
Select the font for text drawing
Public methodSetLedPatternAsync
Set EV3 brick LED pattern
Public methodSetMotorPolarity
Set the polarity (direction) of a motor.
Public methodStartMotorAsync
Start motors on the specified ports.
Public methodStepMotorAtPowerAsync(OutputPort, Int32, UInt32, Boolean)
Step the motor connected to the specified port or ports at the specified power for the specified number of steps.
Public methodStepMotorAtPowerAsync(OutputPort, Int32, UInt32, UInt32, UInt32, Boolean)
Step the motor connected to the specified port or ports at the specified power for the specified number of steps.
Public methodStepMotorAtSpeedAsync(OutputPort, Int32, UInt32, Boolean)
Step the motor connected to the specified port or ports at the specified speed for the specified number of steps.
Public methodStepMotorAtSpeedAsync(OutputPort, Int32, UInt32, UInt32, UInt32, Boolean)
Step the motor connected to the specified port or ports at the specified speed for the specified number of steps.
Public methodStepMotorSyncAsync
Synchronize stepping of motors.
Public methodStopMotorAsync
Stops motors on the specified ports.
Public methodTimeMotorSyncAsync
Synchronize timing of motors.
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Public methodTurnMotorAtPowerAsync
Turn the motor connected to the specified port or ports at the specified power.
Public methodTurnMotorAtPowerForTimeAsync(OutputPort, Int32, UInt32, Boolean)
Turn the motor connected to the specified port or ports at the specified power for the specified times.
Public methodTurnMotorAtPowerForTimeAsync(OutputPort, Int32, UInt32, UInt32, UInt32, Boolean)
Turn the motor connected to the specified port or ports at the specified power for the specified times.
Public methodTurnMotorAtSpeedAsync
Turn the specified motor at the specified speed.
Public methodTurnMotorAtSpeedForTimeAsync(OutputPort, Int32, UInt32, Boolean)
Turn the motor connected to the specified port or ports at the specified speed for the specified times.
Public methodTurnMotorAtSpeedForTimeAsync(OutputPort, Int32, UInt32, UInt32, UInt32, Boolean)
Turn the motor connected to the specified port or ports at the specified speed for the specified times.
Public methodUpdateUIAsync
Refresh the EV3 LCD screen
Back to Top
See Also