-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathblocks.xml
50 lines (50 loc) · 2.49 KB
/
blocks.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?xml version="1.0" encoding="utf-8"?>
<EditorDefinitions>
<PolyGroups ModuleName="OFDL Pixy2" ModuleVersion="3.0 (By OFDL Dev.)">
<PolyGroup Name="OFDL_Pixy2" BlockFamily="Sensor">
<Parameter Name="Port" CompilerDirectives="OneInputPort" Direction="Input" DefaultValue="1" />
<Parameter Name="signatureIn" Identification="builtin://Identification_Index.png" DataType="Int16" Direction="Input" DefaultValue="1" />
<Parameter Name="xOut" Identification="builtin://Identification_x.png" DataType="Single" Direction="Output" />
<Parameter Name="yOut" Identification="builtin://Identification_y.png" DataType="Single" Direction="Output" />
<Parameter Name="widthOut" Identification="builtin://Identification_Width.png" DataType="Single" Direction="Output" />
<Parameter Name="heightOut" Identification="builtin://Identification_Height.png" DataType="Single" Direction="Output" />
<Parameter Name="lampEnable" Identification="builtin://Identification_MeasuredLight.png" DataType="Boolean" Direction="Input" DefaultValue="False" />
<Hardware>
<NXTPlotColor>#ffff3132</NXTPlotColor>
<EV3PlotColor>#ff785028</EV3PlotColor>
<EV3AutoID>-1</EV3AutoID> <!--Use autoID -1 if your sensor does not support autoID on the EV3.-->
<Direction>Input</Direction>
<DefaultPort>1.3</DefaultPort>
</Hardware>
<Block>
<Mode>OFDL_Pixy2_FindLargest</Mode>
<Reference Type="VILib" Name="OFDL_Pixy2_FindLargest.vix" />
<ParameterReference Name="Port" />
<ParameterReference Name="xOut" />
<ParameterReference Name="yOut" />
<ParameterReference Name="widthOut" />
<ParameterReference Name="heightOut" />
<PaletteInfo Weight="0.5" />
<Flags>PBROnly</Flags>
</Block>
<Block>
<Mode>OFDL_Pixy2_FindSIG</Mode>
<Reference Type="VILib" Name="OFDL_Pixy2_FindSIG.vix" />
<ParameterReference Name="Port" />
<ParameterReference Name="signatureIn" />
<ParameterReference Name="xOut" />
<ParameterReference Name="yOut" />
<ParameterReference Name="widthOut" />
<ParameterReference Name="heightOut" />
<Flags>PBROnly</Flags>
</Block>
<Block>
<Mode>OFDL_Pixy2_LampSwitch</Mode>
<Reference Type="VILib" Name="OFDL_Pixy2_LampSwitch.vix" />
<ParameterReference Name="Port" />
<ParameterReference Name="lampEnable" />
<Flags>PBROnly</Flags>
</Block>
</PolyGroup>
</PolyGroups>
</EditorDefinitions>