Beispiel #1
0
        public override void SetLevel(LampDevice lampDevice, float level)
        {
            byte byteLevel = (byte)(level * 255.0f);

            // size, payload[size]
            byte[] data = new byte[] { (byte)3, (byte)DEVICE_ID, (byte)lampDevice.Channel, (byte)byteLevel };

            if (mSerialHelper.IsConnected)
                mSerialHelper.WriteData(data);
        }
Beispiel #2
0
        public override void SetLevel(LampDevice lampDevice, float level)
        {
            byte byteLevel = (byte)(level * 255.0f);

            // size, payload[size]
            byte[] data = new byte[] { (byte)3, (byte)DEVICE_ID, (byte)lampDevice.Channel, (byte)byteLevel };

            if (mSerialHelper.IsConnected)
            {
                mSerialHelper.WriteData(data);
            }
        }
Beispiel #3
0
 public abstract void SetLevel(LampDevice lampDevice, float level);
Beispiel #4
0
 public abstract void SetLevel(LampDevice lampDevice, float level);