C# Class Lego.Ev3.WinRT.UsbCommunication

Communicate with EV3 brick over USB HID
Inheritance: ICommunication
Mostrar archivo Open project: BrianPeek/legoev3 Class Usage Examples

Public Methods

Method Description
ConnectAsync ( ) : IAsyncAction

Connect to the EV3 brick.

Disconnect ( ) : void

Disconnect from the EV3 brick.

WriteAsync ( [ data ) : IAsyncAction

Write data to the EV3 brick.

Private Methods

Method Description
ConnectAsyncInternal ( ) : System.Threading.Tasks.Task
HidDeviceInputReportReceived ( HidDevice sender, HidInputReportReceivedEventArgs args ) : void
WriteAsyncInternal ( byte data ) : System.Threading.Tasks.Task

Method Details

ConnectAsync() public method

Connect to the EV3 brick.
public ConnectAsync ( ) : IAsyncAction
return IAsyncAction

Disconnect() public method

Disconnect from the EV3 brick.
public Disconnect ( ) : void
return void

WriteAsync() public method

Write data to the EV3 brick.
public WriteAsync ( [ data ) : IAsyncAction
data [ Byte array to write to the EV3 brick.
return IAsyncAction