<?xml version="1.0"?>
<!-- ISO-8859-1  encoding="UTF-8" -->
<device image="Ledbar252.gif" initsequence="set 0 0; set 1 0; set 2 0; set 3 0; set 4 0; set 5 0; set 6 0; set 7 0; set 8 0; set 9 0; set 10 0; set 11 0; set 12 0; set 13 0; set 14 0">
	<information>
		<name>LED Bar RGB 252</name>
		<comment>Eurolite LED Bar RGB 252 Indoor</comment>
		<author>Manfred Schaffran</author>
		<vendor>Eurolite</vendor>
	</information>
	<channels>
		<function channel="0" minvalue="0" maxvalue="255" name="Modus" fade="no" type="dimmer" action="GetModus"/>
		<function channel="1" minvalue="0" maxvalue="255" name="Dimmer" fade="yes" type="dimmer" />
		<function channel="2" minvalue="0" maxvalue="255" name="Flash" fade="yes" type="dimmer" />
		<function channel="3" minvalue="0" maxvalue="255" name="Rot" fade="yes" type="r" action="GetColor_1" />
		<function channel="4" minvalue="0" maxvalue="255" name="Gruen" fade="yes" type="g" action="GetColor_1" />
		<function channel="5" minvalue="0" maxvalue="255" name="Blau" fade="yes" type="b" action="GetColor_1" />
		<function channel="6" minvalue="0" maxvalue="255" name="Rot 2" fade="yes" type="r" action="GetColor_2" />
		<function channel="7" minvalue="0" maxvalue="255" name="Gruen 2" fade="yes" type="g" action="GetColor_2" />
		<function channel="8" minvalue="0" maxvalue="255" name="Blau 2" fade="yes" type="b" action="GetColor_2" />
		<function channel="9" minvalue="0" maxvalue="255" name="Rot 3" fade="yes" type="r" action="GetColor_3" />
		<function channel="10" minvalue="0" maxvalue="255" name="Gruen 3" fade="yes" type="g" action="GetColor_3" />
		<function channel="11" minvalue="0" maxvalue="255" name="Blau 3" fade="yes" type="b" action="GetColor_3" />
		<virtual channel="12" minvalue="0" maxvalue="255" name="Virtueller Dimmer1" fade="yes" type="dimmer">
			<channel channel="3" />
			<channel channel="4" />
			<channel channel="5" />
		</virtual>
		<virtual channel="13" minvalue="0" maxvalue="255" name="Virtueller Dimmer2" fade="yes" type="dimmer">
			<channel channel="6" />
			<channel channel="7" />
			<channel channel="8" />
		</virtual>
		<virtual channel="14" minvalue="0" maxvalue="255" name="Virtueller Dimmer3" fade="yes" type="dimmer">
			<channel channel="9" />
			<channel channel="10" />
			<channel channel="11" />
		</virtual>
	</channels>
	<form width="310" height="370">
		<deviceimage top="8" left="16" width="64" height="39" />
		<devicename top="8" left="176" />
		<deviceadress top="32" left="176" />
		<label top="55" left="15" caption="Modus" />
		<!--     Dropdown MODUS   		-->
		<!--     3 x Dropdown Color  und 1 x Modul       -->
		<dropdown top="55" left="110" width="180" name="Modus" action="SetModus">
			<item caption="Black Out" value="0" color="#000000" />
			<item caption="RGB 3" value="5" />
			<item caption="RGB All" value="16" />
			<item caption="Rot" value="32" color="#ff0000" />
			<item caption="Gruen" value="48" color="#00ff00" />
			<item caption="Blau" value="64" color="#0080ff" />
			<item caption="Pink" value="80" color="#ff00ff" />
			<item caption="Gelb" value="96" color="#ffff00" />
			<item caption="Tuerkis" value="112" color="#00ffff" />
			<item caption="Weiss" value="128" color="#ffffff" />
			<item caption="Color Change" value="144" />
			<item caption="Color Flow" value="160" />
			<item caption="Color Dream" value="176" />
			<item caption="Multi Flow" value="192" />
			<item caption="Dream Flow" value="208" />
			<item caption="Two Color Flow" value="224" />
			<item caption="Musikgesteuert" value="240" icon="note.gif" />
		</dropdown>
		<dropdown top="332" left="8" width="90" name="Color_1" action="SetColor_1">
			<item caption="schwarz" value="0" color="#000000" />
			<item caption="rot" value="20" color="#ff0000" />
			<item caption="gruen" value="40" color="#00ff00" />
			<item caption="blau" value="60" color="#0000ff" />
			<item caption="orange" value="80" color="#ff8000" />
			<item caption="gelb" value="100" color="#ffff00" />
			<item caption="magenta" value="120" color="#ff0080" />
			<item caption="lila" value="140" color="#ff0080" />
			<item caption="weiss konv" value="255" color="#ffffff" />
		</dropdown>
		<dropdown top="332" left="112" width="90" name="Color_2" action="SetColor_2">
			<item caption="schwarz" value="0" color="#000000" />
			<item caption="rot" value="20" color="#ff0000" />
			<item caption="gruen" value="40" color="#00ff00" />
			<item caption="blau" value="60" color="#0000ff" />
			<item caption="orange" value="80" color="#ff8000" />
			<item caption="gelb" value="100" color="#ffff00" />
			<item caption="magenta" value="120" color="#ff0080" />
			<item caption="lila" value="140" color="#ff0080" />
			<item caption="weiss konv" value="255" color="#ffffff" />
		</dropdown>
		<dropdown top="332" left="216" width="90" name="Color_3" action="SetColor_3">
			<item caption="schwarz" value="0" color="#000000" />
			<item caption="rot" value="20" color="#ff0000" />
			<item caption="gruen" value="40" color="#00ff00" />
			<item caption="blau" value="60" color="#0000ff" />
			<item caption="orange" value="80" color="#ff8000" />
			<item caption="gelb" value="100" color="#ffff00" />
			<item caption="magenta" value="120" color="#ff0080" />
			<item caption="lila" value="140" color="#ff0080" />
			<item caption="weiss konv" value="255" color="#ffffff" />
		</dropdown>
		<!--     Dropdown ENDE   -->
		<!--                     -->
		<!--     2 x MAIN Slider mit Beschriftung ueber Colorpicker       -->
		<!--     3 x Colorpicker       -->
		<label top="90" left="15" caption="Dimmer - Speed" />
		<label top="125" left="15" caption="Flash" />
		<slider top="90" left="110" height="36" width="180" startvalue="0" endvalue="255" name="DimmSpeed" channel="1" />
		<slider top="125" left="110" height="36" width="180" startvalue="0" endvalue="255" channel="2" />
		<colorpicker top="165" left="4" height="80" width="90" mode="rgb" layout="2" channel3="5" channel2="4" channel1="3" />
		<colorpicker top="165" left="108" height="80" width="90" mode="rgb" layout="2" channel3="8" channel2="7" channel1="6" />
		<colorpicker top="165" left="212" height="80" width="90" mode="rgb" layout="2" channel3="11" channel2="10" channel1="9" />
		<!--            -->
		<!--     ENDE   -->
		<!--            -->
		<!--     Beschriftung und 3 x Slider Helligkeit       -->
		<!--     3 x 3 Taster je Modul       -->
		<label top="256" left="4" caption="Helligkeit:" />
		<slider top="276" left="4" height="30" width="90" startvalue="0" endvalue="255" channel="12" />
		<slider top="276" left="108" height="30" width="90" startvalue="0" endvalue="255" channel="13" />
		<slider top="276" left="212" height="30" width="90" startvalue="0" endvalue="255" channel="14" />
		<!--            -->
		<command top="304" left="4" width="28" caption="0" clicksequence="set 12 0;" />
		<command top="304" left="36" width="28" caption="50" clicksequence="set 12 128;" />
		<command top="304" left="72" width="28" caption="V" clicksequence="set 12 255;" />
		<command top="304" left="108" width="28" caption="0" clicksequence="set 13 0;" />
		<command top="304" left="144" width="28" caption="50" clicksequence="set 13 128;" />
		<command top="304" left="176" width="28" caption="V" clicksequence="set 13 255;" />
		<command top="304" left="212" width="28" caption="0" clicksequence="set 14 0;" />
		<command top="304" left="244" width="28" caption="50" clicksequence="set 14 128;" />
		<command top="304" left="276" width="28" caption="V" clicksequence="set 14 255;" />
		<!--   Trennlinien         -->
		<line y1="288" x1="206" y2="352" x2="206" />
		<line y1="288" x1="104" y2="352" x2="104" />
	</form>
	<!--      START der PROCEDUREN                             -->
	<!--      Proceduren IMMER HINTER dem FORM Bereich         -->
	<!--                                                       -->
	<!--  Das Dropdown hat den Namen Color_1 und startet die   -->
	<!--  Aktion SetColor_1 in Abhaengigkeit vom Wert des       -->
	<!--  dropdowns wird ueber die IF Abfrage ausgewaehlt      -->
	<!--  wie die jeweiligen RGBs gesetzt werden muessen       -->
	<!--                              -->
	<code>
		<procedure name="INITCONTROLS">
      !call|GetColor_1$
      !call|GetColor_2$
      !call|GetColor_3$
      !call|GetModus$
   </procedure>

   <procedure name="SetModus">
      !if|({Modus}=0)| 
      !set_channel|0|0$
      $
      !if|({Modus}=5)| 
      !set_channel|0|5$
      $
      !if|({Modus}=16)| 
      !set_channel|0|16$
      $
      !if|({Modus}=32)| 
      !set_channel|0|32$
      $
      !if|({Modus}=48)| 
      !set_channel|0|48$
      $
      !if|({Modus}=64)| 
      !set_channel|0|64$
      $
      !if|({Modus}=80)| 
      !set_channel|0|80$
      $
      !if|({Modus}=96)| 
      !set_channel|0|96$
      $
      !if|({Modus}=112)| 
      !set_channel|0|112$
      $
      !if|({Modus}=128)| 
      !set_channel|0|128$
      $
      !if|({Modus}=144)| 
      !set_channel|0|144$
      $
      !if|({Modus}=160)| 
      !set_channel|0|160$
      $
      !if|({Modus}=176)| 
      !set_channel|0|176$
      $
      !if|({Modus}=192)| 
      !set_channel|0|192$
      $
      !if|({Modus}=208)| 
      !set_channel|0|208$
      $
      !if|({Modus}=224)| 
      !set_channel|0|224$
      $
      !if|({Modus}=240)| 
      !set_channel|0|240$
      $
</procedure>
		
		
<procedure name="GetModus">

      !if|({channel_0}=0)|
      !set_control|Modus|0$
      $
      !if|({channel_0}=5)|
      !set_control|Modus|5$
      $
      !if|({channel_0}=16)|
      !set_control|Modus|16$
      $
      !if|({channel_0}=32)|
      !set_control|Modus|32$
      $
      !if|({channel_0}=48)|
      !set_control|Modus|48$
      $
      !if|({channel_0}=64)|
      !set_control|Modus|64$
      $
      !if|({channel_0}=80)|
      !set_control|Modus|80$
      $
      !if|({channel_0}=96)|
      !set_control|Modus|96$
      $
      !if|({channel_0}=112)|
      !set_control|Modus|112$
      $
      !if|({channel_0}=144)|
      !set_control|Modus|144$
      $
      !if|({channel_0}=160)|
      !set_control|Modus|160$
      $
      !if|({channel_0}=176)|
      !set_control|Modus|176$
      $
      !if|({channel_0}=192)|
      !set_control|Modus|192$
      $
      !if|({channel_0}=208)|
      !set_control|Modus|208$
      $
      !if|({channel_0}=224)|
      !set_control|Modus|224$
      $
      !if|({channel_0}=240)|
      !set_control|Modus|240$
      $
</procedure>




		<procedure name="SetColor_1">
      !if|({Color_1}=0)| 
      !set_channel|3|0$  
      !set_channel|4|0$
      !set_channel|5|0$
      $
      !if|({Color_1}=20)|
      !set_channel|3|255$
      !set_channel|4|0$
      !set_channel|5|0$
      $
      !if|({Color_1}=40)|
      !set_channel|3|0$
      !set_channel|4|255$
      !set_channel|5|0$
      $
      !if|({Color_1}=60)|
      !set_channel|3|0$
      !set_channel|4|0$
      !set_channel|5|255$
     $
      !if|({Color_1}=80)|
      !set_channel|3|255$
      !set_channel|4|90$
      !set_channel|5|0$
      $
      !if|({Color_1}=100)|
      !set_channel|3|255$
      !set_channel|4|250$
      !set_channel|5|0$
      $
      !if|({Color_1}=120)|
      !set_channel|3|245$
      !set_channel|4|0$
      !set_channel|5|170$
      $
      !if|({Color_1}=140)|
      !set_channel|3|110$
      !set_channel|4|0$
      !set_channel|5|200$
      $
      !if|({Color_1}=255)|
      !set_channel|3|255$
      !set_channel|4|255$
      !set_channel|5|255$
      $
</procedure>
		<procedure name="GetColor_1">
      !if|(({channel_3}=0) and ({channel_4}=0) and ({channel_5}=0))|
      !set_control|Color_1|0$
      $
      !if|(({channel_3}=255) and ({channel_4}=0) and ({channel_5}=0))|
      !set_control|Color_1|20$
      $
      !if|(({channel_3}=0) and ({channel_4}=255) and ({channel_5}=0))|
      !set_control|Color_1|40$
      $
      !if|(({channel_3}=0) and ({channel_4}=0) and ({channel_5}=255))|
      !set_control|Color_1|60$
      $
      !if|(({channel_3}=255) and ({channel_4}=90) and ({channel_5}=0))|
      !set_control|Color_1|80$
      $
      !if|(({channel_3}=255) and ({channel_4}=250) and ({channel_5}=0))|
      !set_control|Color_1|100$
      $
      !if|(({channel_3}=245) and ({channel_4}=0) and ({channel_5}=170))|
      !set_control|Color_1|120$
      $
      !if|(({channel_3}=110) and ({channel_4}=0) and ({channel_5}=200))|
      !set_control|Color_1|140$
      $
      !if|(({channel_3}=255) and ({channel_4}=255) and ({channel_5}=255))|
      !set_control|Color_1|255$
      $
</procedure>
		<procedure name="SetColor_2">
      !if|({Color_2}=0)| 
      !set_channel|6|0$  
      !set_channel|7|0$
      !set_channel|8|0$
      $
      !if|({Color_2}=20)|
      !set_channel|6|255$
      !set_channel|7|0$
      !set_channel|8|0$
      $
      !if|({Color_2}=40)|
      !set_channel|6|0$
      !set_channel|7|255$
      !set_channel|8|0$
      $
      !if|({Color_2}=60)|
      !set_channel|6|0$
      !set_channel|7|0$
      !set_channel|8|255$
     $
      !if|({Color_2}=80)|
      !set_channel|6|255$
      !set_channel|7|90$
      !set_channel|8|0$
      $
      !if|({Color_2}=100)|
      !set_channel|6|255$
      !set_channel|7|250$
      !set_channel|8|0$
      $
      !if|({Color_2}=120)|
      !set_channel|6|245$
      !set_channel|7|0$
      !set_channel|8|170$
      $
      !if|({Color_2}=140)|
      !set_channel|6|110$
      !set_channel|7|0$
      !set_channel|8|200$
      $
      !if|({Color_2}=255)|
      !set_channel|6|255$
      !set_channel|7|255$
      !set_channel|8|255$
      $
</procedure>
		<procedure name="GetColor_2">
      !if|(({channel_6}=0) and ({channel_7}=0) and ({channel_8}=0))|
      !set_control|Color_2|0$
      $
      !if|(({channel_6}=255) and ({channel_7}=0) and ({channel_8}=0))|
      !set_control|Color_2|20$
      $
      !if|(({channel_6}=0) and ({channel_7}=255) and ({channel_8}=0))|
      !set_control|Color_2|40$
      $
      !if|(({channel_6}=0) and ({channel_7}=0) and ({channel_8}=255))|
      !set_control|Color_2|60$
      $
      !if|(({channel_6}=255) and ({channel_7}=90) and ({channel_8}=0))|
      !set_control|Color_2|80$
      $
      !if|(({channel_6}=255) and ({channel_7}=250) and ({channel_8}=0))|
      !set_control|Color_2|100$
      $
      !if|(({channel_6}=245) and ({channel_7}=0) and ({channel_8}=170))|
      !set_control|Color_2|120$
      $
      !if|(({channel_6}=110) and ({channel_7}=0) and ({channel_8}=200))|
      !set_control|Color_2|140$
      $
      !if|(({channel_6}=255) and ({channel_7}=255) and ({channel_8}=255))|
      !set_control|Color_2|255$
      $
</procedure>
		<procedure name="SetColor_3">
      !if|({Color_3}=0)| 
      !set_channel|9|0$  
      !set_channel|10|0$
      !set_channel|11|0$
      $
      !if|({Color_3}=20)|
      !set_channel|9|255$
      !set_channel|10|0$
      !set_channel|11|0$
      $
      !if|({Color_3}=40)|
      !set_channel|9|0$
      !set_channel|10|255$
      !set_channel|11|0$
      $
      !if|({Color_3}=60)|
      !set_channel|9|0$
      !set_channel|10|0$
      !set_channel|11|255$
     $
      !if|({Color_3}=80)|
      !set_channel|9|255$
      !set_channel|10|90$
      !set_channel|11|0$
      $
      !if|({Color_3}=100)|
      !set_channel|9|255$
      !set_channel|10|250$
      !set_channel|11|0$
      $
      !if|({Color_3}=120)|
      !set_channel|9|245$
      !set_channel|10|0$
      !set_channel|11|170$
      $
      !if|({Color_3}=140)|
      !set_channel|9|110$
      !set_channel|10|0$
      !set_channel|11|200$
      $
      !if|({Color_3}=255)|
      !set_channel|9|255$
      !set_channel|10|255$
      !set_channel|11|255$
      $
</procedure>
		<procedure name="GetColor_3">
      !if|(({channel_9}=0) and ({channel_10}=0) and ({channel_11}=0))|
      !set_control|Color_3|0$
      $
      !if|(({channel_9}=255) and ({channel_10}=0) and ({channel_11}=0))|
      !set_control|Color_3|20$
      $
      !if|(({channel_9}=0) and ({channel_10}=255) and ({channel_11}=0))|
      !set_control|Color_3|40$
      $
      !if|(({channel_9}=0) and ({channel_10}=0) and ({channel_11}=255))|
      !set_control|Color_3|60$
      $
      !if|(({channel_9}=255) and ({channel_10}=90) and ({channel_11}=0))|
      !set_control|Color_3|80$
      $
      !if|(({channel_9}=255) and ({channel_10}=250) and ({channel_11}=0))|
      !set_control|Color_3|100$
      $
      !if|(({channel_9}=245) and ({channel_10}=0) and ({channel_11}=170))|
      !set_control|Color_3|120$
      $
      !if|(({channel_9}=110) and ({channel_10}=0) and ({channel_11}=200))|
      !set_control|Color_3|140$
      $
      !if|(({channel_9}=255) and ({channel_10}=255) and ({channel_11}=255))|
      !set_control|Color_3|255$
      $
</procedure>
	</code>
</device>