<?xml version="1.0"?>
<device image="Mh.gif" initsequence="set 0 128;set 1 128;set 2 134">
	<information>
		<name>Mini Led Moving Head Wash (9 channel)</name>
		<author>Helmut</author>
		<vendor>Lixada</vendor>
		<comment>China Washer</comment>
		<version>1</version>
	</information>
	<channels>
		<function channel="0" minvalue="0" maxvalue="255" name="Pan" fade="no" type="pan" />
		<function channel="1" minvalue="0" maxvalue="255" name="Tilt" fade="no" type="tilt" />
		<function channel="2" minvalue="0" maxvalue="255" name="dimmer" fade="yes" action="GetDimmer" />
		<function channel="3" minvalue="0" maxvalue="255" name="rot" fade="yes" type="r" />
		<function channel="4" minvalue="0" maxvalue="255" name="grün" fade="yes" type="g" />
		<function channel="5" minvalue="0" maxvalue="255" name="blau" fade="yes" type="b" />
		<function channel="6" minvalue="0" maxvalue="255" name="weiß" fade="yes" type="w" />
		<function channel="7" minvalue="0" maxvalue="255" name="Motor speed" fade="yes" />
		<function channel="8" minvalue="0" maxvalue="255" name="reset" fade="no" />
	</channels>
	<form width="460" height="390">
		<deviceimage top="0" left="0" />
		<devicename top="0" left="40" />
		<deviceadress top="16" left="40" />
		<position top="40" left="12" height="180" width="180" />
		<slider top="180" left="232" height="20" width="180" startvalue="0" endvalue="255" channel="6" />
		<slider top="104" left="232" height="20" width="180" startvalue="0" endvalue="255" channel="4" />
		<slider top="60" left="232" height="20" width="180" startvalue="0" endvalue="255" channel="3" />
		<slider top="140" left="230" height="20" width="180" startvalue="0" endvalue="255" channel="5" />
		<label top="40" left="230" caption="Rot" />
		<label top="80" left="230" caption="Grün" />
		<label top="120" left="232" caption="Blau" />
		<label top="160" left="230" caption="Weiß" />
		<label top="224" left="64" caption="Motor Speed" />
		<slider top="248" left="12" height="41" width="177" startvalue="0" endvalue="255" channel="7" />
		<dropdown top="296" left="24" width="177" action="SetDimmer" name="colordrop">
			<item caption="No Effekt" value="0" minvalue="0" maxvalue="7" />
			<item caption="Dimmer" value="-1" />
			<item caption="Storbe speed" value="-2" />
			<item caption="Medallion" value="250" minvalue="240" maxvalue="255" />
		</dropdown>
		<command top="352" left="160" width="80" height="30" caption="Reset" clicksequence="save 8;set 8 175;hold 5500;restore 8" />
		<label top="280" left="232" caption="Dimmer" />
		<slider top="304" left="230" height="35" width="177" startvalue="0" endvalue="126" name="dimmer_speed" action="SetDimmer" />
		<label top="216" left="232" caption="Stobe speed" />
		<slider top="240" left="230" height="35" width="177" startvalue="0" endvalue="104" name="strobe_speed" action="SetDimmer" />
	</form>
	<code>
		<procedure name="INITCONTROLS">

   
   !call|GetDimmer$

   </procedure>
		<procedure name="GetDimmer">
!if|{channel_2} &lt; 8|
 !set_control|colordrop|{channel_2}$
|
!if|({channel_2} &gt; 7) and ({channel_2} &lt; 135)|
  !set_control|colordrop|-1$
  !set_control|dimmer_speed|({channel_2}-8)$
 $
!if|({channel_2} &gt; 134) and ({channel_2} &lt; 240)|
  !set_control|colordrop|-2$
  !set_control|strobe_speed|({channel_2}-135)$
 $
$
    </procedure>
		<procedure name="SetDimmer">
    
!if|{colordrop}|gt|-1|
 !set_channel|2|{colordrop}$
|
 !if|{colordrop}|eq|-1|
  !set_channel|2|(8+{dimmer_speed})$
 $
 !if|{colordrop}|eq|-2|
  !set_channel|2|(135+{strobe_speed})$
 $
$
    </procedure>
	</code>
</device>