コード例 #1
0
        public FutabaMDM166A_AdvancedSetupForm(LedDisplay ld)
        {
            InitializeComponent();

            this.ld = ld;       // get the current leddisplay for color and other settings
            bits = 0;           // empty display
        }
コード例 #2
0
 /// <summary>
 /// Shows the advanced configuration screen
 /// </summary>
 public void Configure()
 {
     LedDisplay led = new LedDisplay();
     new FutabaMDM166A_AdvancedSetupForm(led).ShowDialog();
 }
コード例 #3
0
 /// <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);
 }
コード例 #4
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);
 }
コード例 #5
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);
 }