public Headbanger(byte address)
        {
            this.address = address;
            location     = LightConfiguration.getLocation(address);

            // initialise all four lights
            switch (location)
            {
            case LightLocationSet.BL:
            {
                this.pan         = 0;
                this.pan_fine    = 0;
                this.tilt        = 120;
                this.tilt_fine   = 0;
                this.fade        = 100;
                this.red         = 100;
                this.green       = 0;
                this.blue        = 0;
                this.white       = 0;
                this.color_macro = 0;
                this.strobe      = 0;
                this.sound       = 0;

                break;
            }

            case LightLocationSet.FL:
            {
                this.pan         = 120;
                this.pan_fine    = 0;
                this.tilt        = 80;
                this.tilt_fine   = 0;
                this.fade        = 100;
                this.red         = 50;
                this.green       = 0;
                this.blue        = 0;
                this.white       = 0;
                this.color_macro = 0;
                this.strobe      = 0;
                this.sound       = 0;

                break;
            }

            case LightLocationSet.FR:
            {
                this.pan         = 120;
                this.pan_fine    = 0;
                this.tilt        = 80;
                this.tilt_fine   = 0;
                this.fade        = 100;
                this.red         = 50;
                this.green       = 0;
                this.blue        = 0;
                this.white       = 0;
                this.color_macro = 0;
                this.strobe      = 0;
                this.sound       = 0;

                break;
            }

            case LightLocationSet.BR:
            {
                this.pan         = 0;
                this.pan_fine    = 0;
                this.tilt        = 120;
                this.tilt_fine   = 0;
                this.fade        = 100;
                this.red         = 0;
                this.green       = 100;
                this.blue        = 0;
                this.white       = 0;
                this.color_macro = 0;
                this.strobe      = 0;
                this.sound       = 0;

                break;
            }
            }
        }
Beispiel #2
0
 private void InitialiseLight(LightLocationSet location)
 {
     var light = new Headbanger(LightConfiguration.getAddress(location));
 }