<?xml version="1.0"?>
<device image="Lightmaxx led mega par 64 black.gif" initsequence="set 0 0; set 1 0; set 2 0; set 3 0; set 4 0; set 5 0">
	<information>
		<comment>7 Channel Mode</comment>
		<vendor>Lightmaxx</vendor>
		<name>LightmaXX LED Mega PAR 64</name>
	</information>
	<channels>
		<function channel="0" minvalue="0" maxvalue="255" name="Dimmer" fade="yes" type="dimmer" />
		<function channel="1" minvalue="0" maxvalue="255" name="Strobe" fade="yes" action="GetShutter" />
		<function channel="2" minvalue="0" maxvalue="255" name="Red" fade="yes" type="r" />
		<function channel="3" minvalue="0" maxvalue="255" name="Green" fade="yes" type="g" />
		<function channel="4" minvalue="0" maxvalue="255" name="Blue" fade="yes" type="b" />
		<function channel="5" minvalue="0" maxvalue="255" name="White" fade="yes" type="w" />
		<function channel="6" minvalue="0" maxvalue="255" name="Function" fade="no" />
	</channels>
	<form width="294" height="282">
		<deviceimage top="0" left="0" width="50" height="50" />
		<devicename top="0" left="56" />
		<deviceadress top="16" left="56" />
		<slider top="256" left="56" height="33" width="129" startvalue="0" endvalue="255" name="strobe_speed" largechange="4" smallchange="1" tickfreq="16" action="SetShutter" />
		<colorpicker top="120" left="16" height="60" width="158" mode="rgb" layout="1" channel3="4" channel2="3" channel1="2" />
		<label top="104" left="16" caption="RGB" />
		<label top="240" left="16" caption="Strobe" />
		<label top="40" left="192" caption="Function" />
		<label top="56" left="16" caption="Dimmer" />
		<label top="192" left="16" caption="White" />
		<slider top="72" left="8" height="33" width="177" startvalue="0" endvalue="255" channel="0" />
		<slider top="208" left="8" height="33" width="177" startvalue="0" endvalue="255" channel="5" />
		<onoff top="256" left="16" width="40" height="22" caption="On" name="strobe_on" action="SetShutter" />
		<command top="40" left="88" width="80" height="22" caption="Single Flash" clicksequence="set 0 255;hold 20;set 0 0" />
		<options top="64" left="192" name="mode_select" action="SetMode">
			<option value="-1" caption="off" top="0" left="0" />
			<option value="-2" caption="Sound2Light" top="20" left="0" />
			<option value="-3" caption="Colour macro" top="40" left="0" />
			<option value="-4" caption="Colour change" top="60" left="0" />
			<option value="-5" caption="Colour dream" top="80" left="0" />
		</options>
	</form>
	<code>
		<procedure name="INITCONTROLS">!call|GetShutter$
!call|GetMode$</procedure>
		<procedure name="GetShutter">
!if|({channel_1} &lt; 1)|
 !set_control|strobe_on|0$
 !set_control|strobe_speed|0$
|
!if|({channel_1} &gt; 0)|
  !set_control|strobe_on|1$
  !set_control|strobe_speed|{channel_1}$
  $
$</procedure>
		<procedure name="SetShutter">!if|({strobe_on} = 1)|
 !set_channel|1|{strobe_speed}$
|
 !set_channel|1|0$
$

</procedure>
		<procedure name="SetMode">
!if|{mode_select} = -1|
 !set_channel|6|0$
|
 !if|{mode_select} = -2|
  !set_channel|6|1$
 $
 !if|{mode_select} = -3|
  !set_channel|6|5$
 $
 !if|{mode_select} = -4|
  !set_channel|6|81$
 $
 !if|{mode_select} = -5|
  !set_channel|6|151$
 $
$
    </procedure>
		<procedure name="GetMode">
!if|({channel_6} &lt; 1)|
 !set_control|mode_select|-1$
|
!if|({channel_6} &gt; 0) and ({channel_6} &lt; 5)|
  !set_control|mode_select|-2$
 $
!if|({channel_6} &gt; 4) and ({channel_6} &lt; 81)|
  !set_control|mode_select|-3$
 $
!if|({channel_6} &gt; 80) and ({channel_6} &lt; 151)|
  !set_control|mode_select|-4$
 $
!if|({channel_6} &gt; 150)|
  !set_control|mode_select|-5$
 $
$</procedure>
	</code>
</device>