コード例 #1
0
 public void Stop()
 {
     if (!IsRunning()) return;
     _timer.Enabled = false;
     Controller.Dispose();
     Controller = null;
 }
コード例 #2
0
        public void Start()
        {
            if (IsRunning()) return;

            Controller = new rklcd.Controller();
            Controller.ButtonUp += Controller_ButtonUp;
            PaintImage();
            _timer = new System.Timers.Timer(40);
            _timer.Elapsed += Timer_Tick;
            _timer.Enabled = true;
        }
コード例 #3
0
        public void Start()
        {
            if (IsRunning())
            {
                return;
            }

            Controller           = new rklcd.Controller();
            Controller.ButtonUp += Controller_ButtonUp;
            PaintImage();
            _timer          = new System.Timers.Timer(40);
            _timer.Elapsed += Timer_Tick;
            _timer.Enabled  = true;
        }