C# Class Lego.Ev3.WinRT.UsbCommunication

Communicate with EV3 brick over USB HID
Inheritance: ICommunication
Afficher le fichier Open project: BrianPeek/legoev3 Class Usage Examples

Méthodes publiques

Méthode 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

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

Method Details

ConnectAsync() public méthode

Connect to the EV3 brick.
public ConnectAsync ( ) : IAsyncAction
Résultat IAsyncAction

Disconnect() public méthode

Disconnect from the EV3 brick.
public Disconnect ( ) : void
Résultat void

WriteAsync() public méthode

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