C# Class Lego.Ev3.Core.Brick

Main EV3 brick interface
Afficher le fichier Open project: BrianPeek/legoev3 Class Usage Examples

Méthodes publiques

Méthode Description
Brick ( ICommunication comm ) : System

Constructor

Brick ( ICommunication comm, bool alwaysSendEvents ) : System

Constructor

Disconnect ( ) : void

Disconnect from the EV3 brick

Private Methods

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

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

Brick() public méthode

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
Résultat System

Disconnect() public méthode

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