Пример #1
0
        public void SetPod(VuePod pod, int automode)
        {
            int podval = 0;

            switch (pod)
            {
            case VuePod.ONE:
                podval = 1;
                break;

            case VuePod.TWO:
                podval = 2;
                break;

            case VuePod.THREE:
                podval = 3;
                break;

            default:
                break;
            }
            if (podval > 0)
            {
                if (automode <= 0)
                {
                    SetLevel(0, startChannel + podval);
                }
                else if (automode > 27)
                {
                    SetLevel(255, startChannel + podval);
                }
                else
                {
                    SetLevel((5 * automode) + 37, startChannel + podval);
                }
            }
        }
Пример #2
0
        public void SetPod(VuePod pod, VuePodColor color)
        {
            int podval = 0;

            switch (pod)
            {
            case VuePod.ONE:
                podval = 1;
                break;

            case VuePod.TWO:
                podval = 2;
                break;

            case VuePod.THREE:
                podval = 3;
                break;

            default:
                break;
            }
            if (podval > 0)
            {
                switch (color)
                {
                case VuePodColor.BLACKOUT:
                    SetLevel(0, startChannel + podval);
                    break;

                case VuePodColor.RED:
                    SetLevel(7, startChannel + podval);
                    break;

                case VuePodColor.YELLOW:
                    SetLevel(12, startChannel + podval);
                    break;

                case VuePodColor.GREEN:
                    SetLevel(17, startChannel + podval);
                    break;

                case VuePodColor.BLUE:
                    SetLevel(22, startChannel + podval);
                    break;

                case VuePodColor.PURPLE:
                    SetLevel(27, startChannel + podval);
                    break;

                case VuePodColor.CYAN:
                    SetLevel(32, startChannel + podval);
                    break;

                case VuePodColor.WHITE:
                    SetLevel(37, startChannel + podval);
                    break;

                default:
                    break;
                }
            }
        }
Пример #3
0
 public void SetPod(VuePod pod, VuePodColor color)
 {
     int podval = 0;
     switch (pod)
     {
         case VuePod.ONE:
             podval = 1;
             break;
         case VuePod.TWO:
             podval = 2;
             break;
         case VuePod.THREE:
             podval = 3;
             break;
         default:
             break;
     }
     if (podval > 0)
     {
         switch (color)
         {
             case VuePodColor.BLACKOUT:
                 SetLevel(0, startChannel + podval);
                 break;
             case VuePodColor.RED:
                 SetLevel(7, startChannel + podval);
                 break;
             case VuePodColor.YELLOW:
                 SetLevel(12, startChannel + podval);
                 break;
             case VuePodColor.GREEN:
                 SetLevel(17, startChannel + podval);
                 break;
             case VuePodColor.BLUE:
                 SetLevel(22, startChannel + podval);
                 break;
             case VuePodColor.PURPLE:
                 SetLevel(27, startChannel + podval);
                 break;
             case VuePodColor.CYAN:
                 SetLevel(32, startChannel + podval);
                 break;
             case VuePodColor.WHITE:
                 SetLevel(37, startChannel + podval);
                 break;
             default:
                 break;
         }
     }
 }
Пример #4
0
 public void SetPod(VuePod pod, int automode)
 {
     int podval = 0;
     switch (pod)
     {
         case VuePod.ONE:
             podval = 1;
             break;
         case VuePod.TWO:
             podval = 2;
             break;
         case VuePod.THREE:
             podval = 3;
             break;
         default:
             break;
     }
     if (podval > 0)
     {
         if (automode <= 0) SetLevel(0, startChannel + podval);
         else if (automode > 27) SetLevel(255, startChannel + podval);
         else SetLevel((5 * automode) + 37, startChannel + podval);
     }
 }