text:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="7.7.0">
<drawing>
<settings>
<setting alwaysvectorfont="no"/>
<setting verticaltext="up"/>
</settings>
<grid distance="0.01" unitdist="inch" unit="inch" style="lines" multiple="1" display="no" altdistance="0.01" altunitdist="inch" altunit="inch"/>
<layers>
<layer number="1" name="Top" color="4" fill="1" visible="no" active="no"/>
<layer number="16" name="Bottom" color="1" fill="1" visible="no" active="no"/>
<layer number="17" name="Pads" color="2" fill="1" visible="no" active="no"/>
<layer number="18" name="Vias" color="2" fill="1" visible="no" active="no"/>
<layer number="19" name="Unrouted" color="6" fill="1" visible="no" active="no"/>
<layer number="20" name="Dimension" color="15" fill="1" visible="no" active="no"/>
<layer number="21" name="tPlace" color="7" fill="1" visible="no" active="no"/>
<layer number="22" name="bPlace" color="7" fill="1" visible="no" active="no"/>
<layer number="23" name="tOrigins" color="15" fill="1" visible="no" active="no"/>
<layer number="24" name="bOrigins" color="15" fill="1" visible="no" active="no"/>
<layer number="25" name="tNames" color="7" fill="1" visible="no" active="no"/>
<layer number="26" name="bNames" color="7" fill="1" visible="no" active="no"/>
<layer number="27" name="tValues" color="7" fill="1" visible="no" active="no"/>
<layer number="28" name="bValues" color="7" fill="1" visible="no" active="no"/>
<layer number="29" name="tStop" color="7" fill="3" visible="no" active="no"/>
<layer number="30" name="bStop" color="7" fill="6" visible="no" active="no"/>
<layer number="31" name="tCream" color="7" fill="4" visible="no" active="no"/>
<layer number="32" name="bCream" color="7" fill="5" visible="no" active="no"/>
<layer number="33" name="tFinish" color="6" fill="3" visible="no" active="no"/>
<layer number="34" name="bFinish" color="6" fill="6" visible="no" active="no"/>
<layer number="35" name="tGlue" color="7" fill="4" visible="no" active="no"/>
<layer number="36" name="bGlue" color="7" fill="5" visible="no" active="no"/>
<layer number="37" name="tTest" color="7" fill="1" visible="no" active="no"/>
<layer number="38" name="bTest" color="7" fill="1" visible="no" active="no"/>
<layer number="39" name="tKeepout" color="4" fill="11" visible="no" active="no"/>
<layer number="40" name="bKeepout" color="1" fill="11" visible="no" active="no"/>
<layer number="41" name="tRestrict" color="4" fill="10" visible="no" active="no"/>
<layer number="42" name="bRestrict" color="1" fill="10" visible="no" active="no"/>
<layer number="43" name="vRestrict" color="2" fill="10" visible="no" active="no"/>
<layer number="44" name="Drills" color="7" fill="1" visible="no" active="no"/>
<layer number="45" name="Holes" color="7" fill="1" visible="no" active="no"/>
<layer number="46" name="Milling" color="3" fill="1" visible="no" active="no"/>
<layer number="47" name="Measures" color="7" fill="1" visible="no" active="no"/>
<layer number="48" name="Document" color="7" fill="1" visible="no" active="no"/>
<layer number="49" name="Reference" color="7" fill="1" visible="no" active="no"/>
<layer number="50" name="dxf" color="7" fill="1" visible="no" active="no"/>
<layer number="51" name="tDocu" color="7" fill="1" visible="no" active="no"/>
<layer number="52" name="bDocu" color="7" fill="1" visible="no" active="no"/>
<layer number="53" name="tGND_GNDA" color="7" fill="9" visible="no" active="no"/>
<layer number="54" name="bGND_GNDA" color="1" fill="9" visible="no" active="no"/>
<layer number="56" name="wert" color="7" fill="1" visible="no" active="no"/>
<layer number="57" name="tCAD" color="7" fill="1" visible="no" active="no"/>
<layer number="59" name="tCarbon" color="7" fill="1" visible="no" active="no"/>
<layer number="60" name="bCarbon" color="7" fill="1" visible="no" active="no"/>
<layer number="90" name="Modules" color="5" fill="1" visible="yes" active="yes"/>
<layer number="91" name="Nets" color="2" fill="1" visible="yes" active="yes"/>
<layer number="92" name="Busses" color="1" fill="1" visible="yes" active="yes"/>
<layer number="93" name="Pins" color="2" fill="1" visible="no" active="yes"/>
<layer number="94" name="Symbols" color="4" fill="1" visible="yes" active="yes"/>
<layer number="95" name="Names" color="7" fill="1" visible="yes" active="yes"/>
<layer number="96" name="Values" color="7" fill="1" visible="yes" active="yes"/>
<layer number="97" name="Info" color="7" fill="1" visible="yes" active="yes"/>
<layer number="98" name="Guide" color="6" fill="1" visible="yes" active="yes"/>
<layer number="99" name="SpiceOrder" color="7" fill="1" visible="yes" active="yes"/>
<layer number="100" name="Muster" color="7" fill="1" visible="no" active="no"/>
<layer number="101" name="Patch_Top" color="12" fill="4" visible="no" active="yes"/>
<layer number="102" name="Vscore" color="7" fill="1" visible="no" active="yes"/>
<layer number="103" name="tMap" color="7" fill="1" visible="no" active="yes"/>
<layer number="104" name="Name" color="7" fill="1" visible="no" active="yes"/>
<layer number="105" name="tPlate" color="7" fill="1" visible="no" active="yes"/>
<layer number="106" name="bPlate" color="7" fill="1" visible="no" active="yes"/>
<layer number="107" name="Crop" color="7" fill="1" visible="no" active="yes"/>
<layer number="108" name="tplace-old" color="10" fill="1" visible="no" active="yes"/>
<layer number="109" name="ref-old" color="11" fill="1" visible="no" active="yes"/>
<layer number="110" name="fp0" color="7" fill="1" visible="no" active="yes"/>
<layer number="111" name="LPC17xx" color="7" fill="1" visible="no" active="yes"/>
<layer number="112" name="tSilk" color="7" fill="1" visible="no" active="yes"/>
<layer number="113" name="IDFDebug" color="7" fill="1" visible="no" active="yes"/>
<layer number="116" name="Patch_BOT" color="9" fill="4" visible="no" active="yes"/>
<layer number="118" name="Rect_Pads" color="7" fill="1" visible="no" active="yes"/>
<layer number="121" name="_tsilk" color="7" fill="1" visible="no" active="yes"/>
<layer number="122" name="_bsilk" color="7" fill="1" visible="no" active="yes"/>
<layer number="123" name="tTestmark" color="7" fill="1" visible="no" active="yes"/>
<layer number="124" name="bTestmark" color="7" fill="1" visible="no" active="yes"/>
<layer number="125" name="_tNames" color="7" fill="1" visible="no" active="yes"/>
<layer number="126" name="_bNames" color="7" fill="1" visible="no" active="yes"/>
<layer number="127" name="_tValues" color="7" fill="1" visible="no" active="yes"/>
<layer number="128" name="_bValues" color="7" fill="1" visible="no" active="yes"/>
<layer number="129" name="Mask" color="7" fill="1" visible="no" active="yes"/>
<layer number="131" name="tAdjust" color="7" fill="1" visible="no" active="yes"/>
<layer number="132" name="bAdjust" color="7" fill="1" visible="no" active="yes"/>
<layer number="144" name="Drill_legend" color="7" fill="1" visible="no" active="yes"/>
<layer number="150" name="Notes" color="7" fill="1" visible="no" active="yes"/>
<layer number="151" name="HeatSink" color="7" fill="1" visible="no" active="yes"/>
<layer number="152" name="_bDocu" color="7" fill="1" visible="no" active="yes"/>
<layer number="153" name="FabDoc1" color="7" fill="1" visible="no" active="yes"/>
<layer number="154" name="FabDoc2" color="7" fill="1" visible="no" active="yes"/>
<layer number="155" name="FabDoc3" color="7" fill="1" visible="no" active="yes"/>
<layer number="199" name="Contour" color="7" fill="1" visible="no" active="yes"/>
<layer number="200" name="200bmp" color="1" fill="10" visible="no" active="yes"/>
<layer number="201" name="201bmp" color="2" fill="10" visible="no" active="yes"/>
<layer number="202" name="202bmp" color="3" fill="10" visible="no" active="yes"/>
<layer number="203" name="203bmp" color="4" fill="10" visible="no" active="yes"/>
<layer number="204" name="204bmp" color="5" fill="10" visible="no" active="yes"/>
<layer number="205" name="205bmp" color="6" fill="10" visible="no" active="yes"/>
<layer number="206" name="206bmp" color="7" fill="10" visible="no" active="yes"/>
<layer number="207" name="207bmp" color="8" fill="10" visible="no" active="yes"/>
<layer number="208" name="208bmp" color="9" fill="10" visible="no" active="yes"/>
<layer number="209" name="209bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="210" name="210bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="211" name="211bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="212" name="212bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="213" name="213bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="214" name="214bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="215" name="215bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="216" name="216bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="217" name="217bmp" color="18" fill="1" visible="no" active="no"/>
<layer number="218" name="218bmp" color="19" fill="1" visible="no" active="no"/>
<layer number="219" name="219bmp" color="20" fill="1" visible="no" active="no"/>
<layer number="220" name="220bmp" color="21" fill="1" visible="no" active="no"/>
<layer number="221" name="221bmp" color="22" fill="1" visible="no" active="no"/>
<layer number="222" name="222bmp" color="23" fill="1" visible="no" active="no"/>
<layer number="223" name="223bmp" color="24" fill="1" visible="no" active="no"/>
<layer number="224" name="224bmp" color="25" fill="1" visible="no" active="no"/>
<layer number="225" name="225bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="226" name="226bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="227" name="227bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="228" name="228bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="229" name="229bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="230" name="230bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="231" name="231bmp" color="7" fill="1" visible="no" active="yes"/>
<layer number="248" name="Housing" color="7" fill="1" visible="no" active="yes"/>
<layer number="249" name="Edge" color="7" fill="1" visible="no" active="yes"/>
<layer number="250" name="Descript" color="3" fill="1" visible="no" active="no"/>
<layer number="251" name="SMDround" color="12" fill="11" visible="no" active="no"/>
<layer number="254" name="cooling" color="7" fill="1" visible="no" active="yes"/>
<layer number="255" name="routoute" color="7" fill="1" visible="no" active="yes"/>
</layers>
<schematic xreflabel="%F%N/%S.%C%R" xrefpart="/%S.%C%R">
<libraries>
<library name="0_fab">
<packages>
<package name="SOIC14">
<description>Small Outline Package</description>
<wire x1="-4.267" y1="-1.791" x2="4.267" y2="-1.791" width="0.1524" layer="51"/>
<wire x1="4.267" y1="-1.791" x2="4.267" y2="1.791" width="0.1524" layer="21"/>
<wire x1="4.267" y1="1.791" x2="-4.267" y2="1.791" width="0.1524" layer="51"/>
<wire x1="-4.267" y1="1.791" x2="-4.267" y2="-1.791" width="0.1524" layer="21"/>
<circle x="-3.5052" y="-0.7747" radius="0.5334" width="0.1524" layer="21"/>
<smd name="1" x="-3.81" y="-2.6035" dx="0.6096" dy="2.2098" layer="1"/>
<smd name="14" x="-3.81" y="2.6035" dx="0.6096" dy="2.2098" layer="1"/>
<smd name="2" x="-2.54" y="-2.6035" dx="0.6096" dy="2.2098" layer="1"/>
<smd name="3" x="-1.27" y="-2.6035" dx="0.6096" dy="2.2098" layer="1"/>
<smd name="13" x="-2.54" y="2.6035" dx="0.6096" dy="2.2098" layer="1"/>
<smd name="12" x="-1.27" y="2.6035" dx="0.6096" dy="2.2098" layer="1"/>
<smd name="4" x="0" y="-2.6035" dx="0.6096" dy="2.2098" layer="1"/>
<smd name="11" x="0" y="2.6035" dx="0.6096" dy="2.2098" layer="1"/>
<smd name="5" x="1.27" y="-2.6035" dx="0.6096" dy="2.2098" layer="1"/>
<smd name="6" x="2.54" y="-2.6035" dx="0.6096" dy="2.2098" layer="1"/>
<smd name="10" x="1.27" y="2.6035" dx="0.6096" dy="2.2098" layer="1"/>
<smd name="9" x="2.54" y="2.6035" dx="0.6096" dy="2.2098" layer="1"/>
<smd name="7" x="3.81" y="-2.6035" dx="0.6096" dy="2.2098" layer="1"/>
<smd name="8" x="3.81" y="2.6035" dx="0.6096" dy="2.2098" layer="1"/>
<text x="-4.5085" y="-2.032" size="1.27" layer="25" ratio="10" rot="R90">>NAME</text>
<text x="-2.54" y="-0.6985" size="1.27" layer="27" ratio="10">>VALUE</text>
<rectangle x1="-3.9878" y1="1.8415" x2="-3.6322" y2="2.8575" layer="51"/>
<rectangle x1="-2.7178" y1="1.8415" x2="-2.3622" y2="2.8575" layer="51"/>
<rectangle x1="-1.4478" y1="1.8415" x2="-1.0922" y2="2.8575" layer="51"/>
<rectangle x1="-0.1778" y1="1.8415" x2="0.1778" y2="2.8575" layer="51"/>
<rectangle x1="1.0922" y1="1.8415" x2="1.4478" y2="2.8575" layer="51"/>
<rectangle x1="2.3622" y1="1.8415" x2="2.7178" y2="2.8575" layer="51"/>
<rectangle x1="3.6322" y1="1.8415" x2="3.9878" y2="2.8575" layer="51"/>
<rectangle x1="3.6322" y1="-2.8575" x2="3.9878" y2="-1.8415" layer="51"/>
<rectangle x1="2.3622" y1="-2.8575" x2="2.7178" y2="-1.8415" layer="51"/>
<rectangle x1="1.0922" y1="-2.8575" x2="1.4478" y2="-1.8415" layer="51"/>
<rectangle x1="-0.1778" y1="-2.8575" x2="0.1778" y2="-1.8415" layer="51"/>
<rectangle x1="-1.4478" y1="-2.8575" x2="-1.0922" y2="-1.8415" layer="51"/>
<rectangle x1="-2.7178" y1="-2.8575" x2="-2.3622" y2="-1.8415" layer="51"/>
<rectangle x1="-3.9878" y1="-2.8575" x2="-3.6322" y2="-1.8415" layer="51"/>
</package>
<package name="DIL14">
<description>Dual In Line Package</description>
<wire x1="8.89" y1="2.921" x2="-8.89" y2="2.921" width="0.1524" layer="21"/>
<wire x1="-8.89" y1="-2.921" x2="8.89" y2="-2.921" width="0.1524" layer="21"/>
<wire x1="8.89" y1="2.921" x2="8.89" y2="-2.921" width="0.1524" layer="21"/>
<wire x1="-8.89" y1="2.921" x2="-8.89" y2="1.016" width="0.1524" layer="21"/>
<wire x1="-8.89" y1="-2.921" x2="-8.89" y2="-1.016" width="0.1524" layer="21"/>
<wire x1="-8.89" y1="1.016" x2="-8.89" y2="-1.016" width="0.1524" layer="21" curve="-180"/>
<pad name="1" x="-7.62" y="-3.81" drill="0.8128" shape="long" rot="R90"/>
<pad name="2" x="-5.08" y="-3.81" drill="0.8128" shape="long" rot="R90"/>
<pad name="7" x="7.62" y="-3.81" drill="0.8128" shape="long" rot="R90"/>
<pad name="8" x="7.62" y="3.81" drill="0.8128" shape="long" rot="R90"/>
<pad name="3" x="-2.54" y="-3.81" drill="0.8128" shape="long" rot="R90"/>
<pad name="4" x="0" y="-3.81" drill="0.8128" shape="long" rot="R90"/>
<pad name="6" x="5.08" y="-3.81" drill="0.8128" shape="long" rot="R90"/>
<pad name="5" x="2.54" y="-3.81" drill="0.8128" shape="long" rot="R90"/>
<pad name="9" x="5.08" y="3.81" drill="0.8128" shape="long" rot="R90"/>
<pad name="10" x="2.54" y="3.81" drill="0.8128" shape="long" rot="R90"/>
<pad name="11" x="0" y="3.81" drill="0.8128" shape="long" rot="R90"/>
<pad name="12" x="-2.54" y="3.81" drill="0.8128" shape="long" rot="R90"/>
<pad name="13" x="-5.08" y="3.81" drill="0.8128" shape="long" rot="R90"/>
<pad name="14" x="-7.62" y="3.81" drill="0.8128" shape="long" rot="R90"/>
<text x="-9.271" y="-3.048" size="1.27" layer="25" ratio="10" rot="R90">>NAME</text>
<text x="-6.731" y="-0.635" size="1.27" layer="27" ratio="10">>VALUE</text>
</package>
<package name="QFN/MLF20">
<description>HP-VFQFP-N20 Micro Lead Frame package (MLF)</description>
<wire x1="-2.375" y1="2.05" x2="-2.05" y2="2.375" width="0.254" layer="21"/>
<wire x1="-2.05" y1="2.375" x2="2.05" y2="2.375" width="0.254" layer="51"/>
<wire x1="2.05" y1="-2.375" x2="-2.05" y2="-2.375" width="0.254" layer="51"/>
<wire x1="-2.05" y1="-2.375" x2="-2.375" y2="-2.05" width="0.254" layer="21"/>
<wire x1="-2.375" y1="-2.05" x2="-2.375" y2="2.05" width="0.254" layer="51"/>
<wire x1="2.375" y1="2.05" x2="2.375" y2="-2.05" width="0.254" layer="51"/>
<wire x1="2.05" y1="2.375" x2="2.375" y2="2.05" width="0.254" layer="21"/>
<wire x1="2.375" y1="-2.05" x2="2.05" y2="-2.375" width="0.254" layer="21"/>
<circle x="-1.55" y="1.55" radius="0.15" width="0.254" layer="21"/>
<smd name="1" x="-2.25" y="1.3" dx="0.9" dy="0.35" layer="1" roundness="50"/>
<smd name="2" x="-2.25" y="0.65" dx="0.9" dy="0.35" layer="1" roundness="50"/>
<smd name="3" x="-2.25" y="0" dx="0.9" dy="0.35" layer="1" roundness="50"/>
<smd name="4" x="-2.25" y="-0.65" dx="0.9" dy="0.35" layer="1" roundness="50"/>
<smd name="5" x="-2.25" y="-1.3" dx="0.9" dy="0.35" layer="1" roundness="50"/>
<smd name="6" x="-1.3" y="-2.25" dx="0.35" dy="0.9" layer="1" roundness="50"/>
<smd name="7" x="-0.65" y="-2.25" dx="0.35" dy="0.9" layer="1" roundness="50"/>
<smd name="8" x="0" y="-2.25" dx="0.35" dy="0.9" layer="1" roundness="50"/>
<smd name="9" x="0.65" y="-2.25" dx="0.35" dy="0.9" layer="1" roundness="50"/>
<smd name="10" x="1.3" y="-2.25" dx="0.35" dy="0.9" layer="1" roundness="50"/>
<smd name="11" x="2.25" y="-1.3" dx="0.9" dy="0.35" layer="1" roundness="50"/>
<smd name="12" x="2.25" y="-0.65" dx="0.9" dy="0.35" layer="1" roundness="50"/>
<smd name="13" x="2.25" y="0" dx="0.9" dy="0.35" layer="1" roundness="50"/>
<smd name="14" x="2.25" y="0.65" dx="0.9" dy="0.35" layer="1" roundness="50"/>
<smd name="15" x="2.25" y="1.3" dx="0.9" dy="0.35" layer="1" roundness="50"/>
<smd name="16" x="1.3" y="2.25" dx="0.35" dy="0.9" layer="1" roundness="50"/>
<smd name="17" x="0.65" y="2.25" dx="0.35" dy="0.9" layer="1" roundness="50"/>
<smd name="18" x="0" y="2.25" dx="0.35" dy="0.9" layer="1" roundness="50"/>
<smd name="19" x="-0.65" y="2.25" dx="0.35" dy="0.9" layer="1" roundness="50"/>
<smd name="20" x="-1.3" y="2.25" dx="0.35" dy="0.9" layer="1" roundness="50"/>
<text x="-2.54" y="3.175" size="1.27" layer="25">>NAME</text>
<text x="-2.54" y="-4.445" size="1.27" layer="27">>VALUE</text>
<rectangle x1="-2.35" y1="1.15" x2="-1.9" y2="1.45" layer="51"/>
<rectangle x1="-2.35" y1="0.5" x2="-1.9" y2="0.8" layer="51"/>
<rectangle x1="-2.35" y1="-0.15" x2="-1.9" y2="0.15" layer="51"/>
<rectangle x1="-2.35" y1="-0.8" x2="-1.9" y2="-0.5" layer="51"/>
<rectangle x1="-2.35" y1="-1.45" x2="-1.9" y2="-1.15" layer="51"/>
<rectangle x1="-1.45" y1="-2.35" x2="-1.15" y2="-1.9" layer="51"/>
<rectangle x1="-0.8" y1="-2.35" x2="-0.5" y2="-1.9" layer="51"/>
<rectangle x1="-0.15" y1="-2.35" x2="0.15" y2="-1.9" layer="51"/>
<rectangle x1="0.5" y1="-2.35" x2="0.8" y2="-1.9" layer="51"/>
<rectangle x1="1.15" y1="-2.35" x2="1.45" y2="-1.9" layer="51"/>
<rectangle x1="1.9" y1="-1.45" x2="2.35" y2="-1.15" layer="51"/>
<rectangle x1="1.9" y1="-0.8" x2="2.35" y2="-0.5" layer="51"/>
<rectangle x1="1.9" y1="-0.15" x2="2.35" y2="0.15" layer="51"/>
<rectangle x1="1.9" y1="0.5" x2="2.35" y2="0.8" layer="51"/>
<rectangle x1="1.9" y1="1.15" x2="2.35" y2="1.45" layer="51"/>
<rectangle x1="1.15" y1="1.9" x2="1.45" y2="2.35" layer="51"/>
<rectangle x1="0.5" y1="1.9" x2="0.8" y2="2.35" layer="51"/>
<rectangle x1="-0.15" y1="1.9" x2="0.15" y2="2.35" layer="51"/>
<rectangle x1="-0.8" y1="1.9" x2="-0.5" y2="2.35" layer="51"/>
<rectangle x1="-1.45" y1="1.9" x2="-1.15" y2="2.35" layer="51"/>
</package>
<package name="C1206">
<description>CAPACITOR</description>
<wire x1="-2.473" y1="0.983" x2="2.473" y2="0.983" width="0.0508" layer="39"/>
<wire x1="2.473" y1="-0.983" x2="-2.473" y2="-0.983" width="0.0508" layer="39"/>
<wire x1="-2.473" y1="-0.983" x2="-2.473" y2="0.983" width="0.0508" layer="39"/>
<wire x1="2.473" y1="0.983" x2="2.473" y2="-0.983" width="0.0508" layer="39"/>
<wire x1="-0.965" y1="0.787" x2="0.965" y2="0.787" width="0.1016" layer="51"/>
<wire x1="-0.965" y1="-0.787" x2="0.965" y2="-0.787" width="0.1016" layer="51"/>
<smd name="1" x="-1.4" y="0" dx="1.6" dy="1.8" layer="1"/>
<smd name="2" x="1.4" y="0" dx="1.6" dy="1.8" layer="1"/>
<text x="-1.27" y="1.27" size="1.27" layer="25">>NAME</text>
<text x="-1.27" y="-2.54" size="1.27" layer="27">>VALUE</text>
<rectangle x1="-1.7018" y1="-0.8509" x2="-0.9517" y2="0.8491" layer="51"/>
<rectangle x1="0.9517" y1="-0.8491" x2="1.7018" y2="0.8509" layer="51"/>
<rectangle x1="-0.1999" y1="-0.4001" x2="0.1999" y2="0.4001" layer="35"/>
</package>
<package name="C1206FAB">
<wire x1="-2.032" y1="1.016" x2="2.032" y2="1.016" width="0.127" layer="21"/>
<wire x1="2.032" y1="1.016" x2="2.032" y2="-1.016" width="0.127" layer="21"/>
<wire x1="2.032" y1="-1.016" x2="-2.032" y2="-1.016" width="0.127" layer="21"/>
<wire x1="-2.032" y1="-1.016" x2="-2.032" y2="1.016" width="0.127" layer="21"/>
<smd name="1" x="-1.651" y="0" dx="1.27" dy="1.905" layer="1"/>
<smd name="2" x="1.651" y="0" dx="1.27" dy="1.905" layer="1"/>
<text x="-1.778" y="1.27" size="1.016" layer="25" ratio="15">>NAME</text>
<text x="-1.778" y="-2.286" size="1.016" layer="27" ratio="15">>VALUE</text>
</package>
<package name="R1206">
<description>RESISTOR</description>
<wire x1="0.9525" y1="-0.8128" x2="-0.9652" y2="-0.8128" width="0.1524" layer="51"/>
<wire x1="0.9525" y1="0.8128" x2="-0.9652" y2="0.8128" width="0.1524" layer="51"/>
<wire x1="-2.473" y1="0.983" x2="2.473" y2="0.983" width="0.0508" layer="39"/>
<wire x1="2.473" y1="0.983" x2="2.473" y2="-0.983" width="0.0508" layer="39"/>
<wire x1="2.473" y1="-0.983" x2="-2.473" y2="-0.983" width="0.0508" layer="39"/>
<wire x1="-2.473" y1="-0.983" x2="-2.473" y2="0.983" width="0.0508" layer="39"/>
<smd name="2" x="1.422" y="0" dx="1.6" dy="1.803" layer="1"/>
<smd name="1" x="-1.422" y="0" dx="1.6" dy="1.803" layer="1"/>
<text x="-1.27" y="1.27" size="1.27" layer="25">>NAME</text>
<text x="-1.27" y="-2.54" size="1.27" layer="27">>VALUE</text>
<rectangle x1="-1.6891" y1="-0.8763" x2="-0.9525" y2="0.8763" layer="51"/>
<rectangle x1="0.9525" y1="-0.8763" x2="1.6891" y2="0.8763" layer="51"/>
<rectangle x1="-0.3" y1="-0.7" x2="0.3" y2="0.7" layer="35"/>
</package>
<package name="R1206W">
<description>RESISTOR

wave soldering</description>
<wire x1="-0.913" y1="0.8" x2="0.888" y2="0.8" width="0.1524" layer="51"/>
<wire x1="-0.913" y1="-0.8" x2="0.888" y2="-0.8" width="0.1524" layer="51"/>
<wire x1="-2.473" y1="0.983" x2="2.473" y2="0.983" width="0.0508" layer="39"/>
<wire x1="2.473" y1="0.983" x2="2.473" y2="-0.983" width="0.0508" layer="39"/>
<wire x1="2.473" y1="-0.983" x2="-2.473" y2="-0.983" width="0.0508" layer="39"/>
<wire x1="-2.473" y1="-0.983" x2="-2.473" y2="0.983" width="0.0508" layer="39"/>
<smd name="1" x="-1.499" y="0" dx="1.8" dy="1.2" layer="1"/>
<smd name="2" x="1.499" y="0" dx="1.8" dy="1.2" layer="1"/>
<text x="-1.905" y="1.27" size="1.27" layer="25">>NAME</text>
<text x="-1.905" y="-2.54" size="1.27" layer="27">>VALUE</text>
<rectangle x1="-1.651" y1="-0.8763" x2="-0.9009" y2="0.8738" layer="51"/>
<rectangle x1="0.889" y1="-0.8763" x2="1.6391" y2="0.8738" layer="51"/>
<rectangle x1="-0.3" y1="-0.7" x2="0.3" y2="0.7" layer="35"/>
</package>
<package name="R1206FAB">
<wire x1="-2.032" y1="1.016" x2="2.032" y2="1.016" width="0.127" layer="21"/>
<wire x1="2.032" y1="1.016" x2="2.032" y2="-1.016" width="0.127" layer="21"/>
<wire x1="2.032" y1="-1.016" x2="-2.032" y2="-1.016" width="0.127" layer="21"/>
<wire x1="-2.032" y1="-1.016" x2="-2.032" y2="1.016" width="0.127" layer="21"/>
<smd name="1" x="-1.651" y="0" dx="1.27" dy="1.905" layer="1"/>
<smd name="2" x="1.651" y="0" dx="1.27" dy="1.905" layer="1"/>
<text x="-1.778" y="1.27" size="1.016" layer="25" ratio="15">>NAME</text>
<text x="-1.778" y="-2.286" size="1.016" layer="27" ratio="15">>VALUE</text>
</package>
<package name="SOD123">
<description>SMALL OUTLINE DIODE</description>
<wire x1="-2.973" y1="0.983" x2="2.973" y2="0.983" width="0.0508" layer="39"/>
<wire x1="2.973" y1="-0.983" x2="-2.973" y2="-0.983" width="0.0508" layer="39"/>
<wire x1="-2.973" y1="-0.983" x2="-2.973" y2="0.983" width="0.0508" layer="39"/>
<wire x1="2.973" y1="0.983" x2="2.973" y2="-0.983" width="0.0508" layer="39"/>
<wire x1="-1.321" y1="0.787" x2="1.321" y2="0.787" width="0.1016" layer="51"/>
<wire x1="-1.321" y1="-0.787" x2="1.321" y2="-0.787" width="0.1016" layer="51"/>
<wire x1="-1.321" y1="-0.787" x2="-1.321" y2="0.787" width="0.1016" layer="51"/>
<wire x1="1.321" y1="-0.787" x2="1.321" y2="0.787" width="0.1016" layer="51"/>
<wire x1="-1" y1="0" x2="0" y2="0.5" width="0.2032" layer="51"/>
<wire x1="0" y1="0.5" x2="0" y2="-0.5" width="0.2032" layer="51"/>
<wire x1="0" y1="-0.5" x2="-1" y2="0" width="0.2032" layer="51"/>
<wire x1="-1" y1="0.5" x2="-1" y2="0" width="0.2032" layer="51"/>
<wire x1="-1" y1="0" x2="-1" y2="-0.5" width="0.2032" layer="51"/>
<smd name="CATHODE" x="-1.7" y="0" dx="1.6" dy="0.8" layer="1"/>
<smd name="ANODE" x="1.7" y="0" dx="1.6" dy="0.8" layer="1"/>
<text x="-1.905" y="1.905" size="1.27" layer="25">>NAME</text>
<text x="-1.905" y="-3.175" size="1.27" layer="27">>VALUE</text>
<rectangle x1="-1.9558" y1="-0.3048" x2="-1.3716" y2="0.3048" layer="51" rot="R180"/>
<rectangle x1="1.3716" y1="-0.3048" x2="1.9558" y2="0.3048" layer="51" rot="R180"/>
<rectangle x1="-0.4001" y1="-0.7" x2="0.4001" y2="0.7" layer="35"/>
</package>
<package name="SOT-23">
<description>Small Outline Transistor</description>
<wire x1="-1.4224" y1="0.381" x2="1.4732" y2="0.381" width="0.1524" layer="21"/>
<wire x1="1.4732" y1="0.381" x2="1.4732" y2="-0.381" width="0.1524" layer="21"/>
<wire x1="1.4732" y1="-0.381" x2="-1.4224" y2="-0.381" width="0.1524" layer="21"/>
<wire x1="-1.4224" y1="-0.381" x2="-1.4224" y2="0.381" width="0.1524" layer="21"/>
<smd name="3" x="0.9906" y="1.016" dx="0.7874" dy="0.889" layer="1"/>
<smd name="2" x="-0.9398" y="1.016" dx="0.7874" dy="0.889" layer="1"/>
<smd name="1" x="0.0254" y="-1.016" dx="0.7874" dy="0.889" layer="1"/>
<text x="-1.397" y="1.778" size="1.27" layer="27" ratio="10">>VALUE</text>
<text x="-1.397" y="3.302" size="1.27" layer="25" ratio="10">>NAME</text>
<rectangle x1="0.7874" y1="0.4318" x2="1.1684" y2="0.9398" layer="51"/>
<rectangle x1="-1.143" y1="0.4318" x2="-0.762" y2="0.9398" layer="51"/>
<rectangle x1="-0.1778" y1="-0.9398" x2="0.2032" y2="-0.4318" layer="51"/>
</package>
<package name="1X06SMD">
<smd name="1" x="0" y="6.35" dx="2.54" dy="1.27" layer="1"/>
<smd name="2" x="0" y="3.81" dx="2.54" dy="1.27" layer="1"/>
<smd name="3" x="0" y="1.27" dx="2.54" dy="1.27" layer="1"/>
<smd name="4" x="0" y="-1.27" dx="2.54" dy="1.27" layer="1"/>
<smd name="5" x="0" y="-3.81" dx="2.54" dy="1.27" layer="1"/>
<smd name="6" x="0" y="-6.35" dx="2.54" dy="1.27" layer="1"/>
<text x="-1.905" y="-3.175" size="1.27" layer="25" rot="R90">>NAME</text>
</package>
<package name="2X03SMD">
<smd name="1" x="-2.54" y="2.54" dx="2.54" dy="1.27" layer="1"/>
<smd name="3" x="-2.54" y="0" dx="2.54" dy="1.27" layer="1"/>
<smd name="5" x="-2.54" y="-2.54" dx="2.54" dy="1.27" layer="1"/>
<smd name="2" x="2.92" y="2.54" dx="2.54" dy="1.27" layer="1"/>
<smd name="4" x="2.92" y="0" dx="2.54" dy="1.27" layer="1"/>
<smd name="6" x="2.92" y="-2.54" dx="2.54" dy="1.27" layer="1"/>
<text x="-5.08" y="2.54" size="1.27" layer="27">1</text>
<text x="-3.81" y="3.81" size="1.27" layer="25">>NAME</text>
<text x="-3.81" y="-5.08" size="1.27" layer="27">>VALUE</text>
</package>
<package name="2X03">
<description>PIN HEADER</description>
<wire x1="-3.81" y1="-1.905" x2="-3.175" y2="-2.54" width="0.1524" layer="21"/>
<wire x1="-1.905" y1="-2.54" x2="-1.27" y2="-1.905" width="0.1524" layer="21"/>
<wire x1="-1.27" y1="-1.905" x2="-0.635" y2="-2.54" width="0.1524" layer="21"/>
<wire x1="0.635" y1="-2.54" x2="1.27" y2="-1.905" width="0.1524" layer="21"/>
<wire x1="-3.81" y1="-1.905" x2="-3.81" y2="1.905" width="0.1524" layer="21"/>
<wire x1="-3.81" y1="1.905" x2="-3.175" y2="2.54" width="0.1524" layer="21"/>
<wire x1="-3.175" y1="2.54" x2="-1.905" y2="2.54" width="0.1524" layer="21"/>
<wire x1="-1.905" y1="2.54" x2="-1.27" y2="1.905" width="0.1524" layer="21"/>
<wire x1="-1.27" y1="1.905" x2="-0.635" y2="2.54" width="0.1524" layer="21"/>
<wire x1="-0.635" y1="2.54" x2="0.635" y2="2.54" width="0.1524" layer="21"/>
<wire x1="0.635" y1="2.54" x2="1.27" y2="1.905" width="0.1524" layer="21"/>
<wire x1="-1.27" y1="1.905" x2="-1.27" y2="-1.905" width="0.1524" layer="21"/>
<wire x1="1.27" y1="1.905" x2="1.27" y2="-1.905" width="0.1524" layer="21"/>
<wire x1="-0.635" y1="-2.54" x2="0.635" y2="-2.54" width="0.1524" layer="21"/>
<wire x1="-3.175" y1="-2.54" x2="-1.905" y2="-2.54" width="0.1524" layer="21"/>
<wire x1="1.27" y1="-1.905" x2="1.905" y2="-2.54" width="0.1524" layer="21"/>
<wire x1="3.175" y1="-2.54" x2="3.81" y2="-1.905" width="0.1524" layer="21"/>
<wire x1="1.27" y1="1.905" x2="1.905" y2="2.54" width="0.1524" layer="21"/>
<wire x1="1.905" y1="2.54" x2="3.175" y2="2.54" width="0.1524" layer="21"/>
<wire x1="3.175" y1="2.54" x2="3.81" y2="1.905" width="0.1524" layer="21"/>
<wire x1="3.81" y1="1.905" x2="3.81" y2="-1.905" width="0.1524" layer="21"/>
<wire x1="1.905" y1="-2.54" x2="3.175" y2="-2.54" width="0.1524" layer="21"/>
<wire x1="-3.175" y1="-2.921" x2="-1.905" y2="-2.921" width="0.127" layer="21"/>
<pad name="1" x="-2.54" y="-1.27" drill="1.016" shape="square"/>
<pad name="2" x="-2.54" y="1.27" drill="1.016" shape="octagon"/>
<pad name="3" x="0" y="-1.27" drill="1.016" shape="octagon"/>
<pad name="4" x="0" y="1.27" drill="1.016" shape="octagon"/>
<pad name="5" x="2.54" y="-1.27" drill="1.016" shape="octagon"/>
<pad name="6" x="2.54" y="1.27" drill="1.016" shape="octagon"/>
<text x="-3.81" y="3.175" size="1.27" layer="25" ratio="10">>NAME</text>
<text x="-3.81" y="-4.445" size="1.27" layer="27">>VALUE</text>
<text x="-5.08" y="-2.54" size="1.27" layer="21">1</text>
<rectangle x1="-2.794" y1="-1.524" x2="-2.286" y2="-1.016" layer="51"/>
<rectangle x1="-2.794" y1="1.016" x2="-2.286" y2="1.524" layer="51"/>
<rectangle x1="-0.254" y1="1.016" x2="0.254" y2="1.524" layer="51"/>
<rectangle x1="-0.254" y1="-1.524" x2="0.254" y2="-1.016" layer="51"/>
<rectangle x1="2.286" y1="1.016" x2="2.794" y2="1.524" layer="51"/>
<rectangle x1="2.286" y1="-1.524" x2="2.794" y2="-1.016" layer="51"/>
</package>
</packages>
<symbols>
<symbol name="ATTINY24/44/84">
<wire x1="-2.54" y1="17.78" x2="45.72" y2="17.78" width="0.254" layer="94"/>
<wire x1="45.72" y1="17.78" x2="45.72" y2="-17.78" width="0.254" layer="94"/>
<wire x1="45.72" y1="-17.78" x2="-2.54" y2="-17.78" width="0.254" layer="94"/>
<wire x1="-2.54" y1="-17.78" x2="-2.54" y2="17.78" width="0.254" layer="94"/>
<text x="-2.54" y="-20.32" size="1.778" layer="96">>VALUE</text>
<text x="-2.54" y="18.542" size="1.778" layer="95">>NAME</text>
<pin name="GND" x="-7.62" y="-15.24" length="middle" direction="pwr"/>
<pin name="VCC" x="-7.62" y="-2.54" length="middle" direction="pwr"/>
<pin name="(PCINT7/ICP/OC0B/ADC7)PA7" x="50.8" y="2.54" length="middle" rot="R180"/>
<pin name="(PCINT6/OC1A/SDA/MOSI/ADC6)PA6" x="50.8" y="0" length="middle" rot="R180"/>
<pin name="(PCINT5/OC1B/MISO/DO/ADC5)PA5" x="50.8" y="-2.54" length="middle" rot="R180"/>
<pin name="(PCINT4/T1/SCL/USCK/ADC4)PA4" x="50.8" y="-5.08" length="middle" rot="R180"/>
<pin name="(PCINT3/T0/ADC3)PA3" x="50.8" y="-7.62" length="middle" rot="R180"/>
<pin name="(PCINT2/AIN1/ADC2)PA2" x="50.8" y="-10.16" length="middle" rot="R180"/>
<pin name="(PCINT1/AIN0/ADC1)PA1" x="50.8" y="-12.7" length="middle" rot="R180"/>
<pin name="(PCINT0/AREF/ADC0)PA0" x="50.8" y="-15.24" length="middle" rot="R180"/>
<pin name="(PCINT11/RESET/DW)PB3" x="50.8" y="15.24" length="middle" rot="R180"/>
<pin name="(PCINT10/INT0/OC0A/CKOUT)PB2" x="50.8" y="12.7" length="middle" rot="R180"/>
<pin name="(PCINT9/XTAL2)PB1" x="50.8" y="10.16" length="middle" rot="R180"/>
<pin name="(PCINT8/XTAL1/CLKI)PB0" x="50.8" y="7.62" length="middle" rot="R180"/>
</symbol>
<symbol name="CAP-NONPOLARIZED">
<description>non-polarized capacitor</description>
<wire x1="-1.778" y1="1.524" x2="-1.778" y2="0" width="0.254" layer="94"/>
<wire x1="-1.778" y1="0" x2="-1.778" y2="-1.524" width="0.254" layer="94"/>
<wire x1="-0.762" y1="1.524" x2="-0.762" y2="0" width="0.254" layer="94"/>
<wire x1="-0.762" y1="0" x2="-0.762" y2="-1.524" width="0.254" layer="94"/>
<wire x1="-2.54" y1="0" x2="-1.778" y2="0" width="0.1524" layer="94"/>
<wire x1="-0.762" y1="0" x2="0" y2="0" width="0.1524" layer="94"/>
<text x="-3.81" y="2.54" size="1.778" layer="95">>NAME</text>
<text x="-3.81" y="-3.81" size="1.778" layer="96">>VALUE</text>
<pin name="1" x="-5.08" y="0" visible="off" length="short" direction="pas" swaplevel="1"/>
<pin name="2" x="2.54" y="0" visible="off" length="short" direction="pas" swaplevel="1" rot="R180"/>
</symbol>
<symbol name="R-US">
<wire x1="-2.54" y1="0" x2="-2.159" y2="1.016" width="0.2032" layer="94"/>
<wire x1="-2.159" y1="1.016" x2="-1.524" y2="-1.016" width="0.2032" layer="94"/>
<wire x1="-1.524" y1="-1.016" x2="-0.889" y2="1.016" width="0.2032" layer="94"/>
<wire x1="-0.889" y1="1.016" x2="-0.254" y2="-1.016" width="0.2032" layer="94"/>
<wire x1="-0.254" y1="-1.016" x2="0.381" y2="1.016" width="0.2032" layer="94"/>
<wire x1="0.381" y1="1.016" x2="1.016" y2="-1.016" width="0.2032" layer="94"/>
<wire x1="1.016" y1="-1.016" x2="1.651" y2="1.016" width="0.2032" layer="94"/>
<wire x1="1.651" y1="1.016" x2="2.286" y2="-1.016" width="0.2032" layer="94"/>
<wire x1="2.286" y1="-1.016" x2="2.54" y2="0" width="0.2032" layer="94"/>
<text x="-3.81" y="1.4986" size="1.778" layer="95">>NAME</text>
<text x="-3.81" y="-3.302" size="1.778" layer="96">>VALUE</text>
<pin name="2" x="5.08" y="0" visible="off" length="short" direction="pas" swaplevel="1" rot="R180"/>
<pin name="1" x="-5.08" y="0" visible="off" length="short" direction="pas" swaplevel="1"/>
</symbol>
<symbol name="D">
<wire x1="-1.27" y1="-1.27" x2="1.27" y2="0" width="0.254" layer="94"/>
<wire x1="1.27" y1="0" x2="-1.27" y2="1.27" width="0.254" layer="94"/>
<wire x1="1.27" y1="1.27" x2="1.27" y2="0" width="0.254" layer="94"/>
<wire x1="-1.27" y1="1.27" x2="-1.27" y2="-1.27" width="0.254" layer="94"/>
<wire x1="1.27" y1="0" x2="1.27" y2="-1.27" width="0.254" layer="94"/>
<text x="2.54" y="0.4826" size="1.778" layer="95">>NAME</text>
<text x="2.54" y="-2.3114" size="1.778" layer="96">>VALUE</text>
<pin name="A" x="-2.54" y="0" visible="off" length="short" direction="pas"/>
<pin name="C" x="2.54" y="0" visible="off" length="short" direction="pas" rot="R180"/>
</symbol>
<symbol name="P_MOSFET">
<wire x1="-1.651" y1="0" x2="0" y2="0" width="0.1524" layer="94"/>
<wire x1="-1.524" y1="-2.159" x2="0" y2="-2.159" width="0.1524" layer="94"/>
<wire x1="-2.54" y1="-2.54" x2="-2.54" y2="2.54" width="0.1524" layer="94"/>
<wire x1="0" y1="0" x2="0" y2="-2.159" width="0.1524" layer="94"/>
<wire x1="1.397" y1="-0.508" x2="1.397" y2="-3.048" width="0.1524" layer="94"/>
<wire x1="1.397" y1="-3.048" x2="0" y2="-3.048" width="0.1524" layer="94"/>
<wire x1="-1.524" y1="2.159" x2="0" y2="2.159" width="0.1524" layer="94"/>
<wire x1="0" y1="2.159" x2="0" y2="2.54" width="0.1524" layer="94"/>
<wire x1="0" y1="3.048" x2="1.397" y2="3.048" width="0.1524" layer="94"/>
<wire x1="1.397" y1="3.048" x2="1.397" y2="0.381" width="0.1524" layer="94"/>
<wire x1="0" y1="-2.159" x2="0" y2="-2.54" width="0.1524" layer="94"/>
<text x="2.54" y="0" size="1.778" layer="96">>VALUE</text>
<text x="2.54" y="2.54" size="1.778" layer="95">>NAME</text>
<rectangle x1="-2.032" y1="1.397" x2="-1.524" y2="2.921" layer="94"/>
<rectangle x1="-2.032" y1="-0.762" x2="-1.524" y2="0.762" layer="94"/>
<rectangle x1="-2.032" y1="-2.921" x2="-1.524" y2="-1.397" layer="94"/>
<pin name="D" x="0" y="5.08" visible="off" length="short" direction="pas" rot="R270"/>
<pin name="S" x="0" y="-5.08" visible="off" length="short" direction="pas" rot="R90"/>
<pin name="G" x="-5.08" y="-2.54" visible="off" length="short" direction="pas"/>
<polygon width="0.1016" layer="94">
<vertex x="-0.127" y="0"/>
<vertex x="-1.143" y="-0.635"/>
<vertex x="-1.143" y="0.635"/>
</polygon>
<polygon width="0.1016" layer="94">
<vertex x="1.397" y="-0.508"/>
<vertex x="0.762" y="0.508"/>
<vertex x="2.032" y="0.508"/>
</polygon>
</symbol>
<symbol name="FTDI">
<pin name="GND" x="0" y="12.7" length="middle"/>
<pin name="CTS" x="0" y="10.16" length="middle"/>
<pin name="VCC" x="0" y="7.62" length="middle"/>
<pin name="TXD" x="0" y="5.08" length="middle"/>
<pin name="RXD" x="0" y="2.54" length="middle"/>
<wire x1="12.7" y1="17.018" x2="2.54" y2="17.018" width="0.254" layer="94"/>
<wire x1="2.54" y1="17.018" x2="2.54" y2="-4.064" width="0.254" layer="94"/>
<wire x1="2.54" y1="-4.064" x2="12.7" y2="-4.064" width="0.254" layer="94"/>
<wire x1="12.7" y1="-4.064" x2="12.7" y2="17.018" width="0.254" layer="94"/>
<pin name="RTS" x="0" y="0" length="middle"/>
<text x="3.81" y="14.478" size="1.778" layer="95">(Black)</text>
<text x="3.302" y="-3.048" size="1.778" layer="95">(Green)</text>
</symbol>
<symbol name="AVRISP">
<wire x1="-6.35" y1="-5.08" x2="8.89" y2="-5.08" width="0.4064" layer="94"/>
<wire x1="8.89" y1="-5.08" x2="8.89" y2="5.08" width="0.4064" layer="94"/>
<wire x1="8.89" y1="5.08" x2="-6.35" y2="5.08" width="0.4064" layer="94"/>
<wire x1="-6.35" y1="5.08" x2="-6.35" y2="-5.08" width="0.4064" layer="94"/>
<text x="-6.35" y="5.715" size="1.778" layer="95">>NAME</text>
<text x="-6.35" y="-7.62" size="1.778" layer="96">>VALUE</text>
<text x="-5.08" y="3.175" size="1.27" layer="95">MISO</text>
<text x="-5.08" y="0.635" size="1.27" layer="95">SCK</text>
<text x="-5.08" y="-1.905" size="1.27" layer="95">RST</text>
<text x="7.62" y="3.175" size="1.27" layer="95" rot="MR0">VCC</text>
<text x="7.62" y="0.635" size="1.27" layer="95" rot="MR0">MOSI</text>
<text x="7.62" y="-1.905" size="1.27" layer="95" rot="MR0">GND</text>
<pin name="MISO" x="-2.54" y="2.54" visible="off" length="short" direction="pas" function="dot"/>
<pin name="VCC" x="5.08" y="2.54" visible="off" length="short" direction="pas" function="dot" rot="R180"/>
<pin name="SCK" x="-2.54" y="0" visible="off" length="short" direction="pas" function="dot"/>
<pin name="MOSI" x="5.08" y="0" visible="off" length="short" direction="pas" function="dot" rot="R180"/>
<pin name="RST" x="-2.54" y="-2.54" visible="off" length="short" direction="pas" function="dot"/>
<pin name="GND" x="5.08" y="-2.54" visible="off" length="short" direction="pas" function="dot" rot="R180"/>
</symbol>
</symbols>
<devicesets>
<deviceset name="ATTINY44" prefix="IC">
<gates>
<gate name="1" symbol="ATTINY24/44/84" x="0" y="0"/>
</gates>
<devices>
<device name="-SSU" package="SOIC14">
<connects>
<connect gate="1" pin="(PCINT0/AREF/ADC0)PA0" pad="13"/>
<connect gate="1" pin="(PCINT1/AIN0/ADC1)PA1" pad="12"/>
<connect gate="1" pin="(PCINT10/INT0/OC0A/CKOUT)PB2" pad="5"/>
<connect gate="1" pin="(PCINT11/RESET/DW)PB3" pad="4"/>
<connect gate="1" pin="(PCINT2/AIN1/ADC2)PA2" pad="11"/>
<connect gate="1" pin="(PCINT3/T0/ADC3)PA3" pad="10"/>
<connect gate="1" pin="(PCINT4/T1/SCL/USCK/ADC4)PA4" pad="9"/>
<connect gate="1" pin="(PCINT5/OC1B/MISO/DO/ADC5)PA5" pad="8"/>
<connect gate="1" pin="(PCINT6/OC1A/SDA/MOSI/ADC6)PA6" pad="7"/>
<connect gate="1" pin="(PCINT7/ICP/OC0B/ADC7)PA7" pad="6"/>
<connect gate="1" pin="(PCINT8/XTAL1/CLKI)PB0" pad="2"/>
<connect gate="1" pin="(PCINT9/XTAL2)PB1" pad="3"/>
<connect gate="1" pin="GND" pad="14"/>
<connect gate="1" pin="VCC" pad="1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="-PU" package="DIL14">
<connects>
<connect gate="1" pin="(PCINT0/AREF/ADC0)PA0" pad="13"/>
<connect gate="1" pin="(PCINT1/AIN0/ADC1)PA1" pad="12"/>
<connect gate="1" pin="(PCINT10/INT0/OC0A/CKOUT)PB2" pad="5"/>
<connect gate="1" pin="(PCINT11/RESET/DW)PB3" pad="4"/>
<connect gate="1" pin="(PCINT2/AIN1/ADC2)PA2" pad="11"/>
<connect gate="1" pin="(PCINT3/T0/ADC3)PA3" pad="10"/>
<connect gate="1" pin="(PCINT4/T1/SCL/USCK/ADC4)PA4" pad="9"/>
<connect gate="1" pin="(PCINT5/OC1B/MISO/DO/ADC5)PA5" pad="8"/>
<connect gate="1" pin="(PCINT6/OC1A/SDA/MOSI/ADC6)PA6" pad="7"/>
<connect gate="1" pin="(PCINT7/ICP/OC0B/ADC7)PA7" pad="6"/>
<connect gate="1" pin="(PCINT8/XTAL1/CLKI)PB0" pad="2"/>
<connect gate="1" pin="(PCINT9/XTAL2)PB1" pad="3"/>
<connect gate="1" pin="GND" pad="14"/>
<connect gate="1" pin="VCC" pad="1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="-MU" package="QFN/MLF20">
<connects>
<connect gate="1" pin="(PCINT0/AREF/ADC0)PA0" pad="5"/>
<connect gate="1" pin="(PCINT1/AIN0/ADC1)PA1" pad="4"/>
<connect gate="1" pin="(PCINT10/INT0/OC0A/CKOUT)PB2" pad="14"/>
<connect gate="1" pin="(PCINT11/RESET/DW)PB3" pad="13"/>
<connect gate="1" pin="(PCINT2/AIN1/ADC2)PA2" pad="3"/>
<connect gate="1" pin="(PCINT3/T0/ADC3)PA3" pad="2"/>
<connect gate="1" pin="(PCINT4/T1/SCL/USCK/ADC4)PA4" pad="1"/>
<connect gate="1" pin="(PCINT5/OC1B/MISO/DO/ADC5)PA5" pad="20"/>
<connect gate="1" pin="(PCINT6/OC1A/SDA/MOSI/ADC6)PA6" pad="16"/>
<connect gate="1" pin="(PCINT7/ICP/OC0B/ADC7)PA7" pad="15"/>
<connect gate="1" pin="(PCINT8/XTAL1/CLKI)PB0" pad="11"/>
<connect gate="1" pin="(PCINT9/XTAL2)PB1" pad="12"/>
<connect gate="1" pin="GND" pad="8"/>
<connect gate="1" pin="VCC" pad="9"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="CAP-UNPOLARIZED" prefix="C" uservalue="yes">
<gates>
<gate name=">NAME" symbol="CAP-NONPOLARIZED" x="0" y="0"/>
</gates>
<devices>
<device name="" package="C1206">
<connects>
<connect gate=">NAME" pin="1" pad="1"/>
<connect gate=">NAME" pin="2" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="FAB" package="C1206FAB">
<connects>
<connect gate=">NAME" pin="1" pad="1"/>
<connect gate=">NAME" pin="2" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="RES-US" prefix="R" uservalue="yes">
<description>Resistor (US Symbol)

Variants with postfix FAB are widened to allow the routing of internal traces</description>
<gates>
<gate name="G$1" symbol="R-US" x="0" y="0"/>
</gates>
<devices>
<device name="1206" package="R1206">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
<connect gate="G$1" pin="2" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="1206W" package="R1206W">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
<connect gate="G$1" pin="2" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="1206FAB" package="R1206FAB">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
<connect gate="G$1" pin="2" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="DIODE" prefix="D" uservalue="yes">
<description>DIODE

high speed (Philips)</description>
<gates>
<gate name="G$1" symbol="D" x="0" y="0"/>
</gates>
<devices>
<device name="SOD123" package="SOD123">
<connects>
<connect gate="G$1" pin="A" pad="ANODE"/>
<connect gate="G$1" pin="C" pad="CATHODE"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="PMOSFET" prefix="T" uservalue="yes">
<description>MOS FET</description>
<gates>
<gate name="A" symbol="P_MOSFET" x="0" y="0" swaplevel="1"/>
</gates>
<devices>
<device name="SOT23" package="SOT-23">
<connects>
<connect gate="A" pin="D" pad="1"/>
<connect gate="A" pin="G" pad="3"/>
<connect gate="A" pin="S" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="FTDI-SMD-HEADER">
<gates>
<gate name="G$1" symbol="FTDI" x="-7.62" y="-5.08"/>
</gates>
<devices>
<device name="" package="1X06SMD">
<connects>
<connect gate="G$1" pin="CTS" pad="2"/>
<connect gate="G$1" pin="GND" pad="1"/>
<connect gate="G$1" pin="RTS" pad="6"/>
<connect gate="G$1" pin="RXD" pad="5"/>
<connect gate="G$1" pin="TXD" pad="4"/>
<connect gate="G$1" pin="VCC" pad="3"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="AVRISP">
<gates>
<gate name="G$1" symbol="AVRISP" x="0" y="0"/>
</gates>
<devices>
<device name="SMD" package="2X03SMD">
<connects>
<connect gate="G$1" pin="GND" pad="6"/>
<connect gate="G$1" pin="MISO" pad="1"/>
<connect gate="G$1" pin="MOSI" pad="4"/>
<connect gate="G$1" pin="RST" pad="5"/>
<connect gate="G$1" pin="SCK" pad="3"/>
<connect gate="G$1" pin="VCC" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="" package="2X03">
<connects>
<connect gate="G$1" pin="GND" pad="6"/>
<connect gate="G$1" pin="MISO" pad="1"/>
<connect gate="G$1" pin="MOSI" pad="4"/>
<connect gate="G$1" pin="RST" pad="5"/>
<connect gate="G$1" pin="SCK" pad="3"/>
<connect gate="G$1" pin="VCC" pad="2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
</devicesets>
</library>
<library name="LilyPad-Wearables">
<packages>
<package name="PETAL-LONG-1">
<wire x1="0" y1="0" x2="2.7" y2="0" width="0.01" layer="49"/>
<circle x="5" y="0" radius="2.3" width="0.01" layer="49"/>
<pad name="1" x="0.03" y="0" drill="2.794" diameter="4.064"/>
<polygon width="0.2032" layer="1" spacing="0.4064">
<vertex x="3.6" y="-1.9" curve="-110.088851"/>
<vertex x="3.6" y="1.9"/>
<vertex x="-0.4" y="2.5" curve="89.995593"/>
<vertex x="-3" y="0" curve="89.991186"/>
<vertex x="-0.4" y="-2.5"/>
</polygon>
<polygon width="0.2032" layer="29" spacing="0.4064">
<vertex x="3.6" y="-1.9" curve="-110.088851"/>
<vertex x="3.6" y="1.9"/>
<vertex x="-0.4" y="2.5" curve="89.995593"/>
<vertex x="-3" y="0" curve="89.991186"/>
<vertex x="-0.4" y="-2.5"/>
</polygon>
</package>
<package name="PETAL-LONG-2">
<pad name="1" x="0" y="0" drill="2.794" rot="R90"/>
<polygon width="0.2032" layer="1">
<vertex x="-1.27" y="2.255" curve="9.397466"/>
<vertex x="-2.436" y="0.05" curve="89.995576"/>
<vertex x="0" y="-2.54" curve="89.990906"/>
<vertex x="2.406" y="-0.02" curve="12.680383"/>
<vertex x="1.27" y="2.255" curve="154.643527"/>
</polygon>
<polygon width="0.2032" layer="29">
<vertex x="-1.27" y="2.255" curve="9.397466"/>
<vertex x="-2.436" y="0.05" curve="89.995576"/>
<vertex x="0" y="-2.54" curve="89.990906"/>
<vertex x="2.406" y="-0.02" curve="12.680383"/>
<vertex x="1.27" y="2.255" curve="154.643527"/>
</polygon>
</package>
<package name="PETAL-MEDIUM">
<pad name="1" x="0" y="-0.254" drill="2.794"/>
<polygon width="0.127" layer="1">
<vertex x="0" y="-3.81" curve="90"/>
<vertex x="3.81" y="0" curve="-73.739795"/>
<vertex x="-3.81" y="0" curve="90"/>
</polygon>
<polygon width="0.127" layer="29">
<vertex x="0" y="-3.81" curve="90"/>
<vertex x="3.81" y="0" curve="-73.739795"/>
<vertex x="-3.81" y="0" curve="90"/>
</polygon>
</package>
<package name="PETAL-LARGE">
<wire x1="0" y1="3.81" x2="0" y2="1.27" width="1.524" layer="1"/>
<pad name="1" x="0" y="3.556" drill="2.794"/>
<hole x="0" y="3.556" drill="1.5"/>
<polygon width="0.127" layer="1">
<vertex x="0" y="0" curve="90"/>
<vertex x="5.08" y="5.08" curve="-73.73763"/>
<vertex x="-5.08" y="5.08" curve="90"/>
</polygon>
<polygon width="0.127" layer="29">
<vertex x="0" y="0" curve="90"/>
<vertex x="5.08" y="5.08" curve="-73.73763"/>
<vertex x="-5.08" y="5.08" curve="90"/>
</polygon>
</package>
<package name="PETAL-SMALL">
<pad name="1" x="0" y="0" drill="2.2" rot="R90"/>
<polygon width="0.2032" layer="1">
<vertex x="-2.4" y="0.6" curve="96.730733"/>
<vertex x="0" y="-2" curve="96.730733"/>
<vertex x="2.4" y="0.6" curve="-106.260205"/>
</polygon>
<polygon width="0.2032" layer="29">
<vertex x="-2.4" y="0.6" curve="96.730733"/>
<vertex x="0" y="-2" curve="96.730733"/>
<vertex x="2.4" y="0.6" curve="-106.260205"/>
</polygon>
</package>
<package name="PETAL-SMALL-2SIDE">
<pad name="1" x="0" y="0" drill="2.2" rot="R90"/>
<polygon width="0.2032" layer="1">
<vertex x="-2.4" y="0.6" curve="96.730733"/>
<vertex x="0" y="-2" curve="96.730733"/>
<vertex x="2.4" y="0.6" curve="-106.260205"/>
</polygon>
<polygon width="0.2032" layer="29">
<vertex x="-2.4" y="0.6" curve="96.730733"/>
<vertex x="0" y="-2" curve="96.730733"/>
<vertex x="2.4" y="0.6" curve="-106.260205"/>
</polygon>
<polygon width="0.2032" layer="30">
<vertex x="2.4" y="0.6" curve="-96.730733"/>
<vertex x="0" y="-2" curve="-96.730733"/>
<vertex x="-2.4" y="0.6" curve="106.260205"/>
</polygon>
<polygon width="0.2032" layer="16">
<vertex x="2.4" y="0.6" curve="-96.730733"/>
<vertex x="0" y="-2" curve="-96.730733"/>
<vertex x="-2.4" y="0.6" curve="106.260205"/>
</polygon>
</package>
<package name="PETAL-LARGE-2SIDE">
<wire x1="0" y1="3.81" x2="0" y2="1.27" width="1.524" layer="1"/>
<pad name="1" x="0" y="3.556" drill="2.794"/>
<hole x="0" y="3.556" drill="1.5"/>
<polygon width="0.127" layer="1">
<vertex x="0" y="0" curve="90"/>
<vertex x="5.08" y="5.08" curve="-73.73763"/>
<vertex x="-5.08" y="5.08" curve="90"/>
</polygon>
<polygon width="0.127" layer="29">
<vertex x="0" y="0" curve="90"/>
<vertex x="5.08" y="5.08" curve="-73.73763"/>
<vertex x="-5.08" y="5.08" curve="90"/>
</polygon>
<polygon width="0.127" layer="30">
<vertex x="0" y="0" curve="-90"/>
<vertex x="-5.08" y="5.08" curve="73.73763"/>
<vertex x="5.08" y="5.08" curve="-90"/>
</polygon>
<polygon width="0.127" layer="16">
<vertex x="0" y="0" curve="-90"/>
<vertex x="-5.08" y="5.08" curve="73.73763"/>
<vertex x="5.08" y="5.08" curve="-90"/>
</polygon>
</package>
<package name="PETAL-MEDIUM-2SIDE">
<pad name="1" x="0" y="-0.254" drill="2.794"/>
<polygon width="0.127" layer="1">
<vertex x="0" y="-3.81" curve="90"/>
<vertex x="3.81" y="0" curve="-73.739795"/>
<vertex x="-3.81" y="0" curve="90"/>
</polygon>
<polygon width="0.127" layer="29">
<vertex x="0" y="-3.81" curve="90"/>
<vertex x="3.81" y="0" curve="-73.739795"/>
<vertex x="-3.81" y="0" curve="90"/>
</polygon>
<polygon width="0.127" layer="16">
<vertex x="0" y="-3.81" curve="-90"/>
<vertex x="-3.81" y="0" curve="73.739795"/>
<vertex x="3.81" y="0" curve="-90"/>
</polygon>
<polygon width="0.127" layer="30">
<vertex x="0" y="-3.81" curve="-90"/>
<vertex x="-3.81" y="0" curve="73.739795"/>
<vertex x="3.81" y="0" curve="-90"/>
</polygon>
</package>
<package name="PETAL-LONG-1-2SIDE">
<wire x1="0" y1="0" x2="2.7" y2="0" width="0.01" layer="49"/>
<circle x="5" y="0" radius="2.3" width="0.01" layer="49"/>
<pad name="1" x="0.03" y="0" drill="2.794" diameter="4.064"/>
<polygon width="0.2032" layer="1" spacing="0.4064">
<vertex x="3.6" y="-1.9" curve="-110.088851"/>
<vertex x="3.6" y="1.9"/>
<vertex x="-0.4" y="2.5" curve="89.995593"/>
<vertex x="-3" y="0" curve="89.991186"/>
<vertex x="-0.4" y="-2.5"/>
</polygon>
<polygon width="0.2032" layer="29" spacing="0.4064">
<vertex x="3.6" y="-1.9" curve="-110.088851"/>
<vertex x="3.6" y="1.9"/>
<vertex x="-0.4" y="2.5" curve="89.995593"/>
<vertex x="-3" y="0" curve="89.991186"/>
<vertex x="-0.4" y="-2.5"/>
</polygon>
<polygon width="0.2032" layer="30" spacing="0.4064">
<vertex x="3.6" y="1.9" curve="110.088851"/>
<vertex x="3.6" y="-1.9"/>
<vertex x="-0.4" y="-2.5" curve="-89.995593"/>
<vertex x="-3" y="0" curve="-89.991186"/>
<vertex x="-0.4" y="2.5"/>
</polygon>
<polygon width="0.2032" layer="16" spacing="0.4064">
<vertex x="3.6" y="1.9" curve="110.088851"/>
<vertex x="3.6" y="-1.9"/>
<vertex x="-0.4" y="-2.5" curve="-89.995593"/>
<vertex x="-3" y="0" curve="-89.991186"/>
<vertex x="-0.4" y="2.5"/>
</polygon>
</package>
<package name="PETAL-LONG-2-2SIDE">
<pad name="1" x="0" y="0" drill="2.794" rot="R90"/>
<polygon width="0.2032" layer="1">
<vertex x="-1.27" y="2.255" curve="9.397466"/>
<vertex x="-2.436" y="0.05" curve="89.995576"/>
<vertex x="0" y="-2.54" curve="89.990906"/>
<vertex x="2.406" y="-0.02" curve="12.680383"/>
<vertex x="1.27" y="2.255" curve="154.643527"/>
</polygon>
<polygon width="0.2032" layer="29">
<vertex x="-1.27" y="2.255" curve="9.397466"/>
<vertex x="-2.436" y="0.05" curve="89.995576"/>
<vertex x="0" y="-2.54" curve="89.990906"/>
<vertex x="2.406" y="-0.02" curve="12.680383"/>
<vertex x="1.27" y="2.255" curve="154.643527"/>
</polygon>
<polygon width="0.2032" layer="30">
<vertex x="1.27" y="2.255" curve="-12.680383"/>
<vertex x="2.406" y="-0.02" curve="-89.995453"/>
<vertex x="0" y="-2.54" curve="-89.991152"/>
<vertex x="-2.436" y="0.05" curve="9.397466"/>
<vertex x="-1.27" y="2.255" curve="-154.643527"/>
</polygon>
<polygon width="0.2032" layer="16">
<vertex x="1.27" y="2.255" curve="-12.680383"/>
<vertex x="2.406" y="-0.02" curve="-89.995453"/>
<vertex x="0" y="-2.54" curve="-89.991152"/>
<vertex x="-2.436" y="0.05" curve="-9.397466"/>
<vertex x="-1.27" y="2.255" curve="-154.643527"/>
</polygon>
</package>
<package name="PETAL-TINY">
<pad name="1" x="0" y="0" drill="1.016" diameter="2.032" rot="R90" stop="no" thermals="no"/>
<polygon width="0.2032" layer="29">
<vertex x="-1.27" y="-0.127"/>
<vertex x="-1.27" y="0.254" curve="-90"/>
<vertex x="0" y="1.524" curve="-90"/>
<vertex x="1.27" y="0.254"/>
<vertex x="1.27" y="-0.127" curve="90"/>
</polygon>
<polygon width="0.2032" layer="1">
<vertex x="-1.27" y="-0.127"/>
<vertex x="-1.27" y="0.254" curve="-90"/>
<vertex x="0" y="1.524" curve="-90"/>
<vertex x="1.27" y="0.254"/>
<vertex x="1.27" y="-0.127" curve="90"/>
</polygon>
<polygon width="0.127" layer="30">
<vertex x="0.0025" y="-0.9525" curve="-90"/>
<vertex x="-0.9524" y="-0.0228" curve="-90.011749"/>
<vertex x="0" y="0.9526" curve="-90"/>
<vertex x="0.95" y="-0.0254" curve="-90.024193"/>
</polygon>
<polygon width="0.127" layer="29">
<vertex x="0" y="-0.4445" curve="-90.012891"/>
<vertex x="-0.4445" y="-0.0203" curve="-90"/>
<vertex x="0" y="0.447" curve="-90"/>
<vertex x="0.4419" y="-0.0101" curve="-90.012967"/>
</polygon>
<polygon width="0.2032" layer="30">
<vertex x="1.27" y="-0.127"/>
<vertex x="1.27" y="0.254" curve="90"/>
<vertex x="0" y="1.524" curve="90"/>
<vertex x="-1.27" y="0.254"/>
<vertex x="-1.27" y="-0.127" curve="-90"/>
</polygon>
<polygon width="0.2032" layer="16">
<vertex x="-1.27" y="-0.127"/>
<vertex x="-1.27" y="0.254" curve="-90"/>
<vertex x="0" y="1.524" curve="-90"/>
<vertex x="1.27" y="0.254"/>
<vertex x="1.27" y="-0.127" curve="90"/>
</polygon>
</package>
</packages>
<symbols>
<symbol name="SEWTAP">
<wire x1="0" y1="0" x2="-2.54" y2="0" width="0.1524" layer="94"/>
<wire x1="0.762" y1="0.762" x2="0.762" y2="-0.762" width="0.1524" layer="94" curve="180"/>
<pin name="1" x="-2.54" y="0" visible="off" length="point" rot="R180"/>
</symbol>
</symbols>
<devicesets>
<deviceset name="SEWTAP">
<gates>
<gate name="G$1" symbol="SEWTAP" x="2.54" y="0"/>
</gates>
<devices>
<device name="1" package="PETAL-LONG-1">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="2" package="PETAL-LONG-2">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="3" package="PETAL-MEDIUM">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="5" package="PETAL-LARGE">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="4" package="PETAL-SMALL">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="6" package="PETAL-SMALL-2SIDE">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="7" package="PETAL-LARGE-2SIDE">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="8" package="PETAL-MEDIUM-2SIDE">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="9" package="PETAL-LONG-1-2SIDE">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="10" package="PETAL-LONG-2-2SIDE">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="11" package="PETAL-TINY">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
</connects>
<technologies>
<technology name=""/>
</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="IC1" library="0_fab" deviceset="ATTINY44" device="-SSU"/>
<part name="C1" library="0_fab" deviceset="CAP-UNPOLARIZED" device="FAB" value="0.1µF"/>
<part name="R1" library="0_fab" deviceset="RES-US" device="1206FAB" value="1k Ω"/>
<part name="D1" library="0_fab" deviceset="DIODE" device="SOD123"/>
<part name="T1" library="0_fab" deviceset="PMOSFET" device="SOT23" value="MOSFET"/>
<part name="U$1" library="LilyPad-Wearables" deviceset="SEWTAP" device="10"/>
<part name="U$2" library="LilyPad-Wearables" deviceset="SEWTAP" device="10"/>
<part name="U$3" library="LilyPad-Wearables" deviceset="SEWTAP" device="10"/>
<part name="U$4" library="LilyPad-Wearables" deviceset="SEWTAP" device="10"/>
<part name="U$5" library="LilyPad-Wearables" deviceset="SEWTAP" device="10"/>
<part name="U$6" library="LilyPad-Wearables" deviceset="SEWTAP" device="10"/>
<part name="U$9" library="LilyPad-Wearables" deviceset="SEWTAP" device="10"/>
<part name="U$10" library="LilyPad-Wearables" deviceset="SEWTAP" device="10"/>
<part name="U$11" library="LilyPad-Wearables" deviceset="SEWTAP" device="10"/>
<part name="U$12" library="LilyPad-Wearables" deviceset="SEWTAP" device="10"/>
<part name="U$15" library="LilyPad-Wearables" deviceset="SEWTAP" device="10"/>
<part name="U$16" library="LilyPad-Wearables" deviceset="SEWTAP" device="10"/>
<part name="U$13" library="0_fab" deviceset="FTDI-SMD-HEADER" device=""/>
<part name="U$14" library="0_fab" deviceset="AVRISP" device="SMD"/>
<part name="U$17" library="LilyPad-Wearables" deviceset="SEWTAP" device="11"/>
<part name="U$18" library="LilyPad-Wearables" deviceset="SEWTAP" device="11"/>
</parts>
<sheets>
<sheet>
<plain>
</plain>
<instances>
<instance part="IC1" gate="1" x="30.48" y="58.42"/>
<instance part="C1" gate=">NAME" x="25.4" y="22.86"/>
<instance part="R1" gate="G$1" x="43.18" y="25.4"/>
<instance part="D1" gate="G$1" x="76.2" y="22.86"/>
<instance part="T1" gate="A" x="2.54" y="38.1"/>
<instance part="U$1" gate="G$1" x="88.9" y="73.66"/>
<instance part="U$2" gate="G$1" x="88.9" y="71.12"/>
<instance part="U$3" gate="G$1" x="88.9" y="68.58"/>
<instance part="U$4" gate="G$1" x="88.9" y="66.04"/>
<instance part="U$5" gate="G$1" x="88.9" y="60.96"/>
<instance part="U$6" gate="G$1" x="88.9" y="58.42"/>
<instance part="U$9" gate="G$1" x="88.9" y="50.8"/>
<instance part="U$10" gate="G$1" x="88.9" y="48.26"/>
<instance part="U$11" gate="G$1" x="88.9" y="45.72"/>
<instance part="U$12" gate="G$1" x="88.9" y="43.18"/>
<instance part="U$15" gate="G$1" x="20.32" y="45.72" rot="R180"/>
<instance part="U$16" gate="G$1" x="20.32" y="58.42" rot="R180"/>
<instance part="U$13" gate="G$1" x="103.886" y="63.5"/>
<instance part="U$14" gate="G$1" x="116.586" y="47.752"/>
<instance part="U$17" gate="G$1" x="29.464" y="31.496"/>
<instance part="U$18" gate="G$1" x="17.78" y="31.75"/>
</instances>
<busses>
</busses>
<nets>
<net name="PA5" class="0">
<segment>
<pinref part="R1" gate="G$1" pin="1"/>
<wire x1="38.1" y1="25.4" x2="35.56" y2="25.4" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="IC1" gate="1" pin="(PCINT5/OC1B/MISO/DO/ADC5)PA5"/>
<wire x1="81.28" y1="55.88" x2="81.28" y2="57.15" width="0.1524" layer="91"/>
<wire x1="81.28" y1="57.15" x2="91.186" y2="57.15" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="U$14" gate="G$1" pin="MISO"/>
<wire x1="114.046" y1="50.292" x2="107.696" y2="50.292" width="0.1524" layer="91"/>

</segment>
</net>
<net name="TRANS" class="0">
<segment>
<pinref part="C1" gate=">NAME" pin="1"/>
<wire x1="20.32" y1="22.86" x2="15.24" y2="22.86" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="D1" gate="G$1" pin="A"/>
<wire x1="73.66" y1="22.86" x2="66.04" y2="22.86" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="T1" gate="A" pin="D"/>
<wire x1="2.54" y1="43.18" x2="2.54" y2="48.26" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="U$18" gate="G$1" pin="1"/>
<wire x1="15.24" y1="31.75" x2="12.446" y2="31.75" width="0.1524" layer="91"/>

</segment>
</net>
<net name="GND" class="0">
<segment>
<pinref part="T1" gate="A" pin="S"/>
<wire x1="2.54" y1="33.02" x2="2.54" y2="27.94" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="IC1" gate="1" pin="GND"/>
<wire x1="22.86" y1="43.18" x2="17.78" y2="43.18" width="0.1524" layer="91"/>

<pinref part="U$15" gate="G$1" pin="1"/>
<wire x1="22.86" y1="45.72" x2="22.86" y2="43.18" width="0.1524" layer="91"/>
<junction x="22.86" y="43.18"/>
</segment>
<segment>
<pinref part="U$14" gate="G$1" pin="GND"/>
<wire x1="121.666" y1="45.212" x2="129.032" y2="45.212" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="U$13" gate="G$1" pin="GND"/>
<wire x1="103.886" y1="76.2" x2="100.584" y2="76.2" width="0.1524" layer="91"/>

</segment>
</net>
<net name="VCC" class="0">
<segment>
<pinref part="IC1" gate="1" pin="VCC"/>
<wire x1="22.86" y1="55.88" x2="17.78" y2="55.88" width="0.1524" layer="91"/>

<pinref part="U$16" gate="G$1" pin="1"/>
<wire x1="22.86" y1="58.42" x2="22.86" y2="55.88" width="0.1524" layer="91"/>
<junction x="22.86" y="55.88"/>
</segment>
<segment>
<pinref part="C1" gate=">NAME" pin="2"/>
<wire x1="27.94" y1="22.86" x2="33.02" y2="22.86" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="D1" gate="G$1" pin="C"/>
<wire x1="78.74" y1="22.86" x2="83.82" y2="22.86" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="U$14" gate="G$1" pin="VCC"/>
<wire x1="121.666" y1="50.292" x2="128.27" y2="50.292" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="U$13" gate="G$1" pin="VCC"/>
<wire x1="103.886" y1="71.12" x2="100.33" y2="71.12" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="U$17" gate="G$1" pin="1"/>
<wire x1="26.924" y1="31.496" x2="23.622" y2="31.496" width="0.1524" layer="91"/>

</segment>
</net>
<net name="TRANSIN" class="0">
<segment>
<pinref part="R1" gate="G$1" pin="2"/>
<wire x1="48.26" y1="25.4" x2="50.8" y2="25.4" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="T1" gate="A" pin="G"/>
<wire x1="-2.54" y1="35.56" x2="-7.62" y2="35.56" width="0.1524" layer="91"/>

</segment>
</net>
<net name="N$1" class="0">
<segment>
<pinref part

repository: scfablab/lab

repo_name: scfablab/lab

extension: sch


text:
="IC1" gate="1" pin="(PCINT11/RESET/DW)PB3"/>
<pinref part="U$1" gate="G$1" pin="1"/>
<wire x1="81.28" y1="73.66" x2="86.36" y2="73.66" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$2" class="0">
<segment>
<pinref part="U$2" gate="G$1" pin="1"/>
<pinref part="IC1" gate="1" pin="(PCINT10/INT0/OC0A/CKOUT)PB2"/>
<wire x1="86.36" y1="71.12" x2="81.28" y2="71.12" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$3" class="0">
<segment>
<pinref part="IC1" gate="1" pin="(PCINT9/XTAL2)PB1"/>
<pinref part="U$3" gate="G$1" pin="1"/>
<wire x1="81.28" y1="68.58" x2="86.36" y2="68.58" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$4" class="0">
<segment>
<pinref part="U$4" gate="G$1" pin="1"/>
<pinref part="IC1" gate="1" pin="(PCINT8/XTAL1/CLKI)PB0"/>
<wire x1="86.36" y1="66.04" x2="81.28" y2="66.04" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$5" class="0">
<segment>
<pinref part="IC1" gate="1" pin="(PCINT7/ICP/OC0B/ADC7)PA7"/>
<pinref part="U$5" gate="G$1" pin="1"/>
<wire x1="81.28" y1="60.96" x2="86.36" y2="60.96" width="0.1524" layer="91"/>
</segment>
</net>
<net name="MOSI" class="0">
<segment>
<pinref part="U$6" gate="G$1" pin="1"/>
<pinref part="IC1" gate="1" pin="(PCINT6/OC1A/SDA/MOSI/ADC6)PA6"/>
<wire x1="86.36" y1="58.42" x2="81.28" y2="58.42" width="0.1524" layer="91"/>
<wire x1="81.28" y1="58.42" x2="81.28" y2="59.944" width="0.1524" layer="91"/>
<junction x="81.28" y="58.42"/>
<wire x1="81.28" y1="59.944" x2="98.044" y2="59.944" width="0.1524" layer="91"/>
<wire x1="98.044" y1="59.944" x2="98.044" y2="60.198" width="0.1524" layer="91"/>
<label x="95.504" y="59.944" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="U$14" gate="G$1" pin="MOSI"/>
<wire x1="121.666" y1="47.752" x2="128.524" y2="47.752" width="0.1524" layer="91"/>
<label x="127.508" y="48.006" size="1.778" layer="95"/>
</segment>
</net>
<net name="SCK" class="0">
<segment>
<pinref part="IC1" gate="1" pin="(PCINT4/T1/SCL/USCK/ADC4)PA4"/>
<wire x1="81.28" y1="53.34" x2="81.28" y2="52.324" width="0.1524" layer="91"/>
<wire x1="81.28" y1="52.324" x2="90.932" y2="52.324" width="0.1524" layer="91"/>
<label x="90.932" y="51.562" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="U$14" gate="G$1" pin="SCK"/>
<wire x1="114.046" y1="47.752" x2="106.934" y2="47.752" width="0.1524" layer="91"/>
<label x="102.362" y="47.752" size="1.778" layer="95"/>
</segment>
</net>
<net name="N$8" class="0">
<segment>
<pinref part="IC1" gate="1" pin="(PCINT3/T0/ADC3)PA3"/>
<pinref part="U$9" gate="G$1" pin="1"/>
<wire x1="81.28" y1="50.8" x2="86.36" y2="50.8" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$9" class="0">
<segment>
<pinref part="IC1" gate="1" pin="(PCINT2/AIN1/ADC2)PA2"/>
<pinref part="U$10" gate="G$1" pin="1"/>
<wire x1="81.28" y1="48.26" x2="86.36" y2="48.26" width="0.1524" layer="91"/>
</segment>
</net>
<net name="RX" class="0">
<segment>
<pinref part="U$11" gate="G$1" pin="1"/>
<pinref part="IC1" gate="1" pin="(PCINT1/AIN0/ADC1)PA1"/>
<wire x1="86.36" y1="45.72" x2="81.28" y2="45.72" width="0.1524" layer="91"/>
<wire x1="81.28" y1="45.72" x2="81.28" y2="46.736" width="0.1524" layer="91"/>
<junction x="81.28" y="45.72"/>
<wire x1="81.28" y1="46.736" x2="92.71" y2="46.736" width="0.1524" layer="91"/>
<wire x1="92.71" y1="46.736" x2="92.71" y2="46.228" width="0.1524" layer="91"/>
<label x="92.964" y="45.974" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="U$13" gate="G$1" pin="RXD"/>
<wire x1="103.886" y1="66.04" x2="100.33" y2="66.04" width="0.1524" layer="91"/>
<label x="97.282" y="66.04" size="1.778" layer="95"/>
</segment>
</net>
<net name="TX" class="0">
<segment>
<pinref part="U$12" gate="G$1" pin="1"/>
<pinref part="IC1" gate="1" pin="(PCINT0/AREF/ADC0)PA0"/>
<wire x1="86.36" y1="43.18" x2="81.28" y2="43.18" width="0.1524" layer="91"/>
<wire x1="81.28" y1="43.18" x2="81.28" y2="41.656" width="0.1524" layer="91"/>
<junction x="81.28" y="43.18"/>
<wire x1="81.28" y1="41.656" x2="91.694" y2="41.656" width="0.1524" layer="91"/>
<wire x1="91.694" y1="41.656" x2="91.694" y2="41.148" width="0.1524" layer="91"/>
<label x="92.202" y="39.878" size="1.778" layer="95"/>
</segment>
<segment>
<pinref part="U$13" gate="G$1" pin="TXD"/>
<wire x1="103.886" y1="68.58" x2="100.33" y2="68.58" width="0.1524" layer="91"/>
<label x="97.536" y="68.58" size="1.778" layer="95"/>
</segment>
</net>
<net name="N$6" class="0">
<segment>
<wire x1="93.218" y1="54.864" x2="93.218" y2="54.356" width="0.1524" layer="91"/>
</segment>
</net>
</nets>
</sheet>
</sheets>
</schematic>
</drawing>
</eagle>

license: MIT

license_type: permissive

branch_name: refs/heads/master


text:
/*
 * Copyright (C) 2017  Florian GOLESTIN
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

#include "mcut.hpp"

#include "WavefrontLoader.hpp"

#include "ControllerService.hpp"
#include "DesktopAssetService.hpp"
#include "DesktopSoundService.hpp"
#include "OpenGLDataInstance.hpp"
#include "OpenGLInclude.hpp"

#define SOLEIL__DO_BENCHMARK 1

#if SOLEIL__DO_BENCHMARK
// Benchmark of the Wavefront loader refactoring
#include <benchmark/benchmark.h>
#endif

using namespace Soleil;

void
fullLoad()
{
  const std::string content =
    "# Blender v2.76 (sub 0) OBJ File: 'entities.blend'"
    "# www.blender.org"
    "mtllib wallcube.mtl"
    "o Cube.001"
    "v 1.000000 -0.000418 1.000000"
    "v -1.000000 -0.000418 1.000000"
    "v -1.000000 -0.000418 -1.000000"
    "v -1.000000 1.999582 -1.000000"
    "v -1.000000 1.999582 1.000000"
    "v 0.999999 1.999582 1.000001"
    "v 1.000000 1.999582 -0.999999"
    "v 1.000000 -0.000418 -1.000000"
    "vt 1.001884 0.998109"
    "vt 0.001891 1.001884"
    "vt -0.001884 0.001891"
    "vt 0.998109 -0.001884"
    "vn 0.000000 -1.000000 -0.000000"
    "vn -0.000000 1.000000 0.000000"
    "vn 1.000000 0.000000 0.000000"
    "vn -0.000000 -0.000000 1.000000"
    "vn -1.000000 0.000000 0.000000"
    "vn 0.000000 0.000000 -1.000000"
    "usemtl Material.001"
    "s 1"
    "f 1/1/1 2/2/1 3/3/1"
    "f 4/1/2 5/2/2 6/3/2"
    "f 7/1/3 6/2/3 1/3/3"
    "f 6/1/4 5/2/4 2/3/4"
    "f 2/4/5 5/1/5 4/2/5"
    "f 8/3/6 3/4/6 4/1/6"
    "f 8/4/1 1/1/1 3/3/1"
    "f 7/4/2 4/1/2 6/3/2"
    "f 8/4/3 7/1/3 1/3/3"
    "f 1/4/4 6/1/4 2/3/4"
    "f 3/3/5 2/4/5 4/2/5"
    "f 7/2/6 8/3/6 4/1/6";

  std::shared_ptr<Shape> shape = WavefrontLoader::fromContent(content);
  // TODO: Cannot do that test yet, need to create an OpenGL Context
}

static void
errorCallback(int error, const char* description)
{
  std::cerr << "GLFW failed with error N." << error << ": " << description;
}

static void
BM_WavefrontLoading(benchmark::State& state)
{
  while (state.KeepRunning()) {
    std::shared_ptr<Shape> shape =
      WavefrontLoader::fromContent(AssetService::LoadAsString("barrel.obj"));
  }
}
// Register the function as a benchmark
BENCHMARK(BM_WavefrontLoading);

int
main(int argc, char* argv[])
{
  GLFWwindow* window;
  int         width  = 1920;
  int         height = 1080;

  glfwSetErrorCallback(errorCallback);
  if (!glfwInit()) return -1;

  glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_ES_API);
  glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 2);
  glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);
  window =
    glfwCreateWindow(width, height, "Ruine", glfwGetPrimaryMonitor(), nullptr);
  if (!window) {
    glfwTerminate();
    return -1;
  }

  glfwMakeContextCurrent(window);
  glfwSwapInterval(1);

  glewExperimental = GL_TRUE;
  GLenum err       = glewInit();
  if (err != GLEW_OK) {
    throw std::runtime_error(
      toString("Unable to initialize GLEW: ", glewGetErrorString(err)));
  }

  AssetService::Instance = std::make_shared<DesktopAssetService>("../media/");
  SoundService::Instance = std::make_unique<DesktopSoundService>();
  OpenGLDataInstance::instance = std::make_unique<OpenGLDataInstance>();

  mcut::TestSuite basics("TDD");
  basics.add(fullLoad);
  basics.run();

#if SOLEIL__DO_BENCHMARK
  ::benchmark::Initialize(&argc, argv);
  ::benchmark::RunSpecifiedBenchmarks();
#endif

  glfwTerminate();

  return 0;
}

repository: soleilgames/ruine

repo_name: soleilgames/ruine

extension: cpp


text:
package write

import (
	"FileCleaner/model"
	"fmt"
	"os"
	"sync"
)

// 在这个包主要操作文件，删除文件创建ln

func Write(dm string) {
	// 判断文件处理模式
	switch dm {
	case "dry":
		dryRunFile()
	case "rm":
		removeFile()
	case "ln":
		removeFile()
		linkFile()
	}
	// 退出记录goroutine
	model.SignalCH <- true
	// 关闭通道
	close(model.SignalCH)
	close(model.RecordCH)
	close(model.ControlCH)
}

func dryRunFile() {
	fmt.Printf("[INFO]: DryRun File Begin ...\n")
	wg := sync.WaitGroup{}
	for hash, files := range model.FileMap {
		if len(files) > 1 {
			for _, file := range files[1:] {
				wg.Add(1)
				model.ControlCH <- 1
				go func(hash string, file string) {
					// defer wg.Done()
					defer func() { <-model.ControlCH }()
					fmt.Printf("[INFO]: Duplicate File: %s\n", file)
					// wg.Done 放到goroutine 协程中处理，每写完一个数据，done一个
					rd := model.NewWrite(&wg, true, hash, file, model.FileSize[hash])
					model.RecordCH <- rd
				}(hash, file)
			}
		}
	}
	wg.Wait()
	fmt.Printf("[INFO]: DryRun File Complete !\n")
}

func removeFile() {
	fmt.Printf("[INFO]: Remove File Begin ...\n")
	wg := sync.WaitGroup{}
	for hash, files := range model.FileMap {
		if len(files) > 1 {
			for _, file := range files[1:] {
				wg.Add(1)
				model.ControlCH <- 1
				go func(hash string, file string) {
					// defer wg.Done()
					defer func() { <-model.ControlCH }()
					var stat = true
					err := os.Remove(file)
					if err != nil {
						fmt.Printf("[ERROR]: Remove File: %s  : %s\n", file, err.Error())
						stat = false
					} else {
						fmt.Printf("[INFO]: Remove File: %s\n", file)
					}
					// wg.Done 放到goroutine 协程中处理，每写完一个数据，done一个
					rd := model.NewWrite(&wg, stat, hash, file, model.FileSize[hash])
					model.RecordCH <- rd
				}(hash, file)
			}
		}
	}
	wg.Wait()
	fmt.Printf("[INFO]: Remove File Complete !\n")
}

func linkFile() {
	fmt.Printf("[INFO]: Link File Begin ...\n")
	wg := sync.WaitGroup{}
	for hash, files := range model.FileMap {
		if len(files) > 1 {
			for _, file := range files[1:] {
				wg.Add(1)
				model.ControlCH <- 1
				go func(hash string, file string) {
					// defer wg.Done()
					defer func() { <-model.ControlCH }()

					var stat = true
					err := os.Link(files[0], file)
					if err != nil {
						stat = false
						fmt.Printf("[ERROR]: Create File Link: %s  : %s, Source File: %s\n", file, err.Error(), files[0])
					} else {
						fmt.Printf("[INFO]: Create File Link %s\n", file)
					}
					// wg.Done 放到goroutine 协程中处理，每写完一个数据，done一个
					rd := model.NewLink(&wg, stat, files[0], file)
					model.RecordCH <- rd

				}(hash, file)
			}
		}
	}
	wg.Wait()
	fmt.Printf("[INFO]: Link File Complete !\n")
}

extension: go


text:
DESCRIPTION = "Logger"
SECTION = "Core"

LICENSE = "CLOSED"
#LIC_FILES_CHKSUM = "file://LICENSE;md5=662fd4d9d67a7f81cde6fef0f4696a80"

DEPENDS = "lxc"

SRCREV = "${AUTOREV}"
SRC_URI = "file://${PV}/build_id \
           file://${PV}/config \
           file://${PV}/config.x \
           file://${PV}/config-user \
           file://${PV}/config-user.x \
           file://${PV}/create-message \
           file://${PV}/excludes-user \
           file://${PV}/expiry \
           file://${PV}/rootfs.tar.xz;unpack=0 \
           file://${PV}/templates \
"

S = "${WORKDIR}/${PV}"

do_install () {
}

do_install_append () {
    template="/var/cache/lxc/download/FleX-d/minimal_${PV}/armhf/default"
    install -d ${D}${template}
    install -m 0755 ${S}/build_id ${D}${template}/
    install -m 0755 ${S}/config ${D}${template}/
    install -m 0755 ${S}/config-user ${D}${template}/
    install -m 0755 ${S}/create-message ${D}${template}/
    install -m 0755 ${S}/excludes-user ${D}${template}/
    install -m 0755 ${S}/expiry ${D}${template}/
    install -m 0755 ${S}/rootfs.tar.xz ${D}${template}/
    install -m 0755 ${S}/templates ${D}${template}/
    install -m 0755 ${S}/config-user.x ${D}${template}/config-user.1
    install -m 0755 ${S}/config-user.x ${D}${template}/config-user.2
    install -m 0755 ${S}/config-user.x ${D}${template}/config-user.3
    install -m 0755 ${S}/config-user.x ${D}${template}/config-user.4
    install -m 0755 ${S}/config.x ${D}${template}/config.1
    install -m 0755 ${S}/config.x ${D}${template}/config.2
    install -m 0755 ${S}/config.x ${D}${template}/config.3
    install -m 0755 ${S}/config.x ${D}${template}/config.4
}

FILES_${PN} = "/var/*"

repository: FleX-d/meta-flexd

repo_name: FleX-d/meta-flexd

extension: bb


text:
SET(CMAKE_SYSTEM_NAME qnx)
SET(CMAKE_SYSTEM_VERSION 1)

# specify the cross compiler
SET(CMAKE_C_COMPILER   $ENV{QNX_HOST}/usr/bin/qcc)
SET(CMAKE_CXX_COMPILER $ENV{QNX_HOST}/usr/bin/qcc)

# where is the target environment
SET(CMAKE_FIND_ROOT_PATH $ENV{QTDIR} $ENV{QNX_HOST} $ENV{QNX_TARGET} $ENV{QNX_TARGET}/armle-v7)

SET(CMAKE_STATIC_LIBRARY_PREFIX "")
SET(CMAKE_SHARED_LIBRARY_PREFIX "lib")
SET(CMAKE_STATIC_LIBRARY_SUFFIX ".a")
SET(CMAKE_SHARED_LIBRARY_SUFFIX ".so")
SET(CMAKE_FIND_LIBRARY_PREFIXES "lib")
SET(CMAKE_FIND_LIBRARY_SUFFIXES ".so" ".a")

SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM BOTH)
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH)

SET(CMAKE_C_FLAGS "-Vgcc_ntoarmv7 -EL ${CMAKE_C_FLAGS}" CACHE STRING "" FORCE)
SET(CMAKE_CXX_FLAGS "-Vgcc_ntoarmv7 -EL -lang-c++ ${CMAKE_CXX_FLAGS}" CACHE STRING "" FORCE)

SET(QT_USE_QTOPENGL TRUE)

repository: jsvader/libterm

repo_name: jsvader/libterm

extension: cmake


text:
package main

// Elasticsearch Node Stats Structs
import (
	"database/sql"
	"fmt"
	"sync"

	"github.com/prometheus/client_golang/prometheus"
)

type columnUsage int

// convert a string to the corresponding columnUsage
func stringTocolumnUsage(s string) (u columnUsage, err error) {
	switch s {
	case "DISCARD":
		u = DISCARD

	case "LABEL":
		u = LABEL

	case "COUNTER":
		u = COUNTER

	case "GAUGE":
		u = GAUGE

	case "MAPPEDMETRIC":
		u = MAPPEDMETRIC

	case "DURATION":
		u = DURATION

	default:
		err = fmt.Errorf("wrong columnUsage given : %s", s)
	}

	return
}

// Implements the yaml.Unmarshaller interface
func (this *columnUsage) UnmarshalYAML(unmarshal func(interface{}) error) error {
	var value string
	if err := unmarshal(&value); err != nil {
		return err
	}

	columnUsage, err := stringTocolumnUsage(value)
	if err != nil {
		return err
	}

	*this = columnUsage
	return nil
}

const (
	DISCARD      columnUsage = iota // Ignore this column
	LABEL        columnUsage = iota // Use this column as a label
	COUNTER      columnUsage = iota // Use this column as a counter
	GAUGE        columnUsage = iota // Use this column as a gauge
	MAPPEDMETRIC columnUsage = iota // Use this column with the supplied mapping of text values
	DURATION     columnUsage = iota // This column should be interpreted as a text duration (and converted to milliseconds)
)

// Groups metric maps under a shared set of labels
type MetricMapNamespace struct {
	columnMappings map[string]MetricMap // Column mappings in this namespace
}

// Stores the prometheus metric description which a given column will be mapped
// to by the collector
type MetricMap struct {
	discard    bool                 // Should metric be discarded during mapping?
	vtype      prometheus.ValueType // Prometheus valuetype
	namespace  string
	desc       *prometheus.Desc                  // Prometheus descriptor
	conversion func(interface{}) (float64, bool) // Conversion function to turn PG result into float64
}

type ColumnMapping struct {
	usage       columnUsage `yaml:"usage"`
	description string      `yaml:"description"`
}

// Exporter collects PgBouncer stats from the given server and exports
// them using the prometheus metrics package.
type Exporter struct {
	connectionString string
	namespace        string
	mutex            sync.RWMutex

	duration, up, error prometheus.Gauge
	totalScrapes        prometheus.Counter

	metricMap map[string]MetricMapNamespace

	db *sql.DB
}

gha_license_id: MIT

gha_language: Go


text:
SUMMARY = "Libuio - helper library for UIO subsystem"
SECTION = "base"
LICENSE = "GPL-2.0"
LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"

SRC_URI = "git://git.code.sf.net/p/libuio/code"

inherit autotools

SRCREV = "ed4f07ea147ac403c28105ab44d01bbf524d36f9"

S = "${WORKDIR}/git"

PACKAGES += "${PN}-tools"

FILES_${PN} = "${libdir}"
FILES_${PN}-tools = "${bindir}"

# 0.2.1-r0/git/tools/lsuio.c:85: error: undefined reference to 'uio_mmap'
PNBLACKLIST[libuio] ?= "BROKEN, fails to build with gcc-5"

repository: allela-roy/meta-oe

repo_name: allela-roy/meta-oe