Ejemplo n.º 1
0
        public void SetLeds(HandPositions hand, uint[] positions, LF10LedColor color)
        {
            try
            {
                int leds = 0;

                foreach (uint position in positions)
                {
                    leds += GetLed(hand, position);
                }

                leds += (int)color;

                base.setDeviceProperty(PropertyType.FG_LEDS, leds);
            }
            catch (Exception e)
            {
                Trace.TraceError(e.ToString());
            }
        }
Ejemplo n.º 2
0
        public void SetAllFingerLeds(LF10LedColor color)
        {
            try
            {
                int leds = (int)LF10MultiLed.LEFT_LITTLE;
                leds += (int)LF10MultiLed.LEFT_RING;
                leds += (int)LF10MultiLed.LEFT_MIDDLE;
                leds += (int)LF10MultiLed.LEFT_INDEX;
                leds += (int)LF10MultiLed.LEFT_THUMB;
                leds += (int)LF10MultiLed.RIGHT_THUMB;
                leds += (int)LF10MultiLed.RIGHT_INDEX;
                leds += (int)LF10MultiLed.RIGHT_MIDDLE;
                leds += (int)LF10MultiLed.RIGHT_RING;
                leds += (int)LF10MultiLed.RIGHT_LITTLE;
                leds += (int)color;

                base.setDeviceProperty(PropertyType.FG_LEDS, leds);
            }
            catch (Exception e)
            {
                Trace.TraceError(e.ToString());
            }
        }