public FutabaMDM166A_AdvancedSetupForm(LedDisplay ld)
        {
            InitializeComponent();

            this.ld = ld;       // get the current leddisplay for color and other settings
            bits = 0;           // empty display
        }
 /// <summary>
 /// Shows the advanced configuration screen
 /// </summary>
 public void Configure()
 {
     LedDisplay led = new LedDisplay();
     new FutabaMDM166A_AdvancedSetupForm(led).ShowDialog();
 }
 /// <summary>
 /// constructor to access all futaba devices of
 /// the same vendor by vendor ID and set the device
 /// with the appropriate product ID as the current device
 /// </summary>
 /// <param name="vid">vendor ID of futaba device</param>
 /// <param name="pid">product ID of futaba device</param>
 public FutabaCOM(String vid, String pid)
 {
     //take over arguments
     _vid = vid;
     _pid = pid;
     //connect to device
     _usbCurrentDevice = new USBInterface(_vid, _pid);
     //create a new display instance
     _ledDisplay = new LedDisplay();
     //read all available keys
     _keyList = _ledDisplay.GetKeys();
     //create a timer for display updates
     tiWriteText.Elapsed += new ElapsedEventHandler(tiWriteText_ElapsedHandler);
 }
 /// <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);
 }
 /// <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);
 }