Exemplo n.º 1
0
        private void button_ScreenColorStop_Click(object sender, EventArgs e)
        {
            this.ledController.Stop();
            this.ledController = null;

            this.button_mode.Enabled             = true;
            this.button_ScreenColorStart.Enabled = true;
            this.button_ScreenColorStop.Enabled  = false;
        }
Exemplo n.º 2
0
        private void button_ScreenColorStart_Click(object sender, EventArgs e)
        {
            this.ledController = new SmoothRandomLEDController(
                this.messageSender,
                this.settings.UpdatesPerSecond,
                SmoothRandomLEDController.DEFAULT_SECONDS_BETWEEN_CHANGE,
                SmoothRandomLEDController.DEFAULT_TRANSITION_TIME);
            //this.ledController = new SmoothRandomLEDController(this.settings, this.messageSender);
            //this.ledController = new HueCycleLEDController(this.settings, this.messageSender);
            //this.ledController = new ScreenLEDController(this.settings, this.messageSender);
            this.ledController.Start();

            this.button_mode.Enabled             = false;
            this.button_ScreenColorStart.Enabled = false;
            this.button_ScreenColorStop.Enabled  = true;
        }
 void Awake()
 {
     led_ = LEDController.Instance;
 }
Exemplo n.º 4
0
 void Awake()
 {
     led_ = LEDController.Instance;
 }