C# Class Lego.Ev3.Core.Brick

Main EV3 brick interface
Exibir arquivo Open project: BrianPeek/legoev3 Class Usage Examples

Public Methods

Method Description
Brick ( ICommunication comm ) : System

Constructor

Brick ( ICommunication comm, bool alwaysSendEvents ) : System

Constructor

Disconnect ( ) : void

Disconnect from the EV3 brick

Private Methods

Method Description
ConnectAsync ( ) : Task
ConnectAsync ( TimeSpan pollingTime ) : Task
ConnectAsyncInternal ( TimeSpan pollingTime ) : Task
OnBrickChanged ( Lego.Ev3.Core.BrickChangedEventArgs e ) : void
PollSensorsAsync ( ) : Task
ReportReceived ( object sender, ReportReceivedEventArgs e ) : void
SendCommandAsyncInternal ( Lego.Ev3.Core.Command c ) : Task

Method Details

Brick() public method

Constructor
public Brick ( ICommunication comm ) : System
comm ICommunication Object implementing the interface for talking to the brick
return System

Brick() public method

Constructor
public Brick ( ICommunication comm, bool alwaysSendEvents ) : System
comm ICommunication Object implementing the interface for talking to the brick
alwaysSendEvents bool Send events when data changes, or at every poll
return System

Disconnect() public method

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