Пример #1
0
        public void Connect()
        {
            if (_ezb.EZBType != EZB.EZ_B_Type_Enum.ezb4)
            {
                return;
            }

            Disconnect();

            if (!_ezb.IsConnected)
            {
                return;
            }

            if (_bw == null)
            {
                _bw         = new EZBGWorker("MIP Controller");
                _bw.DoWork += _bw_DoWork;
            }

            Init(UART_PORT);

            if (_bw.IsBusy)
            {
                _bw.RunWorkerAsync();
            }
        }
Пример #2
0
        /// <summary>
        /// Create an instance of the AutoPosition Control
        /// </summary>
        public HT16K33Animator(EZB ezb, string name)
        {
            Name = name;

            _ezb = ezb;

            _ht = new HT16K33(ezb);

            _tf                     = new EZBGWorker(string.Format("HT16K33 Animator for {0}", name));
            _tf.DoWork             += _tf_DoWork;
            _tf.RunWorkerCompleted += _tf_RunWorkerCompleted;
        }
Пример #3
0
        /// <summary>
        /// Create an instance of the AutoPosition Control
        /// </summary>
        public RGBAnimator(EZB ezb, string name)
        {
            Name = name;

            _ezb = ezb;

            _eyes = new RGBEyes(_ezb);

            _tf                     = new EZBGWorker(string.Format("RGB Animator for: {0}", name));
            _tf.DoWork             += _tf_DoWork;
            _tf.RunWorkerCompleted += _tf_RunWorkerCompleted;
        }