text:
<wire x1="2.54" y1="-1.905" x2="2.54" y2="1.905" width="0.2032" layer="21"/>
<wire x1="2.54" y1="-1.905" x2="2.54" y2="1.905" width="0.254" layer="21" curve="-286.260205" cap="flat"/>
<circle x="0" y="0" radius="2.54" width="0.1524" layer="21"/>
<wire x1="2.54" y1="-1.905" x2="2.54" y2="1.905" width="0.2032" layer="51"/>
</package>
<package name="LED_3MM">
<description>
LED 3MM PTH

3 mm, round.

Specifications:

Pin count: 2

Pin pitch: 0.1inch

Diameter: 3mm

Example device(s):

LED

</description>
<wire x1="1.5748" y1="-1.27" x2="1.5748" y2="1.27" width="0.254" layer="51"/>
<wire x1="0" y1="2.032" x2="1.561" y2="1.3009" width="0.254" layer="22" curve="-50.193108" cap="flat"/>
<wire x1="-1.7929" y1="0.9562" x2="0" y2="2.032" width="0.254" layer="22" curve="-61.926949" cap="flat"/>
<wire x1="0" y1="-2.032" x2="1.5512" y2="-1.3126" width="0.254" layer="22" curve="49.763022" cap="flat"/>
<wire x1="-1.7643" y1="-1.0082" x2="0" y2="-2.032" width="0.254" layer="22" curve="60.255215" cap="flat"/>
<wire x1="-2.032" y1="0" x2="-1.7891" y2="0.9634" width="0.254" layer="51" curve="-28.301701" cap="flat"/>
<wire x1="-2.032" y1="0" x2="-1.7306" y2="-1.065" width="0.254" layer="51" curve="31.60822" cap="flat"/>
<wire x1="1.5748" y1="1.2954" x2="1.5748" y2="0.7874" width="0.254" layer="22"/>
<wire x1="1.5748" y1="-1.2954" x2="1.5748" y2="-0.8382" width="0.254" layer="22"/>
<pad name="A" x="-1.27" y="0" drill="0.8128" diameter="1.8796"/>
<pad name="K" x="1.27" y="0" drill="0.8128" diameter="1.8796"/>
<text x="0" y="2.286" size="0.6096" layer="25" font="vector" ratio="20" align="bottom-center">>NAME</text>
<text x="0" y="-2.286" size="0.6096" layer="27" font="vector" ratio="20" align="top-center">>VALUE</text>
<wire x1="0" y1="2.032" x2="1.561" y2="1.3009" width="0.254" layer="21" curve="-50.193108" cap="flat"/>
<wire x1="-1.7929" y1="0.9562" x2="0" y2="2.032" width="0.254" layer="21" curve="-61.926949" cap="flat"/>
<wire x1="0" y1="-2.032" x2="1.5512" y2="-1.3126" width="0.254" layer="21" curve="49.763022" cap="flat"/>
<wire x1="-1.7643" y1="-1.0082" x2="0" y2="-2.032" width="0.254" layer="21" curve="60.255215" cap="flat"/>
<wire x1="1.5748" y1="1.2954" x2="1.5748" y2="0.7874" width="0.254" layer="21"/>
<wire x1="1.5748" y1="-1.2954" x2="1.5748" y2="-0.8382" width="0.254" layer="21"/>
</package>
<package name="LED-1206">
<description>
LED 1206 SMT

1206, surface mount.

Specifications:

Pin count: 2

Pin pitch:

Area: 0.125" x 0.06"

Example device(s):

LED

</description>
<wire x1="2.4" y1="0.6825" x2="2.4" y2="-0.6825" width="0.2032" layer="21"/>
<smd name="A" x="-1.5" y="0" dx="1.2" dy="1.4" layer="1"/>
<smd name="C" x="1.5" y="0" dx="1.2" dy="1.4" layer="1"/>
<text x="0" y="0.9525" size="0.6096" layer="25" font="vector" ratio="20" align="bottom-center">>NAME</text>
<text x="0" y="-0.9525" size="0.6096" layer="27" font="vector" ratio="20" align="top-center">>VALUE</text>
<wire x1="0.65375" y1="0.6825" x2="0.65375" y2="-0.6825" width="0.2032" layer="51"/>
<wire x1="0.635" y1="0" x2="0.15875" y2="0.47625" width="0.2032" layer="51"/>
<wire x1="0.635" y1="0" x2="0.15875" y2="-0.47625" width="0.2032" layer="51"/>
</package>
<package name="LED-0603">
<description>LED 0603 SMT

0603, surface mount.

Specifications:

Pin count: 2

Pin pitch:0.075inch

Area: 0.06" x 0.03"

Example device(s):

LED - BLUE
</description>
<smd name="C" x="0.877" y="0" dx="1" dy="1" layer="1" roundness="30" rot="R270"/>
<smd name="A" x="-0.877" y="0" dx="1" dy="1" layer="1" roundness="30" rot="R270"/>
<wire x1="1.5875" y1="0.47625" x2="1.5875" y2="-0.47625" width="0.127" layer="21"/>
<wire x1="0.15875" y1="0.47625" x2="0.15875" y2="0" width="0.127" layer="51"/>
<wire x1="0.15875" y1="0" x2="0.15875" y2="-0.47625" width="0.127" layer="51"/>
<wire x1="0.15875" y1="0" x2="-0.15875" y2="0.3175" width="0.127" layer="51"/>
<wire x1="0.15875" y1="0" x2="-0.15875" y2="-0.3175" width="0.127" layer="51"/>
</package>
<package name="LED_10MM">
<description>LED 10mm PTH

10 mm, round

Specifications:

Pin count: 2

Pin pitch: 0.2inch

Diameter: 10mm

Example device(s):

LED
</description>
<wire x1="-5" y1="-2" x2="-5" y2="2" width="0.2032" layer="21" curve="316.862624"/>
<wire x1="-5" y1="2" x2="-5" y2="-2" width="0.2032" layer="21"/>
<pad name="A" x="2.54" y="0" drill="2.4" diameter="3.7"/>
<pad name="C" x="-2.54" y="0" drill="2.4" diameter="3.7"/>
<text x="2.159" y="2.54" size="1.016" layer="51" ratio="15">L</text>
<text x="-2.921" y="2.54" size="1.016" layer="51" ratio="15">S</text>
<wire x1="-5" y1="2" x2="-5" y2="-2" width="0.2032" layer="22"/>
<text x="0" y="5.715" size="0.6096" layer="25" font="vector" ratio="20" align="bottom-center">>NAME</text>
<text x="0" y="-5.715" size="0.6096" layer="27" font="vector" ratio="20" align="top-center">>VALUE</text>
<wire x1="-5" y1="2" x2="-5" y2="-2" width="0.2032" layer="51"/>
</package>
<package name="FKIT-LED-1206">
<description>LED 1206 SMT

1206, surface mount

Specifications:

Pin count: 2

Area: 0.125"x 0.06"

Example device(s):

LED
</description>
<wire x1="1.55" y1="-0.75" x2="-1.55" y2="-0.75" width="0.1016" layer="51"/>
<wire x1="-1.55" y1="-0.75" x2="-1.55" y2="0.75" width="0.1016" layer="51"/>
<wire x1="-1.55" y1="0.75" x2="1.55" y2="0.75" width="0.1016" layer="51"/>
<wire x1="1.55" y1="0.75" x2="1.55" y2="-0.75" width="0.1016" layer="51"/>
<wire x1="-0.55" y1="0.5" x2="-0.55" y2="-0.5" width="0.1016" layer="51" curve="84.547378"/>
<wire x1="0.55" y1="-0.5" x2="0.55" y2="0.5" width="0.1016" layer="51" curve="84.547378"/>
<smd name="A" x="-1.422" y="0" dx="1.6" dy="1.803" layer="1"/>
<smd name="C" x="1.422" y="0" dx="1.6" dy="1.803" layer="1"/>
<text x="0" y="1.11125" size="0.6096" layer="25" font="vector" ratio="20" align="bottom-center">>NAME</text>
<text x="0" y="-1.11125" size="0.6096" layer="27" font="vector" ratio="20" align="top-center">>VALUE</text>
<rectangle x1="0.45" y1="-0.7" x2="0.8" y2="-0.45" layer="51"/>
<rectangle x1="0.8" y1="-0.7" x2="0.9" y2="0.5" layer="51"/>
<rectangle x1="0.8" y1="0.55" x2="0.9" y2="0.7" layer="51"/>
<rectangle x1="-0.9" y1="-0.7" x2="-0.8" y2="0.5" layer="51"/>
<rectangle x1="-0.9" y1="0.55" x2="-0.8" y2="0.7" layer="51"/>
<wire x1="2.54" y1="0.9525" x2="2.54" y2="-0.9525" width="0.2032" layer="21"/>
<wire x1="0.3175" y1="0.635" x2="0.3175" y2="0" width="0.2032" layer="51"/>
<wire x1="0.3175" y1="0" x2="0.3175" y2="-0.635" width="0.2032" layer="51"/>
<wire x1="0.3175" y1="0" x2="0" y2="0.3175" width="0.2032" layer="51"/>
<wire x1="0.3175" y1="0" x2="0" y2="-0.3175" width="0.2032" layer="51"/>
</package>
<package name="LED_3MM-NS">
<description>
LED 3MM PTH- No Silk

3 mm, round, no silk outline of package

Specifications:

Pin count: 2

Pin pitch: 0.1inch

Diameter: 3mm

Example device(s):

LED

</description>
<wire x1="1.5748" y1="-1.27" x2="1.5748" y2="1.27" width="0.254" layer="51"/>
<wire x1="0" y1="2.032" x2="1.561" y2="1.3009" width="0.254" layer="51" curve="-50.193108" cap="flat"/>
<wire x1="-1.7929" y1="0.9562" x2="0" y2="2.032" width="0.254" layer="51" curve="-61.926949" cap="flat"/>
<wire x1="0" y1="-2.032" x2="1.5512" y2="-1.3126" width="0.254" layer="51" curve="49.763022" cap="flat"/>
<wire x1="-1.7643" y1="-1.0082" x2="0" y2="-2.032" width="0.254" layer="51" curve="60.255215" cap="flat"/>
<wire x1="-2.032" y1="0" x2="-1.7891" y2="0.9634" width="0.254" layer="51" curve="-28.301701" cap="flat"/>
<wire x1="-2.032" y1="0" x2="-1.7306" y2="-1.065" width="0.254" layer="51" curve="31.60822" cap="flat"/>
<wire x1="1.5748" y1="1.2954" x2="1.5748" y2="0.7874" width="0.254" layer="51"/>
<wire x1="1.5748" y1="-1.2954" x2="1.5748" y2="-0.8382" width="0.254" layer="51"/>
<pad name="A" x="-1.27" y="0" drill="0.8128"/>
<pad name="K" x="1.27" y="0" drill="0.8128"/>
<text x="0" y="2.286" size="0.6096" layer="25" font="vector" ratio="20" align="bottom-center">>NAME</text>
<text x="0" y="-2.286" size="0.6096" layer="27" font="vector" ratio="20" align="top-center">>VALUE</text>
<wire x1="1.8923" y1="1.2954" x2="1.8923" y2="0.7874" width="0.254" layer="21"/>
<wire x1="1.8923" y1="-1.2954" x2="1.8923" y2="-0.8382" width="0.254" layer="21"/>
</package>
<package name="LED_5MM-KIT">
<description>
LED 5mm KIT PTH

Warning: This is the KIT version of this package. This package has a smaller diameter top stop mask, which doesn't cover the diameter of the pad. This means only the bottom side of the pads' copper will be exposed. You'll only be able to solder to the bottom side.

Specifications:

Pin count: 2

Pin pitch: 0.1inch

Diameter: 5mm

Example Device:

LED

</description>
<wire x1="2.54" y1="-1.905" x2="2.54" y2="1.905" width="0.2032" layer="22"/>
<wire x1="-1.143" y1="0" x2="0" y2="1.143" width="0.1524" layer="51" curve="-90" cap="flat"/>
<wire x1="0" y1="-1.143" x2="1.143" y2="0" width="0.1524" layer="51" curve="90" cap="flat"/>
<wire x1="-1.651" y1="0" x2="0" y2="1.651" width="0.1524" layer="51" curve="-90" cap="flat"/>
<wire x1="0" y1="-1.651" x2="1.651" y2="0" width="0.1524" layer="51" curve="90" cap="flat"/>
<wire x1="-2.159" y1="0" x2="0" y2="2.159" width="0.1524" layer="51" curve="-90" cap="flat"/>
<wire x1="0" y1="-2.159" x2="2.159" y2="0" width="0.1524" layer="51" curve="90" cap="flat"/>
<pad name="A" x="-1.27" y="0" drill="0.8128" diameter="1.8796" stop="no"/>
<pad name="K" x="1.27" y="0" drill="0.8128" diameter="1.8796" stop="no"/>
<text x="0" y="3.3909" size="0.6096" layer="25" font="vector" ratio="20" align="bottom-center">>NAME</text>
<text x="0.0254" y="-3.3909" size="0.6096" layer="27" font="vector" ratio="20" align="top-center">>VALUE</text>
<polygon width="0.127" layer="30">
<vertex x="-1.2675" y="-0.9525" curve="-90"/>
<vertex x="-2.2224" y="-0.0228" curve="-90.011749"/>
<vertex x="-1.27" y="0.9526" curve="-90"/>
<vertex x="-0.32" y="-0.0254" curve="-90.024193"/>
</polygon>
<polygon width="0.127" layer="29">
<vertex x="-1.27" y="-0.4445" curve="-90.012891"/>
<vertex x="-1.7145" y="-0.0203" curve="-90"/>
<vertex x="-1.27" y="0.447" curve="-90"/>
<vertex x="-0.8281" y="-0.0101" curve="-90.012967"/>
</polygon>
<polygon width="0.127" layer="30">
<vertex x="1.2725" y="-0.9525" curve="-90"/>
<vertex x="0.3176" y="-0.0228" curve="-90.011749"/>
<vertex x="1.27" y="0.9526" curve="-90"/>
<vertex x="2.22" y="-0.0254" curve="-90.024193"/>
</polygon>
<polygon width="0.127" layer="29">
<vertex x="1.27" y="-0.4445" curve="-90.012891"/>
<vertex x="0.8255" y="-0.0203" curve="-90"/>
<vertex x="1.27" y="0.447" curve="-90"/>
<vertex x="1.7119" y="-0.0101" curve="-90.012967"/>
</polygon>
<wire x1="2.54" y1="-1.905" x2="2.54" y2="1.905" width="0.2032" layer="21"/>
<wire x1="2.54" y1="-1.905" x2="2.54" y2="1.905" width="0.254" layer="21" curve="-286.260205" cap="flat"/>
<circle x="0" y="0" radius="2.54" width="0.1524" layer="21"/>
<wire x1="2.54" y1="-1.905" x2="2.54" y2="1.905" width="0.2032" layer="51"/>
</package>
<package name="LED-1206-BOTTOM">
<description>
LED 1206 SMT

1206, surface mount.

Specifications:

Pin count: 2

Area: 0.125" x 0.06"

Example device(s):

LED

</description>
<wire x1="-2" y1="0.4" x2="-2" y2="-0.4" width="0.127" layer="49"/>
<wire x1="-2.4" y1="0" x2="-1.6" y2="0" width="0.127" layer="49"/>
<wire x1="1.6" y1="0" x2="2.4" y2="0" width="0.127" layer="49"/>
<wire x1="-1.27" y1="0" x2="-0.381" y2="0" width="0.127" layer="49"/>
<wire x1="-0.381" y1="0" x2="-0.381" y2="0.635" width="0.127" layer="49"/>
<wire x1="-0.381" y1="0.635" x2="0.254" y2="0" width="0.127" layer="49"/>
<wire x1="0.254" y1="0" x2="-0.381" y2="-0.635" width="0.127" layer="49"/>
<wire x1="-0.381" y1="-0.635" x2="-0.381" y2="0" width="0.127" layer="49"/>
<wire x1="0.254" y1="0" x2="0.254" y2="0.635" width="0.127" layer="49"/>
<wire x1="0.254" y1="0" x2="0.254" y2="-0.635" width="0.127" layer="49"/>
<wire x1="0.254" y1="0" x2="1.27" y2="0" width="0.127" layer="49"/>
<rectangle x1="-0.75" y1="-0.75" x2="0.75" y2="0.75" layer="51"/>
<smd name="A" x="-1.8" y="0" dx="1.5" dy="1.6" layer="1"/>
<smd name="C" x="1.8" y="0" dx="1.5" dy="1.6" layer="1"/>
<hole x="0" y="0" drill="2.3"/>
<polygon width="0" layer="51">
<vertex x="1.1" y="-0.5"/>
<vertex x="1.1" y="0.5"/>
<vertex x="1.6" y="0.5"/>
<vertex x="1.6" y="0.25" curve="90"/>
<vertex x="1.4" y="0.05"/>
<vertex x="1.4" y="-0.05" curve="90"/>
<vertex x="1.6" y="-0.25"/>
<vertex x="1.6" y="-0.5"/>
</polygon>
<polygon width="0" layer="51">
<vertex x="-1.1" y="0.5"/>
<vertex x="-1.1" y="-0.5"/>
<vertex x="-1.6" y="-0.5"/>
<vertex x="-1.6" y="-0.25" curve="90"/>
<vertex x="-1.4" y="-0.05"/>
<vertex x="-1.4" y="0.05" curve="90"/>
<vertex x="-1.6" y="0.25"/>
<vertex x="-1.6" y="0.5"/>
</polygon>
<wire x1="2.7686" y1="1.016" x2="2.7686" y2="-1.016" width="0.127" layer="21"/>
<text x="0" y="1.27" size="0.6096" layer="25" font="vector" ratio="20" align="bottom-center">>NAME</text>
<text x="0" y="-1.27" size="0.6096" layer="27" font="vector" ratio="20" align="top-center">>VALUE</text>
<wire x1="2.7686" y1="1.016" x2="2.7686" y2="-1.016" width="0.127" layer="22"/>
</package>
</packages>
<symbols>
<symbol name="LED">
<description>
LED

</description>
<wire x1="1.27" y1="0" x2="0" y2="-2.54" width="0.254" layer="94"/>
<wire x1="0" y1="-2.54" x2="-1.27" y2="0" width="0.254" layer="94"/>
<wire x1="1.27" y1="-2.54" x2="0" y2="-2.54" width="0.254" layer="94"/>
<wire x1="0" y1="-2.54" x2="-1.27" y2="-2.54" width="0.254" layer="94"/>
<wire x1="1.27" y1="0" x2="-1.27" y2="0" width="0.254" layer="94"/>
<wire x1="-2.032" y1="-0.762" x2="-3.429" y2="-2.159" width="0.1524" layer="94"/>
<wire x1="-1.905" y1="-1.905" x2="-3.302" y2="-3.302" width="0.1524" layer="94"/>
<text x="-3.429" y="-4.572" size="1.778" layer="95" font="vector" rot="R90">>NAME</text>
<text x="1.905" y="-4.572" size="1.778" layer="96" font="vector" rot="R90" align="top-left">>VALUE</text>
<pin name="C" x="0" y="-5.08" visible="off" length="short" direction="pas" rot="R90"/>
<pin name="A" x="0" y="2.54" visible="off" length="short" direction="pas" rot="R270"/>
<polygon width="0.1524" layer="94">
<vertex x="-3.429" y="-2.159"/>
<vertex x="-3.048" y="-1.27"/>
<vertex x="-2.54" y="-1.778"/>
</polygon>
<polygon width="0.1524" layer="94">
<vertex x="-3.302" y="-3.302"/>
<vertex x="-2.921" y="-2.413"/>
<vertex x="-2.413" y="-2.921"/>
</polygon>
</symbol>
</symbols>
<devicesets>
<deviceset name="LED" prefix="D" uservalue="yes">
<description>LED (Generic)

Standard schematic elements and footprints for 5mm, 3mm, 1206, and 0603 sized LEDs. Generic LEDs with no color specified.
</description>
<gates>
<gate name="G$1" symbol="LED" x="0" y="0"/>
</gates>
<devices>
<device name="5MM" package="LED_5MM">
<connects>
<connect gate="G$1" pin="A" pad="A"/>
<connect gate="G$1" pin="C" pad="K"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="3MM" package="LED_3MM">
<connects>
<connect gate="G$1" pin="A" pad="A"/>
<connect gate="G$1" pin="C" pad="K"/>
</connects>
<technologies>
<technology name="">
<attribute name="PROD_ID" value="DIO-08794" constant="no"/>
</technology>
</technologies>
</device>
<device name="1206" package="LED-1206">
<connects>
<connect gate="G$1" pin="A" pad="A"/>
<connect gate="G$1" pin="C" pad="C"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="0603" package="LED-0603">
<connects>
<connect gate="G$1" pin="A" pad="A"/>
<connect gate="G$1" pin="C" pad="C"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="10MM" package="LED_10MM">
<connects>
<connect gate="G$1" pin="A" pad="A"/>
<connect gate="G$1" pin="C" pad="C"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="-FKIT-1206" package="FKIT-LED-1206">
<connects>
<connect gate="G$1" pin="A" pad="A"/>
<connect gate="G$1" pin="C" pad="C"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="-3MM-NO_SILK" package="LED_3MM-NS">
<connects>
<connect gate="G$1" pin="A" pad="A"/>
<connect gate="G$1" pin="C" pad="K"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="5MM-KIT" package="LED_5MM-KIT">
<connects>
<connect gate="G$1" pin="A" pad="A"/>
<connect gate="G$1" pin="C" pad="K"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="1206-BOTTOM" package="LED-1206-BOTTOM">
<connects>
<connect gate="G$1" pin="A" pad="A"/>
<connect gate="G$1" pin="C" pad="C"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
</devicesets>
</library>
<library name="1k-resistor">
<packages>
<package name="RC0603N">
<smd name="1" x="-0.7747" y="0" dx="0.762" dy="0.8128" layer="1"/>
<smd name="2" x="0.7747" y="0" dx="0.762" dy="0.8128" layer="1"/>
<wire x1="-0.0762" y1="-0.5334" x2="0.0762" y2="-0.5334" width="0.1524" layer="21"/>
<wire x1="0.0762" y1="0.5334" x2="-0.0762" y2="0.5334" width="0.1524" layer="21"/>
<text x="-3.2766" y="-0.635" size="1.27" layer="21" ratio="6" rot="SR0"><Name</text>
<wire x1="-0.4064" y1="-0.4064" x2="-0.4064" y2="0.4064" width="0.1524" layer="51"/>
<wire x1="-0.4064" y1="0.4064" x2="-0.8128" y2="0.4064" width="0.1524" layer="51"/>
<wire x1="-0.8128" y1="-0.4064" x2="-0.4064" y2="-0.4064" width="0.1524" layer="51"/>
<wire x1="0.381" y1="0.4064" x2="0.4064" y2="-0.4064" width="0.1524" layer="51"/>
<wire x1="0.4064" y1="-0.4064" x2="0.8128" y2="-0.4064" width="0.1524" layer="51"/>
<wire x1="0.8128" y1="-0.4064" x2="0.7874" y2="0.4064" width="0.1524" layer="51"/>
<wire x1="0.7874" y1="0.4064" x2="0.381" y2="0.4064" width="0.1524" layer="51"/>
<wire x1="-0.4064" y1="-0.4064" x2="0.4064" y2="-0.4064" width="0.1524" layer="51"/>
<wire x1="0.8128" y1="-0.4064" x2="0.8128" y2="0.4064" width="0.1524" layer="51"/>
<wire x1="0.8128" y1="0.4064" x2="-0.4064" y2="0.4064" width="0.1524" layer="51"/>
<wire x1="-0.8128" y1="0.4064" x2="-0.8128" y2="-0.4064" width="0.1524" layer="51"/>
</package>
<package name="RC0603N-M">
<smd name="1" x="-0.8763" y="0" dx="0.9652" dy="0.9144" layer="1"/>
<smd name="2" x="0.8763" y="0" dx="0.9652" dy="0.9144" layer="1"/>
<wire x1="-0.4064" y1="-0.4064" x2="-0.4064" y2="0.4064" width="0.1524" layer="51"/>
<wire x1="-0.4064" y1="0.4064" x2="-0.8128" y2="0.4064" width="0.1524" layer="51"/>
<wire x1="-0.8128" y1="-0.4064" x2="-0.4064" y2="-0.4064" width="0.1524" layer="51"/>
<wire x1="0.381" y1="0.4064" x2="0.4064" y2="-0.4064" width="0.1524" layer="51"/>
<wire x1="0.4064" y1="-0.4064" x2="0.8128" y2="-0.4064" width="0.1524" layer="51"/>
<wire x1="0.8128" y1="-0.4064" x2="0.7874" y2="0.4064" width="0.1524" layer="51"/>
<wire x1="0.7874" y1="0.4064" x2="0.381" y2="0.4064" width="0.1524" layer="51"/>
<wire x1="-0.4064" y1="-0.4064" x2="0.4064" y2="-0.4064" width="0.1524" layer="51"/>
<wire x1="0.8128" y1="-0.4064" x2="0.8128" y2="0.4064" width="0.1524" layer="51"/>
<wire x1="0.8128" y1="0.4064" x2="-0.4064" y2="0.4064" width="0.1524" layer="51"/>
<wire x1="-0.8128" y1="0.4064" x2="-0.8128" y2="-0.4064" width="0.1524" layer="51"/>
<wire x1="-1.524" y1="0.635" x2="-1.524" y2="-0.635" width="0.127" layer="21"/>
<wire x1="-1.524" y1="-0.635" x2="1.524" y2="-0.635" width="0.127" layer="21"/>
<wire x1="1.524" y1="-0.635" x2="1.524" y2="0.635" width="0.127" layer="21"/>
<wire x1="1.524" y1="0.635" x2="-1.524" y2="0.635" width="0.127" layer="21"/>
<text x="-0.889" y="0.762" size="0.762" layer="21">>NAME</text>
</package>
<package name="RC0603N-L">
<smd name="1" x="-0.6731" y="0" dx="0.5588" dy="0.8128" layer="1"/>
<smd name="2" x="0.6731" y="0" dx="0.5588" dy="0.8128" layer="1"/>
<wire x1="-0.0762" y1="-0.5334" x2="0.0762" y2="-0.5334" width="0.1524" layer="21"/>
<wire x1="0.0762" y1="0.5334" x2="-0.0762" y2="0.5334" width="0.1524" layer="21"/>
<text x="-3.2766" y="-0.635" size="1.27" layer="21" ratio="6" rot="SR0"><Name</text>
<wire x1="-0.4064" y1="-0.4064" x2="-0.4064" y2="0.4064" width="0.1524" layer="51"/>
<wire x1="-0.4064" y1="0.4064" x2="-0.8128" y2="0.4064" width="0.1524" layer="51"/>
<wire x1="-0.8128" y1="-0.4064" x2="-0.4064" y2="-0.4064" width="0.1524" layer="51"/>
<wire x1="0.381" y1="0.4064" x2="0.4064" y2="-0.4064" width="0.1524" layer="51"/>
<wire x1="0.4064" y1="-0.4064" x2="0.8128" y2="-0.4064" width="0.1524" layer="51"/>
<wire x1="0.8128" y1="-0.4064" x2="0.7874" y2="0.4064" width="0.1524" layer="51"/>
<wire x1="0.7874" y1="0.4064" x2="0.381" y2="0.4064" width="0.1524" layer="51"/>
<wire x1="-0.4064" y1="-0.4064" x2="0.4064" y2="-0.4064" width="0.1524" layer="51"/>
<wire x1="0.8128" y1="-0.4064" x2="0.8128" y2="0.4064" width="0.1524" layer="51"/>
<wire x1="0.8128" y1="0.4064" x2="-0.4064" y2="0.4064" width="0.1524" layer="51"/>
<wire x1="-0.8128" y1="0.4064" x2="-0.8128" y2="-0.4064" width="0.1524" layer="51"/>
</package>
</packages>
<symbols>
<symbol name="RES">
<pin name="22" x="0" y="0" visible="pin" length="short" direction="pas" swaplevel="1"/>
<pin name="11" x="12.7" y="0" visible="off" length="short" direction="pas" swaplevel="1" rot="R180"/>
<wire x1="3.175" y1="1.27" x2="4.445" y2="-1.27" width="0.2032" layer="94"/>
<wire x1="4.445" y1="-1.27" x2="5.715" y2="1.27" width="0.2032" layer="94"/>
<wire x1="5.715" y1="1.27" x2="6.985" y2="-1.27" width="0.2032" layer="94"/>
<wire x1="6.985" y1="-1.27" x2="8.255" y2="1.27" width="0.2032" layer="94"/>
<wire x1="8.255" y1="1.27" x2="9.525" y2="-1.27" width="0.2032" layer="94"/>
<wire x1="2.54" y1="0" x2="3.175" y2="1.27" width="0.2032" layer="94"/>
<wire x1="9.525" y1="-1.27" x2="10.16" y2="0" width="0.2032" layer="94"/>
<text x="-2.6162" y="-5.5372" size="3.4798" layer="96" ratio="10" rot="SR0">>Value</text>
<text x="-2.1844" y="2.0828" size="3.4798" layer="95" ratio="10" rot="SR0">>Name</text>
</symbol>
</symbols>
<devicesets>
<deviceset name="RC0603JR-071KL" prefix="R" uservalue="yes">
<gates>
<gate name="A" symbol="RES" x="0" y="0"/>
</gates>
<devices>
<device name="" package="RC0603N">
<connects>
<connect gate="A" pin="11" pad="1"/>
<connect gate="A" pin="22" pad="2"/>
</connects>
<technologies>
<technology name="">
<attribute name="CASE" value="0603 1608 metric" constant="no"/>
<attribute name="CATEGORY" value="" constant="no"/>
<attribute name="COMPOSITION" value="Thick Film" constant="no"/>
<attribute name="COPYRIGHT" value="Copyright C 2015 Accelerated Designs. All rights reserved" constant="no"/>
<attribute name="DATASHEET" value="httpwww.yageo.comdocumentsrecentPYuRC0603_51_RoHS_L_4.pdf" constant="no"/>
<attribute name="DESCRIPTION" value="RES 1.0K OHM 110W 5% 0603 SMD" constant="no"/>
<attribute name="DIGIKEYPARTNUMBER" value="3111.0KGRTRND" constant="no"/>
<attribute name="FEATURES" value="" constant="no"/>
<attribute name="HEIGHT" value="0.022" 0.55mm" constant="no"/>
<attribute name="LEADSTYLE" value="Surface Mount SMD  SMT" constant="no"/>
<attribute name="MANUFACTURER_PART_NUMBER" value="RC0603JR071KL" constant="no"/>
<attribute name="NEWARKPARTNUMBER" value="14M7231" constant="no"/>
<attribute name="NUMBEROFTERMINATIONS" value="2" constant="no"/>
<attribute name="PACKAGECASE" value="0603 1608 Metric" constant="no"/>
<attribute name="PACKAGING" value="Tape &amp Reel TR" constant="no"/>
<attribute name="POWERWATTS" value="0.1W 110W" constant="no"/>
<attribute name="QUANTITY_AVAILABLE" value="0" constant="no"/>
<attribute name="RESISTANCEINOHMS" value="1.00K" constant="no"/>
<attribute name="RESISTANCEOHMS" value="1K" constant="no"/>
<attribute name="SIZEDIMENSION" value="0.063" L x 0.031" W 1.60mm x 0.80mm" constant="no"/>
<attribute name="TEMPERATURECOEFFICIENT" value="100ppm°C" constant="no"/>
<attribute name="TOLERANCE" value="5%" constant="no"/>
<attribute name="VENDOR" value="Yageo" constant="no"/>
<attribute name="VOLTAGEWORKING" value="50V" constant="no"/>
</technology>
</technologies>
</device>
<device name="RC0603N-M" package="RC0603N-M">
<connects>
<connect gate="A" pin="11" pad="1"/>
<connect gate="A" pin="22" pad="2"/>
</connects>
<technologies>
<technology name="">
<attribute name="CASE" value="0603 1608 metric" constant="no"/>
<attribute name="CATEGORY" value="" constant="no"/>
<attribute name="COMPOSITION" value="Thick Film" constant="no"/>
<attribute name="COPYRIGHT" value="Copyright C 2015 Accelerated Designs. All rights reserved" constant="no"/>
<attribute name="DATASHEET" value="httpwww.yageo.comdocumentsrecentPYuRC0603_51_RoHS_L_4.pdf" constant="no"/>
<attribute name="DESCRIPTION" value="RES 1.0K OHM 110W 5% 0603 SMD" constant="no"/>
<attribute name="DIGIKEYPARTNUMBER" value="3111.0KGRTRND" constant="no"/>
<attribute name="FEATURES" value="" constant="no"/>
<attribute name="HEIGHT" value="0.022" 0.55mm" constant="no"/>
<attribute name="LEADSTYLE" value="Surface Mount SMD  SMT" constant="no"/>
<attribute name="MANUFACTURER_PART_NUMBER" value="RC0603JR071KL" constant="no"/>
<attribute name="NEWARKPARTNUMBER" value="14M7231" constant="no"/>
<attribute name="NUMBEROFTERMINATIONS" value="2" constant="no"/>
<attribute name="PACKAGECASE" value="0603 1608 Metric" constant="no"/>
<attribute name="PACKAGING" value="Tape &amp Reel TR" constant="no"/>
<attribute name="POWERWATTS" value="0.1W 110W" constant="no"/>
<attribute name="QUANTITY_AVAILABLE" value="0" constant="no"/>
<attribute name="RESISTANCEINOHMS" value="1.00K" constant="no"/>
<attribute name="RESISTANCEOHMS" value="1K" constant="no"/>
<attribute name="SIZEDIMENSION" value="0.063" L x 0.031" W 1.60mm x 0.80mm" constant="no"/>
<attribute name="TEMPERATURECOEFFICIENT" value="100ppm°C" constant="no"/>
<attribute name="TOLERANCE" value="5%" constant="no"/>
<attribute name="VENDOR" value="Yageo" constant="no"/>
<attribute name="VOLTAGEWORKING" value="50V" constant="no"/>
</technology>
</technologies>
</device>
<device name="RC0603N-L" package="RC0603N-L">
<connects>
<connect gate="A" pin="11" pad="1"/>
<connect gate="A" pin="22" pad="2"/>
</connects>
<technologies>
<technology name="">
<attribute name="CASE" value="0603 1608 metric" constant="no"/>
<attribute name="CATEGORY" value="" constant="no"/>
<attribute name="COMPOSITION" value="Thick Film" constant="no"/>
<attribute name="COPYRIGHT" value="Copyright C 2015 Accelerated Designs. All rights reserved" constant="no"/>
<attribute name="DATASHEET" value="httpwww.yageo.comdocumentsrecentPYuRC0603_51_RoHS_L_4.pdf" constant="no"/>
<attribute name="DESCRIPTION" value="RES 1.0K OHM 110W 5% 0603 SMD" constant="no"/>
<attribute name="DIGIKEYPARTNUMBER" value="3111.0KGRTRND" constant="no"/>
<attribute name="FEATURES" value="" constant="no"/>
<attribute name="HEIGHT" value="0.022" 0.55mm" constant="no"/>
<attribute name="LEADSTYLE" value="Surface Mount SMD  SMT" constant="no"/>
<attribute name="MANUFACTURER_PART_NUMBER" value="RC0603JR071KL" constant="no"/>
<attribute name="NEWARKPARTNUMBER" value="14M7231" constant="no"/>
<attribute name="NUMBEROFTERMINATIONS" value="2" constant="no"/>
<attribute name="PACKAGECASE" value="0603 1608 Metric" constant="no"/>
<attribute name="PACKAGING" value="Tape &amp Reel TR" constant="no"/>
<attribute name="POWERWATTS" value="0.1W 110W" constant="no"/>
<attribute name="QUANTITY_AVAILABLE" value="0" constant="no"/>
<attribute name="RESISTANCEINOHMS" value="1.00K" constant="no"/>
<attribute name="RESISTANCEOHMS" value="1K" constant="no"/>
<attribute name="SIZEDIMENSION" value="0.063" L x 0.031" W 1.60mm x 0.80mm" constant="no"/>
<attribute name="TEMPERATURECOEFFICIENT" value="100ppm°C" constant="no"/>
<attribute name="TOLERANCE" value="5%" constant="no"/>
<attribute name="VENDOR" value="Yageo" constant="no"/>
<attribute name="VOLTAGEWORKING" value="50V" constant="no"/>
</technology>
</technologies>
</device>
</devices>
</deviceset>
</devicesets>
</library>
</libraries>
<attributes>
</attributes>
<variantdefs>
</variantdefs>
<classes>
<class number="0" name="default" width="0" drill="0">
</class>
</classes>
<parts>
<part name="J2" library="Ultrasonic Sensor HC-SR04" deviceset="HC-SR04" device=""/>
<part name="J3" library="Ultrasonic Sensor HC-SR04" deviceset="HC-SR04" device=""/>
<part name="J4" library="Ultrasonic Sensor HC-SR04" deviceset="HC-SR04" device=""/>
<part name="J5" library="Ultrasonic Sensor HC-SR04" deviceset="HC-SR04" device=""/>
<part name="J6" library="Ultrasonic Sensor HC-SR04" deviceset="HC-SR04" device=""/>
<part name="J7" library="Ultrasonic Sensor HC-SR04" deviceset="HC-SR04" device=""/>
<part name="J8" library="Ultrasonic Sensor HC-SR04" deviceset="HC-SR04" device=""/>
<part name="J1" library="Ultrasonic Sensor HC-SR04" deviceset="HC-SR04" device=""/>
<part name="P+1" library="supply1" deviceset="+5V" device=""/>
<part name="GND1" library="supply1" deviceset="GND" device=""/>
<part name="P+3" library="supply1" deviceset="+5V" device=""/>
<part name="P+4" library="supply1" deviceset="+5V" device=""/>
<part name="P+5" library="supply1" deviceset="+5V" device=""/>
<part name="P+6" library="supply1" deviceset="+5V" device=""/>
<part name="P+7" library="supply1" deviceset="+5V" device=""/>
<part name="P+8" library="supply1" deviceset="+5V" device=""/>
<part name="P+9" library="supply1" deviceset="+5V" device=""/>
<part name="P+10" library="supply1" deviceset="+5V" device=""/>
<part name="GND4" library="supply1" deviceset="GND" device=""/>
<part name="GND5" library="supply1" deviceset="GND" device=""/>
<part name="GND6" library="supply1" deviceset="GND" device=""/>
<part name="GND7" library="supply1" deviceset="GND" device=""/>
<part name="GND8" library="supply1" deviceset="GND" device=""/>
<part name="GND9" library="supply1" deviceset="GND" device=""/>
<part name="GND10" library="supply1" deviceset="GND" device=""/>
<part name="GND11" library="supply1" deviceset="GND" device=""/>
<part name="FRAME1" library="frames" deviceset="A3L-LOC" device=""/>
<part name="U2" library="TCA6424-expander" deviceset="TCA6424ARGJR" device="RGJ32-M"/>
<part name="P+11" library="supply1" deviceset="+5V" device=""/>
<part name="GND2" library="supply1" deviceset="GND" device=""/>
<part name="J9" library="thanics_robotics" deviceset="JST_SH_3POS" device=""/>
<part name="GND3" library="supply1" deviceset="GND" device=""/>
<part name="JP1" library="pinhead" deviceset="PINHD-1X4" device=""/>
<part name="C1" library="0.1uF X7R Ceramic Capacitor" deviceset="08055C104KAT2A" device="" value="0.1uF"/>
<part name="GND12" library="supply1" deviceset="GND" device=""/>
<part name="D1" library="SparkFun-LED" deviceset="LED" device="0603"/>
<part name="D2" library="SparkFun-LED" deviceset="LED" device="0603"/>
<part name="D3" library="SparkFun-LED" deviceset="LED" device="0603"/>
<part name="D4" library="SparkFun-LED" deviceset="LED" device="0603"/>
<part name="D5" library="SparkFun-LED" deviceset="LED" device="0603"/>
<part name="D6" library="SparkFun-LED" deviceset="LED" device="0603"/>
<part name="R1" library="1k-resistor" deviceset="RC0603JR-071KL" device="RC0603N-M" value="1k"/>
<part name="R2" library="1k-resistor" deviceset="RC0603JR-071KL" device="RC0603N-M" value="1k"/>
<part name="R3" library="1k-resistor" deviceset="RC0603JR-071KL" device="RC0603N-M" value="1k"/>
<part name="R4" library="1k-resistor" deviceset="RC0603JR-071KL" device="RC0603N-M" value="1k"/>
<part name="R5" library="1k-resistor" deviceset="RC0603JR-071KL" device="RC0603N-M" value="1k"/>
<part name="R6" library="1k-resistor" deviceset="RC0603JR-071KL" device="RC0603N-M" value="1k"/>
<part name="GND13" library="supply1" deviceset="GND" device=""/>
</parts>
<sheets>
<sheet>
<plain>
</plain>
<instances>
<instance part="J2" gate="J_ULTRASONIC" x="-7.62" y="-2.54" rot="R270"/>
<instance part="J3" gate="J_ULTRASONIC" x="22.86" y="-2.54" rot="R270"/>
<instance part="J4" gate="J_ULTRASONIC" x="53.34" y="-2.54" rot="R270"/>
<instance part="J5" gate="J_ULTRASONIC" x="83.82" y="-2.54" rot="R270"/>
<instance part="J6" gate="J_ULTRASONIC" x="114.3" y="-2.54" rot="R270"/>
<instance part="J7" gate="J_ULTRASONIC" x="144.78" y="-2.54" rot="R270"/>
<instance part="J8" gate="J_ULTRASONIC" x="175.26" y="-2.54" rot="R270"/>
<instance part="J1" gate="J_ULTRASONIC" x="-40.64" y="-2.54" rot="R270"/>
<instance part="P+1" gate="1" x="-86.36" y="86.36"/>
<instance part="GND1" gate="1" x="-86.36" y="68.58"/>
<instance part="P+3" gate="1" x="-48.26" y="17.78"/>
<instance part="P+4" gate="1" x="-15.24" y="17.78"/>
<instance part="P+5" gate="1" x="15.24" y="17.78"/>
<instance part="P+6" gate="1" x="45.72" y="17.78"/>
<instance part="P+7" gate="1" x="76.2" y="17.78"/>
<instance part="P+8" gate="1" x="106.68" y="17.78"/>
<instance part="P+9" gate="1" x="137.16" y="17.78"/>
<instance part="P+10" gate="1" x="167.64" y="17.78"/>
<instance part="GND4" gate="1" x="187.96" y="10.16"/>
<instance part="GND5" gate="1" x="157.48" y="10.16"/>
<instance part="GND6" gate="1" x="127" y="10.16"/>
<instance part="GND7" gate="1" x="96.52" y="10.16"/>
<instance part="GND8" gate="1" x="66.04" y="10.16"/>
<instance part="GND9" gate="1" x="35.56" y="10.16"/>
<instance part="GND10" gate="1" x="5.08" y="10.16"/>
<instance part="GND11" gate="1" x="-27.94" y="10.16"/>
<instance part="FRAME1" gate="G$1" x="-144.78" y="-43.18"/>
<instance part="U2" gate="A" x="40.64" y="162.56"/>
<instance part="U2" gate="B" x="43.18" y="63.5"/>
<instance part="P+11" gate="1" x="40.64" y="71.12"/>
<instance part="GND2" gate="1" x="83.82" y="58.42"/>
<instance part="J9" gate="G$1" x="-25.4" y="129.54"/>
<instance part="GND3" gate="1" x="25.4" y="154.94"/>
<instance part="JP1" gate="A" x="-78.74" y="76.2"/>
<instance part="C1" gate="A" x="40.64" y="53.34" rot="R90"/>
<instance part="GND12" gate="1" x="40.64" y="48.26"/>
<instance part="D1" gate="G$1" x="-5.08" y="114.3" rot="R270"/>
<instance part="D2" gate="G$1" x="-5.08" y="99.06" rot="R270"/>
<instance part="D3" gate="G$1" x="-5.08" y="83.82" rot="R270"/>
<instance part="D4" gate="G$1" x="-5.08" y="68.58" rot="R270"/>
<instance part="D5" gate="G$1" x="-5.08" y="53.34" rot="R270"/>
<instance part="D6" gate="G$1" x="-5.08" y="38.1" rot="R270"/>
<instance part="R1" gate="A" x="-30.48" y="114.3"/>
<instance part="R2" gate="A" x="-30.48" y="99.06"/>
<instance part="R3" gate="A" x="-30.48" y="83.82"/>
<instance part="R4" gate="A" x="-30.48" y="68.58"/>
<instance part="R5" gate="A" x="-30.48" y="53.34"/>
<instance part="R6" gate="A" x="-30.48" y="38.1"/>
<instance part="GND13" gate="1" x="-38.1" y="33.02"/>
</instances>
<busses>
</busses>
<nets>
<net name="GND" class="0">
<segment>
<wire x1="-81.28" y1="73.66" x2="-86.36" y2="73.66" width="0.1524" layer="91"/>
<wire x1="-86.36" y1="73.66" x2="-86.36" y2="71.12" width="0.1524" layer="91"/>
<pinref part="GND1" gate="1" pin="GND"/>
<pinref part="JP1" gate="A" pin="4"/>
</segment>
<segment>
<pinref part="J1" gate="J_ULTRASONIC" pin="GND"/>
<wire x1="-33.02" y1="10.16" x2="-33.02" y2="15.24" width="0.1524" layer="91"/>
<pinref part="GND11" gate="1" pin="GND"/>
<wire x1="-33.02" y1="15.24" x2="-27.94" y2="15.24" width="0.1524" layer="91"/>
<wire x1="-27.94" y1="15.24" x2="-27.94" y2="12.7" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="J2" gate="J_ULTRASONIC" pin="GND"/>
<wire x1="0" y1="10.16" x2="0" y2="15.24" width="0.1524" layer="91"/>
<pinref part="GND10" gate="1" pin="GND"/>
<wire x1="0" y1="15.24" x2="5.08" y2="15.24" width="0.1524" layer="91"/>
<wire x1="5.08" y1="15.24" x2="5.08" y2="12.7" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="J3" gate="J_ULTRASONIC" pin="GND"/>
<wire x1="30.48" y1="10.16" x2="30.48" y2="15.24" width="0.1524" layer="91"/>
<pinref part="GND9" gate="1" pin="GND"/>
<wire x1="30.48" y1="15.24" x2="35.56" y2="15.24" width="0.1524" layer="91"/>
<wire x1="35.56" y1="15.24" x2="35.56" y2="12.7" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="J4" gate="J_ULTRASONIC" pin="GND"/>
<wire x1="60.96" y1="10.16" x2="60.96" y2="15.24" width="0.1524" layer="91"/>
<pinref part="GND8" gate="1" pin="GND"/>
<wire x1="60.96" y1="15.24" x2="66.04" y2="15.24" width="0.1524" layer="91"/>
<wire x1="66.04" y1="15.24" x2="66.04" y2="12.7" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="J5" gate="J_ULTRASONIC" pin="GND"/>
<wire x1="91.44" y1="10.16" x2="91.44" y2="15.24" width="0.1524" layer="91"/>
<pinref part="GND7" gate="1" pin="GND"/>
<wire x1="91.44" y1="15.24" x2="96.52" y2="15.24" width="0.1524" layer="91"/>
<wire x1="96.52" y1="15.24" x2="96.52" y2="12.7" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="J6" gate="J_ULTRASONIC" pin="GND"/>
<wire x1="121.92" y1="10.16" x2="121.92" y2="15.24" width="0.1524" layer="91"/>
<pinref part="GND6" gate="1" pin="GND"/>
<wire x1="121.92" y1="15.24" x2="127" y2="15.24" width="0.1524" layer="91"/>
<wire x1="127" y1="15.24" x2="127" y2="12.7" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="J7" gate="J_ULTRASONIC" pin="GND"/>
<wire x1="152.4" y1="10.16" x2="152.4" y2="15.24" width="0.1524" layer="91"/>
<pinref part="GND5" gate="1" pin="GND"/>
<wire x1="152.4" y1="15.24" x2="157.48" y2="15.24" width="0.1524" layer="91"/>
<wire x1="157.48" y1="15.24" x2="157.48" y2="12.7" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="J8" gate="J_ULTRASONIC" pin="GND"/>
<wire x1="182.88" y1="10.16" x2="182.88" y2="15.24" width="0.1524" layer="91"/>
<pinref part="GND4" gate="1" pin="GND"/>
<wire x1="182.88" y1="15.24" x2="187.96" y2="15.24" width="0.1524" layer="91"/>
<wire x1="187.96" y1="15.24" x2="187.96" y2="12.7" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="U2" gate="B" pin="GND"/>
<pinref part="GND2" gate="1" pin="GND"/>
<wire x1="81.28" y1="63.5" x2="83.82" y2="63.5" width="0.1524" layer="91"/>
<wire x1="83.82" y1="63.5" x2="83.82" y2="60.96" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="U2" gate="A" pin="ADDR"/>
<pinref part="GND3" gate="1" pin="GND"/>
<wire x1="43.18" y1="160.02" x2="25.4" y2="160.02" width="0.1524" layer="91"/>
<wire x1="25.4" y1="160.02" x2="25.4" y2="157.48" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="GND12" gate="1" pin="GND"/>
<pinref part="C1" gate="A" pin="1"/>
<wire x1="40.64" y1="50.8" x2="40.64" y2="53.34" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="R1" gate="A" pin="22"/>
<wire x1="-30.48" y1="114.3" x2="-38.1" y2="114.3" width="0.1524" layer="91"/>
<wire x1="-38.1" y1="114.3" x2="-38.1" y2="99.06" width="0.1524" layer="91"/>
<pinref part="R6" gate="A" pin="22"/>
<wire x1="-38.1" y1="99.06" x2="-38.1" y2="83.82" width="0.1524" layer="91"/>
<wire x1="-38.1" y1="83.82" x2="-38.1" y2="68.58" width="0.1524" layer="91"/>
<wire x1="-38.1" y1="68.58" x2="-38.1" y2="53.34" width="0.1524" layer="91"/>
<wire x1="-38.1" y1="53.34" x2="-38.1" y2="38.1" width="0.1524" layer="91"/>
<wire x1="-38.1" y1="38.1" x2="-30.48" y2="38.1" width="0.1524" layer="91"/>
<pinref part="R5" gate="A" pin="22"/>
<wire x1="-30.48" y1="53.34" x2="-38.1" y2="53.34" width="0.1524" layer="91"/>
<junction x="-38.1" y="53.34"/>
<pinref part="R4" gate="A" pin="22"/>
<wire x1="-30.48" y1="68.58" x2="-38.1" y2="68.58" width="0.1524" layer="91"/>
<junction x="-38.1" y="68.58"/>
<pinref part="R3" gate="A" pin="22"/>
<wire x1="-30.48" y1="83.82" x2="-38.1" y2="83.82" width="0.1524" layer="91"/>
<junction x="-38.1" y="83.82"/>
<pinref part="R2" gate="A" pin="22"/>
<wire x1="-30.48" y1="99.06" x2="-38.1" y2="99.06" width="0.1524" layer="91"/>
<junction x="-38.1" y="99.06"/>
<pinref part="GND13" gate="1" pin="GND"/>
<wire x1="-38.1" y1="35.56" x2="-38.1" y2="38.1" width="0.1524" layer="91"/>
<junction x="-38.1" y="38.1"/>
</segment>
</net>
<net name="TRIG7" class="0">
<segment>
<pinref part="J7" gate="J_ULTRASONIC" pin="TRIG"/>
<wire x1="142.24" y1="25.4" x2="142.24" y2="10.16" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="U2" gate="A" pin="P03"/>
<wire x1="43.18" y1="147.32" x2="30.48" y2="147.32" width="0.1524" layer="91"/>

</segment>
</net>
<net name="ECHO7" class="0">
<segment>
<pinref part="J7" gate="J_ULTRASONIC" pin="ECHO"/>
<wire x1="147.32" y1="25.4" x2="147.32" y2="10.16" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="U2" gate="A" pin="P02"/>
<wire x1="43.18" y1="149.86" x2="30.48" y2="149.86" width="0.1524" layer="91"/>

</segment>
</net>
<net name="TRIG6" class="0">
<segment>
<pinref part="J6" gate="J_ULTRASONIC" pin="TRIG"/>
<wire x1="111.76" y1="10.16" x2="111.76" y2="25.4" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="U2" gate="A" pin="P05"/>
<wire x1="43.18" y1="142.24" x2="30.48" y2="142.24" width="0.1524" layer="91"/>

</segment>
</net>
<net name="ECHO6" class="0">
<segment>
<pinref part="J6" gate="J_ULTRASONIC" pin="ECHO"/>
<wire x1="116.84" y1="10.16" x2="116.84" y2="25.4" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="U2" gate="A" pin="P04"/>
<wire x1="43.18" y1="144.78" x2="30.48" y2="144.78" width="0.1524" layer="91"/>

</segment>
</net>
<net name="ECHO5" class="0">
<segment>
<pinref part="J5" gate="J_ULTRASONIC" pin="ECHO"/>
<wire x1="86.36" y1="25.4" x2="86.36" y2="10.16" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="U2" gate="A" pin="P06"/>
<wire x1="43.18" y1="139.7" x2="30.48" y2="139.7" width="0.1524" layer="91"/>

</segment>
</net>
<net name="TRIG5" class="0">
<segment>
<pinref part="J5" gate="J_ULTRASONIC" pin="TRIG"/>
<wire x1="81.28" y1="10.16" x2="81.28" y2="25.4" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="U2" gate="A" pin="P07"/>
<wire x1="43.18" y1="137.16" x2="30.48" y2="137.16" width="0.1524" layer="91"/>

</segment>
</net>
<net name="TRIG4" class="0">
<segment>
<pinref part="J4" gate="J_ULTRASONIC" pin="TRIG"/>
<wire x1="50.8" y1="25.4" x2="50.8" y2="10.16" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="U2" gate="A" pin="P11"/>
<wire x1="43.18" y1="132.08" x2="30.48" y2="132.08" width="0.1524" layer="91"/>

</segment>
</net>
<net name="ECHO4" class="0">
<segment>
<pinref part="J4" gate="J_ULTRASONIC" pin="ECHO"/>
<wire x1="55.88" y1="25.4" x2="55.88" y2="10.16" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="U2" gate="A" pin="P10"/>
<wire x1="43.18" y1="134.62" x2="30.48" y2="134.62" width="0.1524" layer="91"/>

</segment>
</net>
<net name="ECHO3" class="0">
<segment>
<pinref part="J3" gate="J_ULTRASONIC" pin="ECHO"/>
<wire x1="25.4" y1="10.16" x2="25.4" y2="25.4" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="U2" gate="A" pin="P12"/>
<wire x1="43.18" y1="129.54" x2="30.48" y2="129.54" width="0.1524" layer="91"/>

</segment>
</net>
<net name="TRIG3" class="0">
<segment>
<pinref part="J3" gate="J_ULTRASONIC" pin="TRIG"/>
<wire x1="20.32" y1="25.4" x2="20.32" y2="10.16" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="U2" gate="A" pin="P13"/>
<wire x1="43.18" y1="127" x2="30.48" y2="127" width="0.1524" layer="91"/>

</segment>
</net>
<net name="TRIG2" class="0">
<segment>
<pinref part="J2" gate="J_ULTRASONIC" pin="TRIG"/>
<wire x1="-10.16" y1="25.4" x2="-10.16" y2="10.16" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="U2" gate="A" pin="P15"/>
<wire x1="43.18" y1="121.92" x2="30.48" y2="121.92" width="0.1524" layer="91"/>

</segment>
</net>
<net name="ECHO2" class="0">
<segment>
<pinref part="J2" gate="J_ULTRASONIC" pin="ECHO"/>
<wire x1="-5.08" y1="25.4" x2="-5.08" y2="10.16" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="U2" gate="A" pin="P14"/>
<wire x1="43.18" y1="124.46" x2="30.48" y2="124.46" width="0.1524" layer="91"/>

</segment>
</net>
<net name="TRIG8" class="0">
<segment>
<pinref part="J8" gate="J_ULTRASONIC" pin="TRIG"/>
<wire x1="172.72" y1="10.16" x2="172.72" y2="25.4" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="U2" gate="A" pin="P01"/>
<wire x1="43.18" y1="152.4" x2="30.48" y2="152.4" width="0.1524" layer="91"/>

</segment>
</net>
<net name="ECHO8" class="0">
<segment>
<pinref part="J8" gate="J_ULTRASONIC" pin="ECHO"/>
<wire x1="177.8" y1="25.4" x2="177.8" y2="10.16" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="U2" gate="A" pin="P00"/>
<wire x1="43.18" y1="154.94" x2="30.48" y2="154.94" width="0.1524" layer="91"/>

</segment>
</net>
<net name="TRIG1" class="0">
<segment>
<pinref part="J1" gate="J_ULTRASONIC" pin="TRIG"/>
<wire x1="-43.18" y1="10.16" x2="-43.18" y2="25.4" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="U2" gate="A" pin="P17"/>
<wire x1="43.18" y1="116.84" x2="30.48" y2="116.84" width="0.1524" layer="91"/>

</segment>
</net>
<net name="ECHO1" class="0">
<segment>
<pinref part="J1" gate="J_ULTRASONIC" pin="ECHO"/>
<wire x1="-38.1" y1="25.4" x2="-38.1" y2="10.16" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="U2" gate="A" pin="P16"/>
<wire x1="43.18" y1="119.38" x2="30.48" y2="119.38" width="0.1524" layer="91"/>

</segment>
</net>
<net name="+5V" class="0">
<segment>
<wire x1="-81.28" y1="76.2" x2="-86.36" y2="76.2" width="0.1524" layer="91"/>
<pinref part="P+1" gate="1" pin="+5V"/>
<wire x1="-86.36" y1="83.82" x2="-86.36" y2="76.2" width="0.1524" layer="91"/>
<pinref part="JP1" gate="A" pin="3"/>
</segment>
<segment>
<pinref part="J5" gate="J_ULTRASONIC" pin="5V"/>
<wire x1="76.2" y1="10.16" x2="76.2" y2="15.24" width="0.1524" layer="91"/>
<pinref part="P+7" gate="1" pin="+5V"/>
</segment>
<segment>
<pinref part="J1" gate="J_ULTRASONIC" pin="5V"/>
<pinref part="P+3" gate="1" pin="+5V"/>
<wire x1="-48.26" y1="10.16" x2="-48.26" y2="15.24" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="J2" gate="J_ULTRASONIC" pin="5V"/>
<pinref part="P+4" gate="1" pin="+5V"/>
<wire x1="-15.24" y1="10.16" x2="-15.24" y2="15.24" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="J3" gate="J_ULTRASONIC" pin="5V"/>
<pinref part="P+5" gate="1" pin="+5V"/>
<wire x1="15.24" y1="10.16" x2="15.24" y2="15.24" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="J4" gate="J_ULTRASONIC" pin="5V"/>
<pinref part="P+6" gate="1" pin="+5V"/>
<wire x1="45.72" y1="10.16" x2="45.72" y2="15.24" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="J6" gate="J_ULTRASONIC" pin="5V"/>
<pinref part="P+8" gate="1" pin="+5V"/>
<wire x1="106.68" y1="10.16" x2="106.68" y2="15.24" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="J7" gate="J_ULTRASONIC" pin="5V"/>
<pinref part="P+9" gate="1" pin="+5V"/>
<wire x1="137.16" y1="10.16" x2="137.16" y2="15.24" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="J8" gate="J_ULTRASONIC" pin="5V"/>
<pinref part="P+10" gate="1" pin="+5V"/>
<wire x1="167.64" y1="10.16" x2="167.64" y2="15.24" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="U2" gate="B" pin="VCCI"/>
<pinref part="P+11" gate="1" pin="+5V"/>
<wire x1="45.72" y1="63.5" x2="43.18" y2="63.5" width="0.1524" layer="91"/>
<wire x1="43.18" y1="63.5" x2="40.64" y2="63.5" width="0.1524" layer="91"/>
<wire x1="40.64" y1="63.5" x2="40.64" y2="68.58" width="0.1524" layer="91"/>
<pinref part="U2" gate="B" pin="VCCP"/>
<wire x1="45.72" y1="60.96" x2="43.18" y2="60.96" width="0.1524" layer="91"/>
<wire x1="43.18" y1="60.96" x2="43.18" y2="63.5" width="0.1524" layer="91"/>
<junction x="43.18" y="63.5"/>
<pinref part="C1" gate="A" pin="2"/>
<wire x1="40.64" y1="60.96" x2="40.64" y2="63.5" width="0.1524" layer="91"/>
<junction x="40.64" y="63.5"/>
</segment>
</net>
<net name="SDA" class="0">
<segment>
<wire x1="-40.64" y1="132.08" x2="-33.02" y2="132.08" width="0.1524" layer="91"/>

<pinref part="J9" gate="G$1" pin="1"/>
</segment>
<segment>
<pinref part="U2" gate="A" pin="SDA"/>
<wire x1="43.18" y1="88.9" x2="33.02" y2="88.9" width="0.1524" layer="91"/>

</segment>
</net>
<net name="SCL" class="0">
<segment>
<wire x1="-33.02" y1="129.54" x2="-40.64" y2="129.54" width="0.1524" layer="91"/>

<pinref part="J9" gate="G$1" pin="2"/>
</segment>
<segment>
<pinref part="U2" gate="A" pin="SCL"/>
<wire x1="43.18" y1="91.44" x2="33.02" y2="91.44" width="0.1524" layer="91"/>

</segment>
</net>
<net name="INT" class="0">
<segment>
<pinref part="J9" gate="G$1" pin="3"/>
<wire x1="-33.02" y1="127" x2="-40.64" y2="127" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="U2" gate="A" pin="!INT"/>
<wire x1="83.82" y1="162.56" x2="91.44" y2="162.56" width="0.1524" layer="91"/>

</segment>
</net>
<net name="N$1" class="0">
<segment>
<pinref part="JP1" gate="A" pin="2"/>
<wire x1="-81.28" y1="78.74" x2="-83.82" y2="78.74" width="0.1524" layer="91"/>
<wire x1="-83.82" y1="78.74" x2="-83.82" y2="81.28" width="0.1524" layer="91"/>
<pinref part="JP1" gate="A" pin="1"/>
<wire x1="-83.82" y1="81.28" x2="-81.28" y2="81.28" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$2" class="0">
<segment>
<pinref part="D1" gate="G$1" pin="A"/>
<pinref part="U2" gate="A" pin="P20"/>
<wire x1="-2.54" y1="114.3" x2="43.18" y2="114.3" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$3" class="0">
<segment>
<pinref part="U2" gate="A" pin="P21"/>
<wire x1="43.18" y1="111.76" x2="0" y2="111.76" width="0.1524" layer="91"/>
<pinref part="D2" gate="G$1" pin="A"/>
<wire x1="0" y1="111.76" x2="0" y2="99.06" width="0.1524" layer="91"/>
<wire x1="0" y1="99.06" x2="-2.54" y2="99.06" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$4" class="0">
<segment>
<pinref part="U2" gate="A" pin="P22"/>
<wire x1="43.18" y1="109.22" x2="2.54" y2="109.22" width="0.1524" layer="91"/>
<wire x1="2.54" y1="109.22" x2="2.54" y2="83.82" width="0.1524" layer="91"/>
<pinref part="D3" gate="G$1" pin="A"/>
<wire x1="2.54" y1="83.82" x2="-2.54" y2="83.82" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$5" class="0">
<segment>
<pinref part="U2" gate="A" pin="P23"/>
<wire x1="43.18" y1="106.68" x2="5.08" y2="106.68" width="0.1524" layer="91"/>
<wire x1="5.08" y1="106.68" x2="5.08" y2="68.58" width="0.1524" layer="91"/>
<pinref part="D4" gate="G$1" pin="A"/>
<wire x1="5.08" y1="68.58" x2="-2.54" y2="68.58" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$6" class="0">
<segment>
<pinref part="U2" gate="A" pin="P24"/>
<wire x1="43.18" y1="104.14" x2="7.62" y2="104.14" width="0.1524" layer="91"/>
<wire x1="7.62" y1="104.14" x2="7.62" y2="53.34" width="0.1524" layer="91"/>
<pinref part="D5" gate="G$1" pin="A"/>
<wire x1="7.62" y1="53.34" x2="-2.54" y2="53.34" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$7" class="0">
<segment>
<pinref part="U2" gate="A" pin="P25"/>
<wire x1="43.18" y1="101.6" x2="10.16" y2="101.6" width="0.1524" layer="91"/>
<wire x1="10.16" y1="101.6" x2="10.16" y2="38.1" width="0.1524" layer="91"/>
<pinref part="D6" gate="G$1" pin="A"/>
<wire x1="10.16" y1="38.1" x2="-2.54" y2="38.1" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$8" class="0">
<segment>
<pinref part="D6" gate="G$1" pin="C"/>
<pinref part="R6" gate="A" pin="11"/>
<wire x1="-10.16" y1="38.1" x2="-17.78" y2="38.1" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$9" class="0">
<segment>
<pinref part="D5" gate="G$1" pin="C"/>
<pinref part="R5" gate="A" pin="11"/>
<wire x1="-10.16" y1="53.34" x2="-17.78" y2="53.34" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$10" class="0">
<segment>
<pinref part="D4" gate="G$1" pin="C"/>
<pinref part="R4" gate="A" pin="11"/>
<wire x1="-10.16" y1="68.58" x2="-17.78" y2="68.58" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$11" class="0">
<segment>
<pinref part="D3" gate="G$1" pin="C"/>
<pinref part="R3" gate="A" pin="11"/>
<wire x1="-10.16" y1="83.82" x2="-17.78" y2="83.82" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$12" class="0">
<segment>
<pinref part="D2" gate="G$1" pin="C"/>
<pinref part="R2" gate="A" pin="11"/>
<wire x1="-10.16" y1="99.06" x2="-17.78" y2="99.06" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$13" class="0">
<segment>
<pinref part="D1" gate="G$1" pin="C"/>
<wire x1="-10.16" y1="114.3" x2="-17.78" y2="114.3" width="0.1524" layer="91"/>
<pinref part="R1" gate="A" pin="11"/>
</segment>
</net>
</nets>
</sheet>
</sheets>
<errors>
<approved hash="104,1,121.92,73.66,U$2,5V,N$4,,,"/>
<approved hash="104,1,121.92,71.12,U$2,GND,N$10,,,"/>
<approved hash="111,1,68.58,81.28,N$9,,,,,"/>
</errors>
</schematic>
</drawing>
</eagle>

license: MIT

path: /ECAD-Files/EAGLE-Files/ThanicsHalo/Drone V2/Sensor Board A/Sensor Board A.sch

license_type: permissive

branch_name: refs/heads/master


text:
require xorg-app-common.inc
DESCRIPTION = "a program to create an index of X font files in a directory"
RDEPENDS_${PN} += "mkfontscale"
PE = "1"
PR = "${INC_PR}.1"

SRC_URI[archive.md5sum] = "9365ac66d19186eaf030482d312fca06"
SRC_URI[archive.sha256sum] = "a534650cff503619f9101577d816cde283da993bc039273477bd8dfbd01a2d0b"

BBCLASSEXTEND = "native"

repository: overo/overo-oe-natty

repo_name: overo/overo-oe-natty

branch_name: HEAD

extension: bb


text:
package link

import (
	"net/url"
	"regexp"
)

// Based on https://stackoverflow.com/a/8234912/713518
var expression = regexp.MustCompile(`((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[\S.-]+|(?:www.|[-;:&=\+\$,\w]+@)[\S.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[ˆ\S]*))?)`)

// Link reflects an URL link
type Link string

// List is a list of Links
type List []*Link

func (l Link) String() string {
	return string(l)
}

// GetAll returns a list of all links from a string
func GetAll(in string) List {
	var list List

	for _, result := range expression.FindAllString(in, -1) {
		if _, err := url.Parse(result); err == nil {
			link := Link(result)
			list = append(list, &link)
		}
	}

	return list
}

// Get returns the first link from a string
func Get(in string) *Link {
	if data := GetAll(in); len(data) > 0 {
		return data[0]
	}

	return nil
}

repository: sbstjn/link

repo_name: sbstjn/link

extension: go


text:
package process

import (
	"github.com/g8os/core0/base/pm/core"
	"github.com/g8os/core0/base/pm/stream"
	"github.com/op/go-logging"
	"syscall"
)

const (
	CommandSystem = "core.system"
)

var (
	log = logging.MustGetLogger("process")
)

type GetPID func() (int, error)

type PIDTable interface {
	//Register atomic registration of PID. MUST grantee that that no wait4 will happen
	//on any of the child process until the register operation is done.
	Register(g GetPID) error
	WaitPID(pid int) *syscall.WaitStatus
}

//ProcessStats holds process cpu and memory usage
type ProcessStats struct {
	Cmd   *core.Command `json:"cmd,omitempty"`
	CPU   float64       `json:"cpu"`
	RSS   uint64        `json:"rss"`
	VMS   uint64        `json:"vms"`
	Swap  uint64        `json:"swap"`
	Debug string        `json:"debug,ommitempty"`
}

//Process interface
type Process interface {
	Command() *core.Command
	Run() (<-chan *stream.Message, error)
	Kill()
	GetStats() *ProcessStats
}

type ProcessFactory func(PIDTable, *core.Command) Process


text:
SECTION = "devel/chicken"
DESCRIPTION = "Lazy byte blobs"
LICENSE = "GPL-3"
LIC_FILES_CHKSUM = "file://byte-blob-stream.meta;md5=4c4d04e61abdc6d9016ee50ead21d0b3"
DEPENDS_append_class-cross = " chicken-egg-srfi-41-cross chicken-egg-byte-blob-cross"
DEPENDS_append_class-crosssdk = " chicken-egg-srfi-41-crosssdk chicken-egg-byte-blob-crosssdk"
DEPENDS_append_class-nativesdk = " nativesdk-chicken-egg-srfi-41 nativesdk-chicken-egg-byte-blob chicken-egg-srfi-41-crosssdk chicken-egg-byte-blob-crosssdk"
DEPENDS = " chicken-egg-srfi-41 chicken-egg-byte-blob chicken-egg-srfi-41-cross chicken-egg-byte-blob-cross"
RDEPENDS_${PN} = " chicken-egg-srfi-41 chicken-egg-byte-blob"

SRC_URI = "http://code.call-cc.org/egg-tarballs/4/byte-blob-stream/byte-blob-stream-${PV}.tar.gz"

SRC_URI[md5sum] = "c5eb36e33cc78e88dcc2ac0d7cc08744"
SRC_URI[sha256sum] = "e10756f2dd36f8868705b34e20c6cf7486ba913d385fb189233bfb2f6bc16710"

S = "${WORKDIR}/byte-blob-stream-${PV}"

inherit chicken_install

BBCLASSEXTEND = "cross crosssdk nativesdk"

repository: OSSystems/meta-chicken

repo_name: OSSystems/meta-chicken


text:
package credentials

import (
	"os"
	"path"
	"sort"
	"testing"

	"github.com/mitchellh/mapstructure"

	"github.com/stretchr/testify/assert"
)

func TestSourcesConfigWithLocalSource(t *testing.T) {
	tempDir, err := os.MkdirTemp("", "")
	if err != nil {
		panic(err)
	}
	defer os.RemoveAll(tempDir)
	filePath := path.Join(tempDir, "local_file.json")
	os.WriteFile(filePath, []byte(`[{"id": "test", "type": "secret", "description": "test-desc", "secret": "my secret"}]`), 0777)
	localSource := &LocalSource{
		File: filePath,
	}

	sourcesConfig := SourcesConfiguration{LocalSources: []*LocalSource{localSource}}

	credentials, err := sourcesConfig.Credentials()
	assert.Nil(t, err)
	assert.Equal(t, []Credentials{testCredentials[0]}, credentials)
}

func TestGetCredentialsFromBytes(t *testing.T) {
	t.Parallel()

	cases := []struct {
		name    string
		bytes   []byte
		result  []Credentials
		wantErr bool
	}{
		{
			name:    "Empty file",
			bytes:   []byte{},
			result:  []Credentials{},
			wantErr: false,
		},
		{
			name:    "List",
			bytes:   []byte(testCredentialsAsList),
			result:  testCredentials,
			wantErr: false,
		},
		{
			name:    "Map",
			bytes:   []byte(testCredentialsAsMap),
			result:  testCredentials,
			wantErr: false,
		},
		{
			name: "Single cred",
			bytes: []byte(`{
				"id": "test",
				"type": "secret",
				"description": "test-desc",
				"secret": "my secret"
			}`),
			result:  testCredentials[0:1],
			wantErr: false,
		},
		{
			name:    "SSH Creds",
			bytes:   []byte(testSSHCredentialsString),
			result:  []Credentials{testSSHCredentials},
			wantErr: false,
		},
		{
			name: "Cred without ID",
			bytes: []byte(`{
				"type": "secret",
				"description": "test-desc",
				"secret": "my secret"
			}`),
			result:  nil,
			wantErr: true,
		},
		{
			name: "Bad map",
			bytes: []byte(`{
				"test": "sg",
				"test2": "fsef"
			}`),
			result:  nil,
			wantErr: true,
		},
		{
			name: "Bad list",
			bytes: []byte(`[
				"test",
				"test2"
			]`),
			result:  nil,
			wantErr: true,
		},
	}

	for _, tt := range cases {
		t.Run(tt.name, func(t *testing.T) {
			result, err := getCredentialsFromBytes(tt.bytes)
			if tt.wantErr {
				assert.Error(t, err)
			} else {
				assert.Nil(t, err)
			}
			var expectedAsMaps []map[string]interface{}
			var gottenAsMaps []map[string]interface{}
			mapstructure.Decode(tt.result, &expectedAsMaps)
			mapstructure.Decode(result, &gottenAsMaps)
			sort.Slice(gottenAsMaps, func(i int, j int) bool {
				return gottenAsMaps[i]["ID"].(string) < gottenAsMaps[j]["ID"].(string)
			})
			assert.Equal(t, expectedAsMaps, gottenAsMaps)
		})
	}
}

repository: coveooss/credentials-sync

repo_name: coveooss/credentials-sync

branch_name: refs/heads/main

gha_license_id: MIT

gha_language: Go