Пример #1
0
 /// <summary>
 /// constructor to access all futaba devices of
 /// the same vendor by vendor ID
 /// </summary>
 /// <param name="vid">vendor id of futaba device</param>
 public FutabaCOM(String vid)
 {
     //take over arguments
     _vid = vid;
     //connect to all devices of this vendor
     _usbDevices = new USBInterface(_vid);
     //create a new display instance
     _ledDisplay = new LedDisplay();
     //read all available keys and their values
     _dicChars = _ledDisplay.GetDictionary();
     //create a timer for display updates
     tiWriteText.Elapsed += new ElapsedEventHandler(tiWriteText_ElapsedHandler);
 }
Пример #2
0
 /// <summary>
 /// constructor without accessing devices
 /// </summary>
 public FutabaCOM()
 {
     //create a new display instance
     _ledDisplay = new LedDisplay();
     //read all available keys and their values
     _dicChars = _ledDisplay.GetDictionary();
     //create a timer for display updates
     tiWriteText.Elapsed += new ElapsedEventHandler(tiWriteText_ElapsedHandler);
 }