コード例 #1
0
ファイル: HardwareComponent.cs プロジェクト: sycomix/Win10Bot
 public HardwareComponent(string name, CommunicationTask cTask, CancellationToken ct, int si)
 {
     ComponentName     = name;
     commTask          = cTask;
     cancellationToken = ct;
     Debug.Assert(si > 1, "samplingIntervalMs must be larger than 1");
     samplingIntervalMs = si;
 }
コード例 #2
0
 public HardwareComponent(string name, CommunicationTask cTask, CancellationToken ct, int si)
 {
     ComponentName = name;
     commTask = cTask;
     cancellationToken = ct;
     Debug.Assert(si > 1, "samplingIntervalMs must be larger than 1");
     samplingIntervalMs = si;
 }
コード例 #3
0
 public ArduinoBrick(CancellationTokenSource cts)
 {
     // we create the Brick every time we open the COM port
     tokenSource = cts;
     commTask    = new CommunicationTask(this);
 }
コード例 #4
0
ファイル: ArduinoBrick.cs プロジェクト: slgrobotics/Win10Bot
 public ArduinoBrick(CancellationTokenSource cts)
 {
     // we create the Brick every time we open the COM port
     tokenSource = cts;
     commTask = new CommunicationTask(this);
 }