text:
)

These are passive quartz crystals, which can be used as a clock source for a microcontroller.

Crystal's are two-terminal devices. They require external "load" capacitors to generate an oscillating signal.
</description>
<gates>
<gate name="G$1" symbol="CRYSTAL" x="0" y="0"/>
</gates>
<devices>
<device name="PTH-HC49UV" package="HC49U">
<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="PTH-3X8" package="CRYSTAL-PTH-3X8-CYL">
<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="PTH-2X6" package="CRYSTAL-PTH-2X6-CYL">
<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="SMD-HC49UP" package="HC49UP">
<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="PTH-HC49US" package="HC49US">
<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="SMD-2X6" package="CRYSTAL-SMD-2X6-CYL">
<connects>
<connect gate="G$1" pin="1" pad="X1"/>
<connect gate="G$1" pin="2" pad="X2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="SMD-5X3.2-4PAD" package="CRYSTAL-SMD-5X3.2-4PAD">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
<connect gate="G$1" pin="2" pad="3"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="SMD-MC146" package="CRYSTAL-SMD-MC-146">
<connects>
<connect gate="G$1" pin="1" pad="P$2"/>
<connect gate="G$1" pin="2" pad="P$1"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="PTH-2X6-KIT" package="CRYSTAL-PTH-2X6-CYL-KIT">
<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="SMD-5X3.2-2PAD" package="CRYSTAL-SMD-5X3.2-2PAD">
<connects>
<connect gate="G$1" pin="1" pad="P$1"/>
<connect gate="G$1" pin="2" pad="P$2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="SMD-3.2X1.5" package="CRYSTAL-SMD-3.2X1.5MM">
<connects>
<connect gate="G$1" pin="1" pad="P$1"/>
<connect gate="G$1" pin="2" pad="P$2"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
<device name="SMD-3.2X2.5" package="CRYSTAL-SMD-3.2X2.5MM">
<connects>
<connect gate="G$1" pin="1" pad="1"/>
<connect gate="G$1" pin="2" pad="3"/>
</connects>
<technologies>
<technology name=""/>
</technologies>
</device>
</devices>
</deviceset>
</devicesets>
</library>
<library name="SparkFun-LED">
<description>
SparkFun LEDs

This library contains discrete LEDs for illumination or indication, but no displays.

We've spent an enormous amount of time creating and checking these footprints and parts, but it is  the end user's responsibility to ensure correctness and suitablity for a given componet or application.

If you enjoy using this library, please buy one of our products at SparkFun.com.

Licensing: Creative Commons ShareAlike 4.0 International - https://creativecommons.org/licenses/by-sa/4.0/

You are welcome to use this library for commercial purposes. For attribution, we ask that when you begin to sell your device using our footprint, you email us with a link to the product being sold. We want bragging rights that we helped (in a very small part) to create your 8th world wonder. We would like the opportunity to feature your device on our homepage.</description>
<packages>
<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"/>
<text x="0" y="0.635" size="0.6096" layer="25" font="vector" ratio="20" align="bottom-center">>NAME</text>
<text x="0" y="-0.635" size="0.6096" layer="27" font="vector" ratio="20" align="top-center">>VALUE</text>
<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-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-1206-HIDDENSILK">
<wire x1="0.6474" y1="0.6825" x2="0.6474" 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>
</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-RED" prefix="D" uservalue="yes">
<description>
Red SMD LED

Used in manufacturing of most products at SparkFun

Packages:

0603 - SMD 0603 package [Product Link]

0603 SMART - SMD 0603 SMART package ( more efficient and expensive)[Product Link]

 1206 - SMD1206  package [Product Link]

SparkFun Products:

Pro Mini 328 -5V

RedBoard

IOIO-OTG

</description>
<gates>
<gate name="G$1" symbol="LED" x="0" y="0"/>
</gates>
<devices>
<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="">
<attribute name="PROD_ID" value="DIO-00819"/>
<attribute name="VALUE" value="RED" 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="">
<attribute name="PROD_ID" value="DIO-09912"/>
<attribute name="VALUE" value="RED" constant="no"/>
</technology>
</technologies>
</device>
<device name="0603-SMART" package="LED-0603">
<connects>
<connect gate="G$1" pin="A" pad="A"/>
<connect gate="G$1" pin="C" pad="C"/>
</connects>
<technologies>
<technology name="">
<attribute name="PROD_ID" value="DIO-11154" constant="no"/>
<attribute name="VALUE" value="Red" constant="no"/>
</technology>
</technologies>
</device>
<device name="_HIDDENSILK" package="LED-1206-HIDDENSILK">
<connects>
<connect gate="G$1" pin="A" pad="A"/>
<connect gate="G$1" pin="C" pad="C"/>
</connects>
<technologies>
<technology name="">
<attribute name="PROD_ID" value="DIO-09912" constant="no"/>
</technology>
</technologies>
</device>
</devices>
</deviceset>
<deviceset name="LED-BLUE" prefix="D" uservalue="yes">
<description>
Blue SMD LED

Used in manufacturing of various products at SparkFun

Packages:

0603 - SMD 0603 package [Product Link]

1206 - SMD1206  package [Product Link]

SparkFun Products:

ESP8266 Thing-Dev Board

RedBoard

</description>
<gates>
<gate name="G$1" symbol="LED" x="0" y="2.54"/>
</gates>
<devices>
<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="">
<attribute name="PROD_ID" value="DIO-08575"/>
<attribute name="VALUE" value="BLUE"/>
</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="">
<attribute name="PROD_ID" value="DIO-09911"/>
<attribute name="VALUE" value="BLUE" constant="no"/>
</technology>
</technologies>
</device>
<device name="_HIDDENSILK" package="LED-1206-HIDDENSILK">
<connects>
<connect gate="G$1" pin="A" pad="A"/>
<connect gate="G$1" pin="C" pad="C"/>
</connects>
<technologies>
<technology name="">
<attribute name="PROD_ID" value="DIO-09911" constant="no"/>
</technology>
</technologies>
</device>
</devices>
</deviceset>
</devicesets>
</library>
</libraries>
<attributes>
</attributes>
<variantdefs>
</variantdefs>
<classes>
<class number="0" name="default" width="0.3048" drill="0">
</class>
<class number="1" name="VBUS" width="0.4064" drill="0">
</class>
<class number="2" name="3V3" width="0.4064" drill="0">
</class>
</classes>
<parts>
<part name="FRAME1" library="SparkFun-Aesthetics" deviceset="FRAME-A4L" device=""/>
<part name="J2" library="microsd" deviceset="MICROSD-PUSH-OUT" device=""/>
<part name="U1" library="SparkFun-IC-Power" deviceset="V_REG_AP2112" device="K-3.3V" value="AP2112K"/>
<part name="CN1" library="adafruit" deviceset="JST_2PIN" device="-SMT-RA"/>
<part name="UP" library="SparkFun-Switches" deviceset="MOMENTARY-SWITCH-SPST-2" device="-SMD-5.2MM"/>
<part name="SELECT" library="SparkFun-Switches" deviceset="MOMENTARY-SWITCH-SPST" device="-SMD-6.0X3.5MM" value=""/>
<part name="A1" library="ESP32-WROVER-I" deviceset="ESP32-WROVER-I" device=""/>
<part name="R1" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="R" device="" package3d_urn="urn:adsk.eagle:package:13300/1" value="10K"/>
<part name="Q1" library="SparkFun-DiscreteSemi" deviceset="TRANS_NPN" device="-MMBT2222AL" value="2n2222"/>
<part name="3V3" library="SparkFun-PowerSymbols" deviceset="VCC" device="" value="3V3"/>
<part name="R2" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="R" device="" package3d_urn="urn:adsk.eagle:package:13300/1" value="4K7"/>
<part name="GND4" library="SparkFun-PowerSymbols" deviceset="GND" device=""/>
<part name="C1" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="C" device="" package3d_urn="urn:adsk.eagle:package:13265/1" value="0,1uF"/>
<part name="GND5" library="SparkFun-PowerSymbols" deviceset="GND" device=""/>
<part name="3V1" library="SparkFun-PowerSymbols" deviceset="VCC" device="" value="3V3"/>
<part name="R3" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="R" device="" package3d_urn="urn:adsk.eagle:package:13300/1" value="100K"/>
<part name="GND6" library="SparkFun-PowerSymbols" deviceset="GND" device=""/>
<part name="3V2" library="SparkFun-PowerSymbols" deviceset="VCC" device="" value="3V3"/>
<part name="C2" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="C" device="" package3d_urn="urn:adsk.eagle:package:13265/1" value="10uF"/>
<part name="GND7" library="SparkFun-PowerSymbols" deviceset="GND" device=""/>
<part name="C3" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="C" device="" package3d_urn="urn:adsk.eagle:package:13265/1" value="22uF"/>
<part name="C4" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="C" device="" package3d_urn="urn:adsk.eagle:package:13265/1" value="0,1uF"/>
<part name="GND8" library="SparkFun-PowerSymbols" deviceset="GND" device=""/>
<part name="3V4" library="SparkFun-PowerSymbols" deviceset="VCC" device="" value="3V3"/>
<part name="T1" library="zetex" library_urn="urn:adsk.eagle:library:418" deviceset="PMOSSOT23" device="" package3d_urn="urn:adsk.eagle:package:30981/1" value="CJ2301"/>
<part name="D2" library="adafruit" deviceset="DIODE" device="SMA" value="SCOTCHY"/>
<part name="VBAT1" library="SparkFun-PowerSymbols" deviceset="VCC" device="" value="VBAT"/>
<part name="VBUS2" library="SparkFun-PowerSymbols" deviceset="VCC" device="" value="VBUS"/>
<part name="R4" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="R" device="" package3d_urn="urn:adsk.eagle:package:13300/1" value="10K"/>
<part name="GND9" library="SparkFun-PowerSymbols" deviceset="GND" device=""/>
<part name="SW1" library="SparkFun-Retired" deviceset="SWITCH_SPDT" device="" value="POWER"/>
<part name="START" library="SparkFun-Switches" deviceset="MOMENTARY-SWITCH-SPST" device="-SMD-6.0X3.5MM" value=""/>
<part name="MENU" library="SparkFun-Switches" deviceset="MOMENTARY-SWITCH-SPST" device="-SMD-6.0X3.5MM" value=""/>
<part name="DOWN" library="SparkFun-Switches" deviceset="MOMENTARY-SWITCH-SPST-2" device="-SMD-5.2MM"/>
<part name="LEFT" library="SparkFun-Switches" deviceset="MOMENTARY-SWITCH-SPST-2" device="-SMD-5.2MM"/>
<part name="RIGHT" library="SparkFun-Switches" deviceset="MOMENTARY-SWITCH-SPST-2" device="-SMD-5.2MM"/>
<part name="B" library="SparkFun-Switches" deviceset="MOMENTARY-SWITCH-SPST-2" device="-SMD-5.2MM"/>
<part name="A" library="SparkFun-Switches" deviceset="MOMENTARY-SWITCH-SPST-2" device="-SMD-5.2MM"/>
<part name="GND10" library="SparkFun-PowerSymbols" deviceset="GND" device=""/>
<part name="3V5" library="SparkFun-PowerSymbols" deviceset="VCC" device="" value="3V3"/>
<part name="R5" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="R" device="" package3d_urn="urn:adsk.eagle:package:13300/1" value="10K"/>
<part name="R6" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="R" device="" package3d_urn="urn:adsk.eagle:package:13300/1" value="10K"/>
<part name="R7" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="R" device="" package3d_urn="urn:adsk.eagle:package:13300/1" value="10K"/>
<part name="R8" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="R" device="" package3d_urn="urn:adsk.eagle:package:13300/1" value="10K"/>
<part name="GND11" library="SparkFun-PowerSymbols" deviceset="GND" device=""/>
<part name="R10" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="R" device="" package3d_urn="urn:adsk.eagle:package:13300/1" value="10K"/>
<part name="R11" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="R" device="" package3d_urn="urn:adsk.eagle:package:13300/1" value="100K"/>
<part name="R12" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="R" device="" package3d_urn="urn:adsk.eagle:package:13300/1" value="100K"/>
<part name="C5" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="C" device="" package3d_urn="urn:adsk.eagle:package:13265/1" value="0.1uF"/>
<part name="C6" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="C" device="" package3d_urn="urn:adsk.eagle:package:13265/1" value="0,1uF"/>
<part name="GND12" library="SparkFun-PowerSymbols" deviceset="GND" device=""/>
<part name="VBAT2" library="SparkFun-PowerSymbols" deviceset="VCC" device="" value="VBAT"/>
<part name="GND15" library="SparkFun-PowerSymbols" deviceset="GND" device=""/>
<part name="TFT_DISPLAY" library="TFTDisplays" deviceset="ILI9341-2.4" device=""/>
<part name="H1" library="holes" library_urn="urn:adsk.eagle:library:237" deviceset="MOUNT-HOLE" device="3.0" package3d_urn="urn:adsk.eagle:package:14277/1"/>
<part name="H2" library="holes" library_urn="urn:adsk.eagle:library:237" deviceset="MOUNT-HOLE" device="3.0" package3d_urn="urn:adsk.eagle:package:14277/1"/>
<part name="H3" library="holes" library_urn="urn:adsk.eagle:library:237" deviceset="MOUNT-HOLE" device="3.0" package3d_urn="urn:adsk.eagle:package:14277/1"/>
<part name="H4" library="holes" library_urn="urn:adsk.eagle:library:237" deviceset="MOUNT-HOLE" device="3.0" package3d_urn="urn:adsk.eagle:package:14277/1"/>
<part name="R9" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="R" device="" package3d_urn="urn:adsk.eagle:package:13300/1" value="10K"/>
<part name="R13" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="R" device="" package3d_urn="urn:adsk.eagle:package:13300/1" value="10K"/>
<part name="R14" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="R" device="" package3d_urn="urn:adsk.eagle:package:13300/1" value="10K"/>
<part name="3V6" library="SparkFun-PowerSymbols" deviceset="VCC" device="" value="3V3"/>
<part name="U2" library="SparkFun-IC-Comms" deviceset="CH340G" device="SMD" value="CH340G"/>
<part name="IC1" library="TP4056" deviceset="TP4056" device=""/>
<part name="J1" library="SparkFun-Connectors" deviceset="USB_MICRO-B" device="_HALF_PTH_MILL"/>
<part name="VBUS1" library="SparkFun-PowerSymbols" deviceset="VCC" device="" value="VBUS"/>
<part name="GND1" library="SparkFun-PowerSymbols" deviceset="GND" device=""/>
<part name="VBUS3" library="SparkFun-PowerSymbols" deviceset="VCC" device="" value="3V3"/>
<part name="3V7" library="SparkFun-PowerSymbols" deviceset="VCC" device="" value="3V3"/>
<part name="GND2" library="SparkFun-PowerSymbols" deviceset="GND" device=""/>
<part name="X1" library="SparkFun-Clocks" deviceset="CRYSTAL" device="SMD-2X6" value="12M"/>
<part name="C7" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="C" device="" package3d_urn="urn:adsk.eagle:package:13265/1" value="22pf"/>
<part name="C8" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="C" device="" package3d_urn="urn:adsk.eagle:package:13265/1" value="22pf"/>
<part name="GND3" library="SparkFun-PowerSymbols" deviceset="GND" device=""/>
<part name="GND13" library="SparkFun-PowerSymbols" deviceset="GND" device=""/>
<part name="R15" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="R" device="" package3d_urn="urn:adsk.eagle:package:13300/1" value="1K"/>
<part name="R16" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="R" device="" package3d_urn="urn:adsk.eagle:package:13300/1" value="1K"/>
<part name="R17" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="R" device="" package3d_urn="urn:adsk.eagle:package:13300/1" value="1K2"/>
<part name="R18" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="R" device="" package3d_urn="urn:adsk.eagle:package:13300/1" value="0.4"/>
<part name="VBUS4" library="SparkFun-PowerSymbols" deviceset="VCC" device="" value="VBUS"/>
<part name="GND14" library="SparkFun-PowerSymbols" deviceset="GND" device=""/>
<part name="D1" library="SparkFun-LED" deviceset="LED-RED" device="0603" value="RED"/>
<part name="D3" library="SparkFun-LED" deviceset="LED-BLUE" device="0603" value="BLUE"/>
<part name="C9" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="C" device="" package3d_urn="urn:adsk.eagle:package:13265/1" value="10uF"/>
<part name="C10" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="C" device="" package3d_urn="urn:adsk.eagle:package:13265/1" value="10uF"/>
<part name="R19" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="R" device="" package3d_urn="urn:adsk.eagle:package:13300/1" value="10K"/>
<part name="Q2" library="SparkFun-DiscreteSemi" deviceset="TRANS_NPN" device="-MMBT2222AL" value="2n2222"/>
<part name="Q3" library="SparkFun-DiscreteSemi" deviceset="TRANS_NPN" device="-MMBT2222AL" value="2n2222"/>
<part name="R20" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="R" device="" package3d_urn="urn:adsk.eagle:package:13300/1" value="10K"/>
<part name="R21" library="eagle-ltspice" library_urn="urn:adsk.eagle:library:217" deviceset="R" device="" package3d_urn="urn:adsk.eagle:package:13300/1" value="10K"/>
<part name="J3" library="SparkFun-Connectors" deviceset="CONN_06" device="LOCK"/>
<part name="3V8" library="SparkFun-PowerSymbols" deviceset="VCC" device="" value="3V3"/>
<part name="GND16" library="SparkFun-PowerSymbols" deviceset="GND" device=""/>
<part name="J4" library="SparkFun-Connectors" deviceset="CONN_04" device="JST-PTH" value="I2C Port"/>
<part name="GND17" library="SparkFun-PowerSymbols" deviceset="GND" device=""/>
<part name="3V9" library="SparkFun-PowerSymbols" deviceset="VCC" device="" value="3V3"/>
</parts>
<sheets>
<sheet>
<plain>
</plain>
<instances>
<instance part="FRAME1" gate="G$1" x="2.54" y="2.54" smashed="yes">
<attribute name="DRAWING_NAME" x="184.15" y="13.97" size="2.54" layer="94" font="vector"/>
<attribute name="LAST_DATE_TIME" x="184.15" y="8.89" size="2.286" layer="94" font="vector"/>
<attribute name="SHEET" x="198.12" y="3.81" size="2.54" layer="94" font="vector"/>
<attribute name="DESIGNER" x="228.8" y="8.89" size="2.54" layer="94" font="vector"/>
</instance>
<instance part="J2" gate="G$1" x="271.78" y="154.94" smashed="yes">
<attribute name="NAME" x="210.82" y="175.26" size="1.778" layer="94"/>
<attribute name="VALUE" x="210.82" y="116.84" size="1.778" layer="94"/>
</instance>
<instance part="U1" gate="G$1" x="162.56" y="152.4" smashed="yes">
<attribute name="NAME" x="154.94" y="160.274" size="1.778" layer="95" font="vector"/>
<attribute name="VALUE" x="154.94" y="144.526" size="1.778" layer="96" font="vector" align="top-left"/>
</instance>
<instance part="CN1" gate="G$1" x="142.24" y="20.32" smashed="yes" rot="R180">
<attribute name="NAME" x="148.59" y="14.605" size="1.778" layer="95" rot="R180"/>
<attribute name="VALUE" x="148.59" y="25.4" size="1.778" layer="96" rot="R180"/>
</instance>
<instance part="UP" gate="G$1" x="81.28" y="48.26" smashed="yes">
<attribute name="NAME" x="78.74" y="51.816" size="1.27" layer="95"/>
<attribute name="VALUE" x="78.74" y="45.974" size="1.27" layer="96"/>
</instance>
<instance part="SELECT" gate="G$1" x="116.84" y="33.02" smashed="yes">
<attribute name="NAME" x="114.3" y="36.576" size="1.27" layer="95"/>
<attribute name="VALUE" x="114.3" y="30.734" size="1.27" layer="96"/>
</instance>
<instance part="A1" gate="G$1" x="172.72" y="66.04" smashed="yes">
<attribute name="NAME" x="159.9891" y="96.5939" size="1.782309375" layer="95"/>
<attribute name="VALUE" x="159.984" y="32.9298" size="1.78303125" layer="96"/>
</instance>
<instance part="R1" gate="G$1" x="137.16" y="91.44" smashed="yes" rot="R90">
<attribute name="NAME" x="135.6614" y="87.63" size="1.778" layer="95" rot="R90"/>
<attribute name="VALUE" x="140.462" y="87.63" size="1.778" layer="96" rot="R90"/>
</instance>
<instance part="Q1" gate="G$1" x="220.98" y="68.58" smashed="yes">
<attribute name="NAME" x="223.52" y="68.58" size="1.778" layer="95" font="vector"/>
<attribute name="VALUE" x="223.52" y="66.294" size="1.778" layer="96" font="vector"/>
</instance>
<instance part="3V3" gate="G$1" x="175.26" y="162.56" smashed="yes">
<attribute name="VALUE" x="175.26" y="165.354" size="1.778" layer="96" align="bottom-center"/>
</instance>
<instance part="R2" gate="G$1" x="233.68" y="73.66" smashed="yes">
<attribute name="NAME" x="229.87" y="75.1586" size="1.778" layer="95"/>
<attribute name="VALUE" x="229.87" y="70.358" size="1.778" layer="96"/>
</instance>
<instance part="GND4" gate="1" x="223.52" y="53.34" smashed="yes">
<attribute name="VALUE" x="223.52" y="53.086" size="1.778" layer="96" align="top-center"/>
</instance>
<instance part="C1" gate="G$1" x="137.16" y="78.74" smashed="yes">
<attribute name="NAME" x="133.604" y="79.121" size="1.778" layer="95"/>
<attribute name="VALUE" x="131.064" y="74.041" size="1.778" layer="96"/>
</instance>
<instance part="GND5" gate="1" x="137.16" y="63.5" smashed="yes">
<attribute name="VALUE" x="137.16" y="63.246" size="1.778" layer="96" align="top-center"/>
</instance>
<instance part="3V1" gate="G$1" x="137.16" y="101.6" smashed="yes">
<attribute name="VALUE" x="137.16" y="104.394" size="1.778" layer="96" align="bottom-center"/>
</instance>
<instance part="R3" gate="G$1" x="215.9" y="60.96" smashed="yes" rot="R90">
<attribute name="NAME" x="214.4014" y="57.15" size="1.778" layer="95" rot="R90"/>
<attribute name="VALUE" x="219.202" y="57.15" size="1.778" layer="96" rot="R90"/>
</instance>
<instance part="GND6" gate="1" x="149.86" y="142.24" smashed="yes">
<attribute name="VALUE" x="149.86" y="141.986" size="1.778" layer="96" align="top-center"/>
</instance>
<instance part="3V2" gate="G$1" x="190.5" y="170.18" smashed="yes">
<attribute name="VALUE" x="190.5" y="172.974" size="1.778" layer="96" align="bottom-center"/>
</instance>
<instance part="C2" gate="G$1" x="190.5" y="147.32" smashed="yes">
<attribute name="NAME" x="186.944" y="147.701" size="1.778" layer="95"/>
<attribute name="VALUE" x="192.024" y="142.621" size="1.778" layer="96"/>
</instance>
<instance part="GND7" gate="1" x="190.5" y="119.38" smashed="yes">
<attribute name="VALUE" x="190.5" y="119.126" size="1.778" layer="96" align="top-center"/>
</instance>
<instance part="C3" gate="G$1" x="193.04" y="91.44" smashed="yes">
<attribute name="NAME" x="194.564" y="91.821" size="1.778" layer="95"/>
<attribute name="VALUE" x="194.564" y="86.741" size="1.778" layer="96"/>
</instance>
<instance part="C4" gate="G$1" x="200.66" y="91.44" smashed="yes">
<attribute name="NAME" x="202.184" y="91.821" size="1.778" layer="95"/>
<attribute name="VALUE" x="202.184" y="86.741" size="1.778" layer="96"/>
</instance>
<instance part="GND8" gate="1" x="200.66" y="81.28" smashed="yes">
<attribute name="VALUE" x="200.66" y="81.026" size="1.778" layer="96" align="top-center"/>
</instance>
<instance part="3V4" gate="G$1" x="200.66" y="99.06" smashed="yes">
<attribute name="VALUE" x="200.66" y="101.854" size="1.778" layer="96" align="bottom-center"/>
</instance>
<instance part="T1" gate="A" x="137.16" y="167.64" smashed="yes">
<attribute name="VALUE" x="139.7" y="167.64" size="1.778" layer="96"/>
<attribute name="NAME" x="139.7" y="170.18" size="1.778" layer="95"/>
</instance>
<instance part="D2" gate="G$1" x="132.08" y="157.48" smashed="yes">
<attribute name="NAME" x="129.54" y="160.02" size="1.27" layer="95"/>
<attribute name="VALUE" x="129.54" y="153.67" size="1.27" layer="96"/>
</instance>
<instance part="VBAT1" gate="G$1" x="137.16" y="175.26" smashed="yes">
<attribute name="VALUE" x="137.16" y="178.054" size="1.778" layer="96" align="bottom-center"/>
</instance>
<instance part="VBUS2" gate="G$1" x="124.46" y="175.26" smashed="yes">
<attribute name="VALUE" x="124.46" y="178.054" size="1.778" layer="96" align="bottom-center"/>
</instance>
<instance part="R4" gate="G$1" x="124.46" y="149.86" smashed="yes" rot="R90">
<attribute name="NAME" x="122.9614" y="146.05" size="1.778" layer="95" rot="R90"/>
<attribute name="VALUE" x="127.762" y="146.05" size="1.778" layer="96" rot="R90"/>
</instance>
<instance part="GND9" gate="1" x="124.46" y="139.7" smashed="yes">
<attribute name="VALUE" x="124.46" y="139.446" size="1.778" layer="96" align="top-center"/>
</instance>
<instance part="SW1" gate="G$1" x="147.32" y="152.4" smashed="yes" rot="R180">
<attribute name="NAME" x="149.225" y="158.75" size="1.778" layer="95" rot="R180"/>
<attribute name="VALUE" x="149.86" y="148.59" size="1.778" layer="96" rot="R180"/>
</instance>
<instance part="START" gate="G$1" x="116.84" y="25.4" smashed="yes">
<attribute name="NAME" x="114.3" y="28.956" size="1.27" layer="95"/>
<attribute name="VALUE" x="114.3" y="23.114" size="1.27" layer="96"/>
</instance>
<instance part="MENU" gate="G$1" x="116.84" y="17.78" smashed="yes">
<attribute name="NAME" x="114.3" y="21.336" size="1.27" layer="95"/>
<attribute name="VALUE" x="114.3" y="15.494" size="1.27" layer="96"/>
</instance>
<instance part="DOWN" gate="G$1" x="81.28" y="40.64" smashed="yes">
<attribute name="NAME" x="78.74" y="44.196" size="1.27" layer="95"/>
<attribute name="VALUE" x="78.74" y="38.354" size="1.27" layer="96"/>
</instance>
<instance part="LEFT" gate="G$1" x="81.28" y="33.02" smashed="yes">
<attribute name="NAME" x="78.74" y="36.576" size="1.27" layer="95"/>
<attribute name="VALUE" x="78.74" y="30.734" size="1.27" layer="96"/>
</instance>
<instance part="RIGHT" gate="G$1" x="81.28" y="25.4" smashed="yes">
<attribute name="NAME" x="78.74" y="28.956" size="1.27" layer="95"/>
<attribute name="VALUE" x="78.74" y="23.114" size="1.27" layer="96"/>
</instance>
<instance part="B" gate="G$1" x="116.84" y="40.64" smashed="yes">
<attribute name="NAME" x="114.3" y="44.196" size="1.27" layer="95"/>
<attribute name="VALUE" x="114.3" y="38.354" size="1.27" layer="96"/>
</instance>
<instance part="A" gate="G$1" x="116.84" y="48.26" smashed="yes">
<attribute name="NAME" x="114.3" y="51.816" size="1.27" layer="95"/>
<attribute name="VALUE" x="114.3" y="45.974" size="1.27" layer="96"/>
</instance>
<instance part="GND10" gate="1" x="129.54" y="10.16" smashed="yes">
<attribute name="VALUE" x="129.54" y="9.906" size="1.778" layer="96" align="top-center"/>
</instance>
<instance part="3V5" gate="G$1" x="93.98" y="73.66" smashed="yes">
<attribute name="VALUE" x="93.98" y="76.454" size="1.778" layer="96" align="bottom-center"/>
</instance>
<instance part="R5" gate="G$1" x="66.04" y="40.64" smashed="yes" rot="R180">
<attribute name="NAME" x="69.85" y="39.1414" size="1.778" layer="95" rot="R180"/>
<attribute name="VALUE" x="69.85" y="43.942" size="1.778" layer="96" rot="R180"/>
</instance>
<instance part="R6" gate="G$1" x="66.04" y="25.4" smashed="yes" rot="R180">
<attribute name="NAME" x="69.85" y="23.9014" size="1.778" layer="95" rot="R180"/>
<attribute name="VALUE" x="69.85" y="28.702" size="1.778" layer="96" rot="R180"/>
</instance>
<instance part="R7" gate="G$1" x="50.8" y="30.48" smashed="yes" rot="R90">
<attribute name="NAME" x="49.3014" y="26.67" size="1.778" layer="95" rot="R90"/>
<attribute name="VALUE" x="54.102" y="26.67" size="1.778" layer="96" rot="R90"/>
</instance>
<instance part="R8" gate="G$1" x="60.96" y="17.78" smashed="yes" rot="R90">
<attribute name="NAME" x="59.4614" y="13.97" size="1.778" layer="95" rot="R90"/>
<attribute name="VALUE" x="64.262" y="13.97" size="1.778" layer="96" rot="R90"/>
</instance>
<instance part="GND11" gate="1" x="60.96" y="7.62" smashed="yes">
<attribute name="VALUE" x="60.96" y="7.366" size="1.778" layer="96" align="top-center"/>
</instance>
<instance part="R10" gate="G$1" x="106.68" y="58.42" smashed="yes" rot="R180">
<attribute name="NAME" x="107.95" y="62.0014" size="1.778" layer="95" rot="R180"/>
<attribute name="VALUE" x="107.95" y="56.642" size="1.778" layer="96" rot="R180"/>
</instance>
<instance part="R11" gate="G$1" x="114.3" y="119.38" smashed="yes" rot="R90">
<attribute name="NAME" x="112.8014" y="115.57" size="1.778" layer="95" rot="R90"/>
<attribute name="VALUE" x="117.602" y="115.57" size="1.778" layer="96" rot="R90"/>
</instance>
<instance part="R12" gate="G$1" x="114.3" y="104.14" smashed="yes" rot="R90">
<attribute name="NAME" x="112.8014" y="100.33" size="1.778" layer="95" rot="R90"/>
<attribute name="VALUE" x="117.602" y="100.33" size="1.778" layer="96" rot="R90"/>
</instance>
<instance part="C5" gate="G$1" x="121.92" y="106.68" smashed="yes">
<attribute name="NAME" x="123.444" y="107.061" size="1.778" layer="95"/>
<attribute name="VALUE" x="123.444" y="101.981" size="1.778" layer="96"/>
</instance>
<instance part="C6" gate="G$1" x="106.68" y="106.68" smashed="yes">
<attribute name="NAME" x="103.124" y="107.061" size="1.778" layer="95"/>
<attribute name="VALUE" x="100.584" y="101.981" size="1.778" layer="96"/>
</instance>
<instance part="GND12" gate="1" x="114.3" y="91.44" smashed="yes">
<attribute name="VALUE" x="114.3" y="91.186" size="1.778" layer="96" align="top-center"/>
</instance>
<instance part="VBAT2" gate="G$1" x="114.3" y="129.54" smashed="yes">
<attribute name="VALUE" x="114.3" y="132.334" size="1.778" layer="96" align="bottom-center"/>
</instance>
<instance part="GND15" gate="1" x="190.5" y="27.94" smashed="yes">
<attribute name="VALUE" x="190.5" y="27.686" size="1.778" layer="96" align="top-center"/>
</instance>
<instance part="TFT_DISPLAY" gate="G$1" x="259.08" y="81.28" smashed="yes"/>
<instance part="H1" gate="G$1" x="210.82" y="40.64" smashed="yes">
<attribute name="NAME" x="212.852" y="41.2242" size="1.778" layer="95"/>
<attribute name="VALUE" x="212.852" y="38.1762" size="1.778" layer="96"/>
</instance>
<instance part="H2" gate="G$1" x="238.76" y="40.64" smashed="yes">
<attribute name="NAME" x="240.792" y="41.2242" size="1.778" layer="95"/>
<attribute name="VALUE" x="240.792" y="38.1762" size="1.778" layer="96"/>
</instance>
<instance part="H3" gate="G$1" x="210.82" y="33.02" smashed="yes">
<attribute name="NAME" x="212.852" y="33.6042" size="1.778" layer="95"/>
<attribute name="VALUE" x="212.852" y="30.5562" size="1.778" layer="96"/>
</instance>
<instance part="H4" gate="G$1" x="238.76" y="33.02" smashed="yes">
<attribute name="NAME" x="240.792" y="33.6042" size="1.778" layer="95"/>
<attribute name="VALUE" x="240.792" y="30.5562" size="1.778" layer="96"/>
</instance>
<instance part="R9" gate="G$1" x="165.1" y="129.54" smashed="yes">
<attribute name="NAME" x="163.83" y="125.9586" size="1.778" layer="95"/>
<attribute name="VALUE" x="163.83" y="131.318" size="1.778" layer="96"/>
</instance>
<instance part="R13" gate="G$1" x="165.1" y="121.92" smashed="yes">
<attribute name="NAME" x="163.83" y="118.3386" size="1.778" layer="95"/>
<attribute name="VALUE" x="163.83" y="123.698" size="1.778" layer="96"/>
</instance>
<instance part="R14" gate="G$1" x="165.1" y="114.3" smashed="yes">
<attribute name="NAME" x="163.83" y="110.7186" size="1.778" layer="95"/>
<attribute name="VALUE" x="163.83" y="116.078" size="1.778" layer="96"/>
</instance>
<instance part="3V6" gate="G$1" x="154.94" y="132.08" smashed="yes">
<attribute name="VALUE" x="154.94" y="134.874" size="1.778" layer="96" align="bottom-center"/>
</instance>
<instance part="U2" gate="U1" x="88.9" y="162.56" smashed="yes">
<attribute name="NAME" x="81.28" y="173.355" size="1.778" layer="95"/>
<attribute name="VALUE" x="81.28" y="147.32" size="1.778" layer="96"/>
</instance>
<instance part="IC1" gate="G$1" x="35.56" y="116.84" smashed="yes">
<attribute name="NAME" x="35.56" y="116.84" size="1.27" layer="95"/>
<attribute name="VALUE" x="35.56" y="101.6" size="1.27" layer="96"/>
</instance>
<instance part="J1" gate="J1" x="15.24" y="162.56" smashed="yes">
<attribute name="VALUE" x="12.7" y="152.654" size="1.778" layer="96" font="vector" rot="MR180" align="top-left"/>
<attribute name="NAME" x="12.7" y="172.974" size="1.778" layer="95" font="vector"/>
</instance>
<instance part="VBUS1" gate="G$1" x="22.86" y="175.26" smashed="yes">
<attribute name="VALUE" x="22.86" y="178.054" size="1.778" layer="96" align="bottom-center"/>
</instance>
<instance part="GND1" gate="1" x="22.86" y="149.86" smashed="yes">
<attribute name="VALUE" x="22.86" y="149.606" size="1.778" layer="96" align="top-center"/>
</instance>
<instance part="VBUS3" gate="G$1" x="76.2" y="175.26" smashed="yes">
<attribute name="VALUE" x="76.2" y="178.054" size="1.778" layer="96" align="bottom-center"/>
</instance>
<instance part="3V7" gate="G$1" x="66.04" y="175.26" smashed="yes">
<attribute name="VALUE" x="66.04" y="178.054" size="1.778" layer="96" align="bottom-center"/>
</instance>
<instance part="GND2" gate="1" x="76.2" y="134.62" smashed="yes">
<attribute name="VALUE" x="76.2" y="134.366" size="1.778" layer="96" align="top-center"/>
</instance>
<instance part="X1" gate="G$1" x="63.5" y="152.4" smashed="yes">
<attribute name="NAME" x="63.5" y="154.432" size="1.778" layer="95" font="vector" align="bottom-center"/>
<attribute name="VALUE" x="63.5" y="150.368" size="1.778" layer="96" font="vector" align="top-center"/>
</instance>
<instance part="C7" gate="G$1" x="58.42" y="147.32" smashed="yes">
<attribute name="NAME" x="54.864" y="147.701" size="1.778" layer="95"/>
<attribute name="VALUE" x="59.944" y="142.621" size="1.778" layer="96"/>
</instance>
<instance part="C8" gate="G$1" x="68.58" y="147.32" smashed="yes">
<attribute name="NAME" x="65.024" y="147.701" size="1.778" layer="95"/>
<attribute name="VALUE" x="70.104" y="142.621" size="1.778" layer="96"/>
</instance>
<instance part="GND3" gate="1" x="58.42" y="134.62" smashed="yes">
<attribute name="VALUE" x="58.42" y="134.366" size="1.778" layer="96" align="top-center"/>
</instance>
<instance part="GND13" gate="1" x="68.58" y="134.62" smashed="yes">
<attribute name="VALUE" x="68.58" y="134.366" size="1.778" layer="96" align="top-center"/>
</instance>
<instance part="R15" gate="G$1" x="66.04" y="111.76" smashed="yes" rot="R180">
<attribute name="NAME" x="65.024" y="115.0874" size="1.778" layer="95" rot="R180"/>
<attribute name="VALUE" x="69.85" y="115.062" size="1.778" layer="96" rot="R180"/>
</instance>
<instance part="R16" gate="G$1" x="66.04" y="109.22" smashed="yes" rot="R180">
<attribute name="NAME" x="64.77" y="107.7214" size="1.778" layer="95" rot="R180"/>
<attribute name="VALUE" x="70.104" y="107.95" size="1.778" layer="96" rot="R180"/>
</instance>
<instance part="R17" gate="G$1" x="25.4" y="99.06" smashed="yes" rot="R270">
<attribute name="NAME" x="26.8986" y="102.87" size="1.778" layer="95" rot="R270"/>
<attribute name="VALUE" x="22.098" y="102.87" size="1.778" layer="96" rot="R270"/>
</instance>
<instance part="R18" gate="G$1" x="38.1" y="134.62" smashed="yes" rot="R270">
<attribute name="NAME" x="39.5986" y="138.43" size="1.778" layer="95" rot="R270"/>
<attribute name="VALUE" x="34.798" y="138.43" size="1.778" layer="96" rot="R270"/>
</instance>
<instance part="VBUS4" gate="G$1" x="38.1" y="142.24" smashed="yes">
<attribute name="VALUE" x="38.1" y="145.034" size="1.778" layer="96" align="bottom-center"/>
</instance>
<instance part="GND14" gate="1" x="25.4" y="88.9" smashed="yes">
<attribute name="VALUE" x="25.4" y="88.646" size="1.778" layer="96" align="top-center"/>
</instance>
<instance part="D1" gate="G$1" x="73.66" y="121.92" smashed="yes">
<attribute name="NAME" x="72.771" y="124.968" size="1.778" layer="95" font="vector" rot="R90"/>
<attribute name="VALUE" x="75.565" y="117.348" size="1.778" layer="96" font="vector" rot="R90" align="top-left"/>
</instance>
<instance part="D3" gate="G$1" x="81.28" y="121.92" smashed="yes">
<attribute name="NAME" x="80.391" y="124.968" size="1.778" layer="95" font="vector" rot="R90"/>
<attribute name="VALUE" x="83.185" y="117.348" size="1.778" layer="96" font="vector" rot="R90" align="top-left"/>
</instance>
<instance part="C9" gate="G$1" x="58.42" y="99.06" smashed="yes">
<attribute name="NAME" x="54.864" y="99.441" size="1.778" layer="95"/>
<attribute name="VALUE" x="59.944" y="94.361" size="1.778" layer="96"/>
</instance>
<instance part="C10" gate="G$1" x="12.7" y="114.3" smashed="yes">
<attribute name="NAME" x="14.224" y="114.681" size="1.778" layer="95"/>
<attribute name="VALUE" x="14.224" y="109.601" size="1.778" layer="96"/>
</instance>
<instance part="R19" gate="G$1" x="106.68" y="66.04" smashed="yes" rot="R180">
<attribute name="NAME" x="107.95" y="69.6214" size="1.778" layer="95" rot="R180"/>
<attribute name="VALUE" x="107.95" y="64.262" size="1.778" layer="96" rot="R180"/>
</instance>
<instance part="Q2" gate="G$1" x="53.34" y="78.74" smashed="yes">
<attribute name="NAME" x="55.88" y="78.74" size="1.778" layer="95" font="vector"/>
<attribute name="VALUE" x="55.88" y="76.454" size="1.778" layer="96" font="vector"/>
</instance>
<instance part="Q3" gate="G$1" x="53.34" y="63.5" smashed="yes" rot="MR180">
<attribute name="NAME" x="55.88" y="63.5" size="1.778" layer="95" font="vector" rot="MR180"/>
<attribute name="VALUE" x="55.88" y="65.786" size="1.778" layer="96" font="vector" rot="MR180"/>
</instance>
<instance part="R20" gate="G$1" x="43.18" y="78.74" smashed="yes" rot="R180">
<attribute name="NAME" x="44.45" y="82.3214" size="1.778" layer="95" rot="R180"/>
<attribute name="VALUE" x="44.45" y="76.962" size="1.778" layer="96" rot="R180"/>
</instance>
<instance part="R21" gate="G$1" x="43.18" y="63.5" smashed="yes" rot="R180">
<attribute name="NAME" x="44.45" y="67.0814" size="1.778" layer="95" rot="R180"/>
<attribute name="VALUE" x="44.45" y="61.722" size="1.778" layer="96" rot="R180"/>
</instance>
<instance part="J3" gate="G$1" x="12.7" y="33.02" smashed="yes">
<attribute name="VALUE" x="7.62" y="23.114" size="1.778" layer="96" font="vector"/>
<attribute name="NAME" x="7.62" y="43.688" size="1.778" layer="95" font="vector"/>
</instance>
<instance part="3V8" gate="G$1" x="20.32" y="45.72" smashed="yes">
<attribute name="VALUE" x="20.32" y="48.514" size="1.778" layer="96" align="bottom-center"/>
</instance>
<instance part="GND16" gate="1" x="30.48" y="17.78" smashed="yes">
<attribute name="VALUE" x="30.48" y="17.526" size="1.778" layer="96" align="top-center"/>
</instance>
<instance part="J4" gate="G$1" x="83.82" y="93.98" smashed="yes">
<attribute name="VALUE" x="78.74" y="86.614" size="1.778" layer="96" font="vector"/>
<attribute name="NAME" x="78.74" y="102.108" size="1.778" layer="95" font="vector"/>
</instance>
<instance part="GND17" gate="1" x="101.6" y="88.9" smashed="yes">
<attribute name="VALUE" x="101.6" y="88.646" size="1.778" layer="96" align="top-center"/>
</instance>
<instance part="3V9" gate="G$1" x="93.98" y="106.68" smashed="yes">
<attribute name="VALUE" x="93.98" y="109.474" size="1.778" layer="96" align="bottom-center"/>
</instance>
</instances>
<busses>
</busses>
<nets>
<net name="RX" class="0">
<segment>
<pinref part="U2" gate="U1" pin="TXO"/>
<wire x1="99.06" y1="170.18" x2="101.6" y2="170.18" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="A1" gate="G$1" pin="RXD0"/>
<wire x1="187.96" y1="63.5" x2="190.5" y2="63.5" width="0.1524" layer="91"/>

</segment>
</net>
<net name="TX" class="0">
<segment>
<pinref part="U2" gate="U1" pin="RXI"/>
<wire x1="99.06" y1="167.64" x2="101.6" y2="167.64" width="0.1524" layer="91"/>

</segment>
<segment>
<pinref part="A1" gate="G$1" pin="TXD0"/>
<wire x1="187.96" y1="60.96" x2="190.5" y2="60.96" width="0.1524" layer="91"/>

</segment>
</net>
<net name="VBUS" class="1">
<segment>
<pinref part="VBUS2" gate="G$1" pin="VCC"/>
<pinref part="T1" gate="A" pin="G"/>
<wire x1="124.46" y1="175.26" x2="124.46" y2="165.1" width="0.1524" layer="91"/>
<wire x1="124.46" y1="165.1" x2="132.08" y2="165.1" width="0.1524" layer="91"/>
<pinref part="D2" gate="G$1" pin="A"/>
<wire x1="124.46" y1="165.1" x2="124.46" y2="157.48" width="0.1524" layer="91"/>
<wire x1="124.46" y1="157.48" x2="129.54" y2="157.48" width="0.1524" layer="91"/>
<junction x="124.46" y="165.1"/>
<pinref part="R4" gate="G$1" pin="2"/>
<wire x1="124.46" y1="157.48" x2="124.46" y2="154.94" width="0.1524" layer="91"/>
<junction x="124.46" y="157.48"/>
</segment>
<segment>
<pinref part="J1" gate="J1" pin="VBUS"/>
<wire x1="20.32" y1="170.18" x2="22.86" y2="170.18" width="0.1524" layer="91"/>
<wire x1="22.86" y1="170.18" x2="22.86" y2="175.26" width="0.1524" layer="91"/>
<pinref part="VBUS1" gate="G$1" pin="VCC"/>
</segment>
<segment>
<pinref part="VBUS4" gate="G$1" pin="VCC"/>
<pinref part="R18" gate="G$1" pin="1"/>
<wire x1="38.1" y1="142.24" x2="38.1" y2="139.7" width="0.1524" layer="91"/>
</segment>
</net>
<net name="GND" class="0">
<segment>
<wire x1="154.94" y1="17.78" x2="154.94" y2="15.24" width="0.1524" layer="91"/>

<pinref part="CN1" gate="G$1" pin="1"/>
<wire x1="144.78" y1="17.78" x2="154.94" y2="17.78" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="Q1" gate="G$1" pin="E"/>
<pinref part="GND4" gate="1" pin="GND"/>
<wire x1="223.52" y1="63.5" x2="223.52" y2="55.88" width="0.1524" layer="91"/>
<pinref part="R3" gate="G$1" pin="1"/>
<wire x1="215.9" y1="55.88" x2="223.52" y2="55.88" width="0.1524" layer="91"/>
<junction x="223.52" y="55.88"/>
</segment>
<segment>

<pinref part="TFT_DISPLAY" gate="G$1" pin="GND"/>
<wire x1="248.92" y1="99.06" x2="243.84" y2="99.06" width="0.1524" layer="91"/>
</segment>
<segment>

<pinref part="TFT_DISPLAY" gate="G$1" pin="GND2"/>
<wire x1="243.84" y1="81.28" x2="248.92" y2="81.28" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="C1" gate="G$1" pin="2"/>
<wire x1="137.16" y1="73.66" x2="137.16" y2="66.04" width="0.1524" layer="91"/>
<pinref part="GND5" gate="1" pin="GND"/>
</segment>
<segment>
<pinref part="U1" gate="G$1" pin="GND"/>
<wire x1="152.4" y1="147.32" x2="149.86" y2="147.32" width="0.1524" layer="91"/>
<wire x1="149.86" y1="147.32" x2="149.86" y2="144.78" width="0.1524" layer="91"/>
<pinref part="GND6" gate="1" pin="GND"/>
<pinref part="SW1" gate="G$1" pin="O"/>
<wire x1="142.24" y1="149.86" x2="142.24" y2="147.32" width="0.1524" layer="91"/>
<wire x1="142.24" y1="147.32" x2="149.86" y2="147.32" width="0.1524" layer="91"/>
<junction x="149.86" y="147.32"/>
</segment>
<segment>
<pinref part="J2" gate="G$1" pin="VSS"/>
<wire x1="203.2" y1="142.24" x2="190.5" y2="142.24" width="0.1524" layer="91"/>
<wire x1="190.5" y1="142.24" x2="190.5" y2="121.92" width="0.1524" layer="91"/>
<pinref part="C2" gate="G$1" pin="2"/>
<junction x="190.5" y="142.24"/>
<pinref part="GND7" gate="1" pin="GND"/>
</segment>
<segment>
<pinref part="C3" gate="G$1" pin="2"/>
<pinref part="C4" gate="G$1" pin="2"/>
<wire x1="193.04" y1="86.36" x2="200.66" y2="86.36" width="0.1524" layer="91"/>
<wire x1="200.66" y1="86.36" x2="200.66" y2="83.82" width="0.1524" layer="91"/>
<junction x="200.66" y="86.36"/>
<pinref part="GND8" gate="1" pin="GND"/>
</segment>
<segment>
<pinref part="R4" gate="G$1" pin="1"/>
<wire x1="124.46" y1="144.78" x2="124.46" y2="142.24" width="0.1524" layer="91"/>
<pinref part="GND9" gate="1" pin="GND"/>
</segment>
<segment>
<pinref part="A" gate="G$1" pin="3"/>
<wire x1="121.92" y1="48.26" x2="129.54" y2="48.26" width="0.1524" layer="91"/>
<wire x1="129.54" y1="48.26" x2="129.54" y2="40.64" width="0.1524" layer="91"/>
<pinref part="B" gate="G$1" pin="3"/>
<wire x1="129.54" y1="40.64" x2="129.54" y2="33.02" width="0.1524" layer="91"/>
<wire x1="129.54" y1="33.02" x2="129.54" y2="25.4" width="0.1524" layer="91"/>
<wire x1="129.54" y1="25.4" x2="129.54" y2="17.78" width="0.1524" layer="91"/>
<wire x1="129.54" y1="17.78" x2="129.54" y2="12.7" width="0.1524" layer="91"/>
<wire x1="121.92" y1="40.64" x2="129.54" y2="40.64" width="0.1524" layer="91"/>
<junction x="129.54" y="40.64"/>
<pinref part="SELECT" gate="G$1" pin="2"/>
<wire x1="121.92" y1="33.02" x2="129.54" y2="33.02" width="0.1524" layer="91"/>
<junction x="129.54" y="33.02"/>
<pinref part="START" gate="G$1" pin="2"/>
<wire x1="121.92" y1="25.4" x2="129.54" y2="25.4" width="0.1524" layer="91"/>
<junction x="129.54" y="25.4"/>
<pinref part="MENU" gate="G$1" pin="2"/>
<wire x1="121.92" y1="17.78" x2="129.54" y2="17.78" width="0.1524" layer="91"/>
<junction x="129.54" y="17.78"/>
<pinref part="GND10" gate="1" pin="GND"/>
<pinref part="A" gate="G$1" pin="4"/>
<wire x1="121.92" y1="45.72" x2="121.92" y2="48.26" width="0.1524" layer="91"/>
<junction x="121.92" y="48.26"/>
<pinref part="B" gate="G$1" pin="4"/>
<wire x1="121.92" y1="38.1" x2="121.92" y2="40.64" width="0.1524" layer="91"/>
<junction x="121.92" y="40.64"/>
</segment>
<segment>
<pinref part="R7" gate="G$1" pin="1"/>
<wire x1="50.8" y1="25.4" x2="50.8" y2="12.7" width="0.1524" layer="91"/>
<pinref part="R8" gate="G$1" pin="1"/>
<wire x1="50.8" y1="12.7" x2="60.96" y2="12.7" width="0.1524" layer="91"/>
<pinref part="GND11" gate="1" pin="GND"/>
<wire x1="60.96" y1="12.7" x2="60.96" y2="10.16" width="0.1524" layer="91"/>
<junction x="60.96" y="12.7"/>
</segment>
<segment>
<pinref part="C6" gate="G$1" pin="2"/>
<wire x1="106.68" y1="101.6" x2="106.68" y2="99.06" width="0.1524" layer="91"/>
<pinref part="R12" gate="G$1" pin="1"/>
<wire x1="106.68" y1="99.06" x2="114.3" y2="99.06" width="0.1524" layer="91"/>
<wire x1="114.3" y1="99.06" x2="121.92" y2="99.06" width="0.1524" layer="91"/>
<junction x="114.3" y="99.06"/>
<pinref part="C5" gate="G$1" pin="2"/>
<wire x1="121.92" y1="99.06" x2="121.92" y2="101.6" width="0.1524" layer="91"/>
<wire x1="114.3" y1="99.06" x2="114.3" y2="93.98" width="0.1524" layer="91"/>
<pinref part="GND12" gate="1" pin="GND"/>
</segment>
<segment>
<pinref part="A1" gate="G$1" pin="GND"/>
<wire x1="187.96" y1="40.64" x2="190.5" y2="40.64" width="0.1524" layer="91"/>
<wire x1="190.5" y1="40.64" x2="190.5" y2="30.48" width="0.1524" layer="91"/>
<pinref part="GND15" gate="1" pin="GND"/>
</segment>
<segment>
<pinref part="J1" gate="J1" pin="GND"/>
<wire x1="20.32" y1="160.02" x2="22.86" y2="160.02" width="0.1524" layer="91"/>
<wire x1="22.86" y1="160.02" x2="22.86" y2="152.4" width="0.1524" layer="91"/>
<pinref part="GND1" gate="1" pin="GND"/>
</segment>
<segment>
<pinref part="U2" gate="U1" pin="GND"/>
<wire x1="78.74" y1="152.4" x2="76.2" y2="152.4" width="0.1524" layer="91"/>
<wire x1="76.2" y1="152.4" x2="76.2" y2="137.16" width="0.1524" layer="91"/>
<pinref part="GND2" gate="1" pin="GND"/>
</segment>
<segment>
<pinref part="C7" gate="G$1" pin="2"/>
<pinref part="GND3" gate="1" pin="GND"/>
<wire x1="58.42" y1="142.24" x2="58.42" y2="137.16" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="C8" gate="G$1" pin="2"/>
<pinref part="GND13" gate="1" pin="GND"/>
<wire x1="68.58" y1="142.24" x2="68.58" y2="137.16" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="R17" gate="G$1" pin="2"/>
<pinref part="GND14" gate="1" pin="GND"/>
<wire x1="25.4" y1="93.98" x2="25.4" y2="91.44" width="0.1524" layer="91"/>
<pinref part="C10" gate="G$1" pin="2"/>
<wire x1="12.7" y1="109.22" x2="12.7" y2="93.98" width="0.1524" layer="91"/>
<wire x1="12.7" y1="93.98" x2="25.4" y2="93.98" width="0.1524" layer="91"/>
<junction x="25.4" y="93.98"/>
<pinref part="C9" gate="G$1" pin="2"/>
<wire x1="25.4" y1="93.98" x2="30.48" y2="93.98" width="0.1524" layer="91"/>
<pinref part="IC1" gate="G$1" pin="TEMP"/>
<pinref part="IC1" gate="G$1" pin="GND"/>
<wire x1="30.48" y1="93.98" x2="58.42" y2="93.98" width="0.1524" layer="91"/>
<wire x1="30.48" y1="114.3" x2="30.48" y2="109.22" width="0.1524" layer="91"/>
<wire x1="30.48" y1="109.22" x2="30.48" y2="93.98" width="0.1524" layer="91"/>
<junction x="30.48" y="109.22"/>
<junction x="30.48" y="93.98"/>
</segment>
<segment>
<pinref part="J3" gate="G$1" pin="5"/>
<wire x1="17.78" y1="38.1" x2="30.48" y2="38.1" width="0.1524" layer="91"/>
<wire x1="30.48" y1="38.1" x2="30.48" y2="27.94" width="0.1524" layer="91"/>
<pinref part="GND16" gate="1" pin="GND"/>
<pinref part="J3" gate="G$1" pin="1"/>
<wire x1="30.48" y1="27.94" x2="30.48" y2="20.32" width="0.1524" layer="91"/>
<wire x1="17.78" y1="27.94" x2="30.48" y2="27.94" width="0.1524" layer="91"/>
<junction x="30.48" y="27.94"/>
</segment>
<segment>
<pinref part="J4" gate="G$1" pin="3"/>
<wire x1="88.9" y1="96.52" x2="101.6" y2="96.52" width="0.1524" layer="91"/>
<wire x1="101.6" y1="96.52" x2="101.6" y2="91.44" width="0.1524" layer="91"/>
<pinref part="GND17" gate="1" pin="GND"/>
</segment>
</net>
<net name="VBAT" class="2">
<segment>
<wire x1="154.94" y1="20.32" x2="154.94" y2="25.4" width="0.1524" layer="91"/>

<pinref part="CN1" gate="G$1" pin="2"/>
<wire x1="144.78" y1="20.32" x2="154.94" y2="20.32" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="T1" gate="A" pin="D"/>
<pinref part="VBAT1" gate="G$1" pin="VCC"/>
<wire x1="137.16" y1="172.72" x2="137.16" y2="175.26" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="VBAT2" gate="G$1" pin="VCC"/>
<pinref part="R11" gate="G$1" pin="2"/>
<wire x1="114.3" y1="129.54" x2="114.3" y2="127" width="0.1524" layer="91"/>
<pinref part="C6" gate="G$1" pin="1"/>
<wire x1="114.3" y1="127" x2="114.3" y2="124.46" width="0.1524" layer="91"/>
<wire x1="106.68" y1="109.22" x2="106.68" y2="127" width="0.1524" layer="91"/>
<wire x1="106.68" y1="127" x2="114.3" y2="127" width="0.1524" layer="91"/>
<junction x="114.3" y="127"/>
</segment>
<segment>
<pinref part="IC1" gate="G$1" pin="BAT"/>
<pinref part="C9" gate="G$1" pin="1"/>
<wire x1="58.42" y1="106.68" x2="58.42" y2="101.6" width="0.1524" layer="91"/>

</segment>
</net>
<net name="3V3" class="2">
<segment>
<pinref part="U1" gate="G$1" pin="OUT"/>
<wire x1="170.18" y1="157.48" x2="175.26" y2="157.48" width="0.1524" layer="91"/>
<pinref part="3V3" gate="G$1" pin="VCC"/>
<wire x1="175.26" y1="157.48" x2="175.26" y2="162.56" width="0.1524" layer="91"/>
</segment>
<segment>
<wire x1="248.92" y1="76.2" x2="241.3" y2="76.2" width="0.1524" layer="91"/>
<wire x1="241.3" y1="76.2" x2="223.52" y2="76.2" width="0.1524" layer="91"/>
<wire x1="223.52" y1="76.2" x2="223.52" y2="83.82" width="0.1524" layer="91"/>
<wire x1="248.92" y1="78.74" x2="241.3" y2="78.74" width="0.1524" layer="91"/>
<wire x1="241.3" y1="78.74" x2="241.3" y2="76.2" width="0.1524" layer="91"/>
<junction x="241.3" y="76.2"/>

<pinref part="TFT_DISPLAY" gate="G$1" pin="VCC"/>
<pinref part="TFT_DISPLAY" gate="G$1" pin="LEDA"/>
</segment>
<segment>
<pinref part="R1" gate="G$1" pin="2"/>
<wire x1="137.16" y1="96.52" x2="137.16" y2="101.6" width="0.1524" layer="91"/>
<pinref part="3V1" gate="G$1" pin="VCC"/>
</segment>
<segment>
<pinref part="3V2" gate="G$1" pin="VCC"/>
<pinref part="C2" gate="G$1" pin="1"/>
<wire x1="190.5" y1="149.86" x2="190.5" y2="152.4" width="0.1524" layer="91"/>
<pinref part="J2" gate="G$1" pin="VDD"/>
<wire x1="190.5" y1="152.4" x2="190.5" y2="170.18" width="0.1524" layer="91"/>
<wire x1="203.2" y1="152.4" x2="190.5" y2="152.4" width="0.1524" layer="91"/>
<junction x="190.5" y="152.4"/>
</segment>
<segment>
<pinref part="A1" gate="G$1" pin="VDD3V3"/>
<pinref part="C3" gate="G$1" pin="1"/>
<wire x1="187.96" y1="93.98" x2="193.04" y2="93.98" width="0.1524" layer="91"/>
<pinref part="C4" gate="G$1" pin="1"/>
<wire x1="193.04" y1="93.98" x2="200.66" y2="93.98" width="0.1524" layer="91"/>
<junction x="193.04" y="93.98"/>
<wire x1="200.66" y1="93.98" x2="200.66" y2="99.06" width="0.1524" layer="91"/>
<junction x="200.66" y="93.98"/>
<pinref part="3V4" gate="G$1" pin="VCC"/>
</segment>
<segment>
<pinref part="RIGHT" gate="G$1" pin="3"/>
<wire x1="86.36" y1="25.4" x2="93.98" y2="25.4" width="0.1524" layer="91"/>
<wire x1="93.98" y1="25.4" x2="93.98" y2="33.02" width="0.1524" layer="91"/>
<pinref part="UP" gate="G$1" pin="3"/>
<wire x1="93.98" y1="33.02" x2="93.98" y2="40.64" width="0.1524" layer="91"/>
<wire x1="93.98" y1="40.64" x2="93.98" y2="48.26" width="0.1524" layer="91"/>
<wire x1="93.98" y1="48.26" x2="93.98" y2="58.42" width="0.1524" layer="91"/>
<wire x1="93.98" y1="58.42" x2="93.98" y2="66.04" width="0.1524" layer="91"/>
<wire x1="93.98" y1="66.04" x2="93.98" y2="73.66" width="0.1524" layer="91"/>
<wire x1="86.36" y1="48.26" x2="93.98" y2="48.26" width="0.1524" layer="91"/>
<junction x="93.98" y="48.26"/>
<pinref part="DOWN" gate="G$1" pin="3"/>
<wire x1="86.36" y1="40.64" x2="93.98" y2="40.64" width="0.1524" layer="91"/>
<junction x="93.98" y="40.64"/>
<pinref part="LEFT" gate="G$1" pin="3"/>
<wire x1="86.36" y1="33.02" x2="93.98" y2="33.02" width="0.1524" layer="91"/>
<junction x="93.98" y="33.02"/>
<pinref part="3V5" gate="G$1" pin="VCC"/>
<pinref part="R10" gate="G$1" pin="2"/>
<wire x1="101.6" y1="58.42" x2="93.98" y2="58.42" width="0.1524" layer="91"/>
<junction x="93.98" y="58.42"/>
<pinref part="UP" gate="G$1" pin="4"/>
<wire x1="86.36" y1="45.72" x2="86.36" y2="48.26" width="0.1524" layer="91"/>
<junction x="86.36" y="48.26"/>
<pinref part="DOWN" gate="G$1" pin="4"/>
<wire x1="86.36" y1="38.1" x2="86.36" y2="40.64" width="0.1524" layer="91"/>
<junction x="86.36" y="40.64"/>
<pinref part="LEFT" gate="G$1" pin="4"/>
<wire x1="86.36" y1="30.48" x2="86.36" y2="33.02" width="0.1524" layer="91"/>
<junction x="86.36" y="33.02"/>
<pinref part="RIGHT" gate="G$1" pin="4"/>
<wire x1="86.36" y1="22.86" x2="86.36" y2="25.4" width="0.1524" layer="91"/>
<junction x="86.36" y="25.4"/>
<pinref part="R19" gate="G$1" pin="2"/>
<wire x1="101.6" y1="66.04" x2="93.98" y2="66.04" width="0.1524" layer="91"/>
<junction x="93.98" y="66.04"/>
</segment>
<segment>
<pinref part="3V6" gate="G$1" pin="VCC"/>
<wire x1="154.94" y1="132.08" x2="154.94" y2="129.54" width="0.1524" layer="91"/>
<pinref part="R14" gate="G$1" pin="1"/>
<wire x1="154.94" y1="129.54" x2="154.94" y2="121.92" width="0.1524" layer="91"/>
<wire x1="154.94" y1="121.92" x2="154.94" y2="114.3" width="0.1524" layer="91"/>
<wire x1="154.94" y1="114.3" x2="160.02" y2="114.3" width="0.1524" layer="91"/>
<pinref part="R13" gate="G$1" pin="1"/>
<wire x1="160.02" y1="121.92" x2="154.94" y2="121.92" width="0.1524" layer="91"/>
<junction x="154.94" y="121.92"/>
<pinref part="R9" gate="G$1" pin="1"/>
<wire x1="160.02" y1="129.54" x2="154.94" y2="129.54" width="0.1524" layer="91"/>
<junction x="154.94" y="129.54"/>
</segment>
<segment>
<pinref part="U2" gate="U1" pin="V3"/>
<wire x1="78.74" y1="167.64" x2="66.04" y2="167.64" width="0.1524" layer="91"/>
<wire x1="66.04" y1="167.64" x2="66.04" y2="175.26" width="0.1524" layer="91"/>
<pinref part="3V7" gate="G$1" pin="VCC"/>
</segment>
<segment>
<pinref part="J3" gate="G$1" pin="6"/>
<wire x1="17.78" y1="40.64" x2="20.32" y2="40.64" width="0.1524" layer="91"/>
<wire x1="20.32" y1="40.64" x2="20.32" y2="45.72" width="0.1524" layer="91"/>
<pinref part="3V8" gate="G$1" pin="VCC"/>
</segment>
<segment>
<pinref part="J4" gate="G$1" pin="4"/>
<wire x1="88.9" y1="99.06" x2="93.98" y2="99.06" width="0.1524" layer="91"/>
<wire x1="93.98" y1="99.06" x2="93.98" y2="106.68" width="0.1524" layer="91"/>
<pinref part="3V9" gate="G$1" pin="VCC"/>
</segment>
<segment>
<pinref part="U2" gate="U1" pin="VCC"/>
<wire x1="78.74" y1="170.18" x2="76.2" y2="170.18" width="0.1524" layer="91"/>
<wire x1="76.2" y1="170.18" x2="76.2" y2="175.26" width="0.1524" layer="91"/>
<pinref part="VBUS3" gate="G$1" pin="VCC"/>
</segment>
</net>
<net name="SCK" class="0">
<segment>
<pinref part="A1" gate="G$1" pin="IO18"/>
<wire x1="157.48" y1="58.42" x2="154.94" y2="58.42" width="0.1524" layer="91"/>

</segment>
<segment>

<pinref part="TFT_DISPLAY" gate="G$1" pin="SCL"/>
<wire x1="248.92" y1="93.98" x2="243.84" y2="93.98" width="0.1524" layer="91"/>
</segment>
</net>
<net name="D/C" class="0">
<segment>

<pinref part="TFT_DISPLAY" gate="G$1" pin="D/CX"/>
<wire x1="243.84" y1="91.44" x2="248.92" y2="91.44" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="A1" gate="G$1" pin="IO12"/>
<wire x1="157.48" y1="68.58" x2="154.94" y2="68.58" width="0.1524" layer="91"/>

</segment>
</net>
<net name="MOSI" class="0">
<segment>
<pinref part="A1" gate="G$1" pin="IO23"/>
<wire x1="157.48" y1="48.26" x2="154.94" y2="48.26" width="0.1524" layer="91"/>

</segment>
<segment>

<pinref part="TFT_DISPLAY" gate="G$1" pin="SDI"/>
<wire x1="243.84" y1="86.36" x2="248.92" y2="86.36" width="0.1524" layer="91"/>
</segment>
</net>
<net name="LCD_CS" class="0">
<segment>
<pinref part="A1" gate="G$1" pin="IO5"/>
<wire x1="157.48" y1="71.12" x2="154.94" y2="71.12" width="0.1524" layer="91"/>

</segment>
<segment>

<pinref part="TFT_DISPLAY" gate="G$1" pin="CSX"/>
<wire x1="243.84" y1="88.9" x2="248.92" y2="88.9" width="0.1524" layer="91"/>
</segment>
</net>
<net name="BCKL" class="0">
<segment>
<pinref part="Q1" gate="G$1" pin="B"/>
<wire x1="218.44" y1="68.58" x2="215.9" y2="68.58" width="0.1524" layer="91"/>

<pinref part="R3" gate="G$1" pin="2"/>
<wire x1="215.9" y1="68.58" x2="210.82" y2="68.58" width="0.1524" layer="91"/>
<wire x1="215.9" y1="66.04" x2="215.9" y2="68.58" width="0.1524" layer="91"/>
<junction x="215.9" y="68.58"/>
</segment>
<segment>
<pinref part="A1" gate="G$1" pin="IO27"/>
<wire x1="187.96" y1="48.26" x2="190.5" y2="48.26" width="0.1524" layer="91"/>

</segment>
</net>
<net name="N$2" class="0">
<segment>
<pinref part="R2" gate="G$1" pin="2"/>
<wire x1="238.76" y1="73.66" x2="241.3" y2="73.66" width="0.1524" layer="91"/>
<wire x1="241.3" y1="73.66" x2="248.92" y2="73.66" width="0.1524" layer="91"/>
<wire x1="248.92" y1="66.04" x2="241.3" y2="66.04" width="0.1524" layer="91"/>
<wire x1="241.3" y1="66.04" x2="241.3" y2="68.58" width="0.1524" layer="91"/>
<junction x="241.3" y="73.66"/>
<wire x1="241.3" y1="68.58" x2="241.3" y2="71.12" width="0.1524" layer="91"/>
<wire x1="241.3" y1="71.12" x2="241.3" y2="73.66" width="0.

extension: sch


text:
1524" layer="91"/>
<wire x1="248.92" y1="71.12" x2="241.3" y2="71.12" width="0.1524" layer="91"/>
<junction x="241.3" y="71.12"/>
<wire x1="248.92" y1="68.58" x2="241.3" y2="68.58" width="0.1524" layer="91"/>
<junction x="241.3" y="68.58"/>
<pinref part="TFT_DISPLAY" gate="G$1" pin="LED_K1"/>
<pinref part="TFT_DISPLAY" gate="G$1" pin="LED_K2"/>
<pinref part="TFT_DISPLAY" gate="G$1" pin="LED_K3"/>
<pinref part="TFT_DISPLAY" gate="G$1" pin="LED_K4"/>
</segment>
</net>
<net name="N$4" class="0">
<segment>
<pinref part="R2" gate="G$1" pin="1"/>
<pinref part="Q1" gate="G$1" pin="C"/>
<wire x1="228.6" y1="73.66" x2="223.52" y2="73.66" width="0.1524" layer="91"/>
</segment>
</net>
<net name="RESET" class="0">
<segment>
<pinref part="R1" gate="G$1" pin="1"/>
<pinref part="C1" gate="G$1" pin="1"/>
<wire x1="137.16" y1="86.36" x2="137.16" y2="83.82" width="0.1524" layer="91"/>
<wire x1="137.16" y1="83.82" x2="137.16" y2="81.28" width="0.1524" layer="91"/>
<junction x="137.16" y="83.82"/>
<pinref part="A1" gate="G$1" pin="EN"/>
<wire x1="137.16" y1="83.82" x2="157.48" y2="83.82" width="0.1524" layer="91"/>
<label x="142.24" y="83.82" size="1.27" layer="95" rot="R90" xref="yes"/>
</segment>
<segment>
<label x="243.84" y="96.52" size="1.27" layer="95" rot="R180" xref="yes"/>
<pinref part="TFT_DISPLAY" gate="G$1" pin="RESET"/>
<wire x1="248.92" y1="96.52" x2="243.84" y2="96.52" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="Q2" gate="G$1" pin="C"/>
<wire x1="55.88" y1="83.82" x2="55.88" y2="86.36" width="0.1524" layer="91"/>
<wire x1="55.88" y1="86.36" x2="63.5" y2="86.36" width="0.1524" layer="91"/>
<label x="63.5" y="86.36" size="1.27" layer="95" xref="yes"/>
</segment>
</net>
<net name="MISO" class="0">
<segment>
<pinref part="A1" gate="G$1" pin="IO19"/>
<wire x1="157.48" y1="55.88" x2="154.94" y2="55.88" width="0.1524" layer="91"/>
<label x="154.94" y="55.88" size="1.27" layer="95" rot="R180" xref="yes"/>
</segment>
</net>
<net name="N$1" class="0">
<segment>
<pinref part="D2" gate="G$1" pin="C"/>
<pinref part="U1" gate="G$1" pin="IN"/>
<wire x1="134.62" y1="157.48" x2="137.16" y2="157.48" width="0.1524" layer="91"/>
<pinref part="T1" gate="A" pin="S"/>
<wire x1="137.16" y1="157.48" x2="152.4" y2="157.48" width="0.1524" layer="91"/>
<wire x1="137.16" y1="162.56" x2="137.16" y2="157.48" width="0.1524" layer="91"/>
<junction x="137.16" y="157.48"/>
<wire x1="137.16" y1="157.48" x2="137.16" y2="154.94" width="0.1524" layer="91"/>
<pinref part="SW1" gate="G$1" pin="S"/>
<wire x1="142.24" y1="154.94" x2="137.16" y2="154.94" width="0.1524" layer="91"/>
</segment>
</net>
<net name="A" class="0">
<segment>
<pinref part="A1" gate="G$1" pin="IO32"/>
<wire x1="187.96" y1="50.8" x2="190.5" y2="50.8" width="0.1524" layer="91"/>
<label x="190.5" y="50.8" size="1.27" layer="95" xref="yes"/>
</segment>
<segment>
<pinref part="A" gate="G$1" pin="1"/>
<wire x1="111.76" y1="48.26" x2="109.22" y2="48.26" width="0.1524" layer="91"/>
<label x="109.22" y="48.26" size="1.27" layer="95" rot="R180" xref="yes"/>
<pinref part="A" gate="G$1" pin="2"/>
<wire x1="111.76" y1="45.72" x2="111.76" y2="48.26" width="0.1524" layer="91"/>
<junction x="111.76" y="48.26"/>
</segment>
</net>
<net name="B" class="0">
<segment>
<pinref part="A1" gate="G$1" pin="IO33"/>
<wire x1="187.96" y1="53.34" x2="190.5" y2="53.34" width="0.1524" layer="91"/>
<label x="190.5" y="53.34" size="1.27" layer="95" xref="yes"/>
</segment>
<segment>
<pinref part="B" gate="G$1" pin="1"/>
<wire x1="111.76" y1="40.64" x2="109.22" y2="40.64" width="0.1524" layer="91"/>
<label x="109.22" y="40.64" size="1.27" layer="95" rot="R180" xref="yes"/>
<pinref part="B" gate="G$1" pin="2"/>
<wire x1="111.76" y1="38.1" x2="111.76" y2="40.64" width="0.1524" layer="91"/>
<junction x="111.76" y="40.64"/>
</segment>
</net>
<net name="START" class="0">
<segment>
<pinref part="A1" gate="G$1" pin="SENSOR_VP"/>
<wire x1="157.48" y1="86.36" x2="154.94" y2="86.36" width="0.1524" layer="91"/>
<label x="154.94" y="86.36" size="1.27" layer="95" rot="R180" xref="yes"/>
</segment>
<segment>
<pinref part="R10" gate="G$1" pin="1"/>
<wire x1="111.76" y1="58.42" x2="116.84" y2="58.42" width="0.1524" layer="91"/>
<label x="116.84" y="58.42" size="1.27" layer="95" xref="yes"/>
</segment>
<segment>
<pinref part="START" gate="G$1" pin="1"/>
<wire x1="111.76" y1="25.4" x2="109.22" y2="25.4" width="0.1524" layer="91"/>
<label x="109.22" y="25.4" size="1.27" layer="95" rot="R180" xref="yes"/>
</segment>
</net>
<net name="MENU" class="0">
<segment>
<pinref part="A1" gate="G$1" pin="IO13"/>
<wire x1="157.48" y1="66.04" x2="154.94" y2="66.04" width="0.1524" layer="91"/>
<label x="154.94" y="66.04" size="1.27" layer="95" rot="R180" xref="yes"/>
</segment>
<segment>
<pinref part="MENU" gate="G$1" pin="1"/>
<wire x1="111.76" y1="17.78" x2="109.22" y2="17.78" width="0.1524" layer="91"/>
<label x="109.22" y="17.78" size="1.27" layer="95" rot="R180" xref="yes"/>
</segment>
</net>
<net name="IO34" class="0">
<segment>
<pinref part="R8" gate="G$1" pin="2"/>
<pinref part="R6" gate="G$1" pin="2"/>
<wire x1="60.96" y1="22.86" x2="60.96" y2="25.4" width="0.1524" layer="91"/>
<wire x1="60.96" y1="25.4" x2="60.96" y2="33.02" width="0.1524" layer="91"/>
<junction x="60.96" y="25.4"/>
<pinref part="LEFT" gate="G$1" pin="1"/>
<wire x1="60.96" y1="33.02" x2="76.2" y2="33.02" width="0.1524" layer="91"/>
<wire x1="60.96" y1="25.4" x2="58.42" y2="25.4" width="0.1524" layer="91"/>
<label x="58.42" y="25.4" size="1.27" layer="95" rot="R180" xref="yes"/>
<pinref part="LEFT" gate="G$1" pin="2"/>
<wire x1="76.2" y1="30.48" x2="76.2" y2="33.02" width="0.1524" layer="91"/>
<junction x="76.2" y="33.02"/>
</segment>
<segment>
<pinref part="A1" gate="G$1" pin="IO34"/>
<wire x1="187.96" y1="55.88" x2="190.5" y2="55.88" width="0.1524" layer="91"/>
<label x="190.5" y="55.88" size="1.27" layer="95" xref="yes"/>
</segment>
</net>
<net name="IO35" class="0">
<segment>
<pinref part="R7" gate="G$1" pin="2"/>
<wire x1="50.8" y1="35.56" x2="50.8" y2="40.64" width="0.1524" layer="91"/>
<pinref part="R5" gate="G$1" pin="2"/>
<wire x1="50.8" y1="40.64" x2="60.96" y2="40.64" width="0.1524" layer="91"/>
<wire x1="50.8" y1="40.64" x2="50.8" y2="48.26" width="0.1524" layer="91"/>
<junction x="50.8" y="40.64"/>
<pinref part="UP" gate="G$1" pin="1"/>
<wire x1="50.8" y1="48.26" x2="76.2" y2="48.26" width="0.1524" layer="91"/>
<wire x1="50.8" y1="40.64" x2="45.72" y2="40.64" width="0.1524" layer="91"/>
<label x="45.72" y="40.64" size="1.27" layer="95" rot="R180" xref="yes"/>
<pinref part="UP" gate="G$1" pin="2"/>
<wire x1="76.2" y1="45.72" x2="76.2" y2="48.26" width="0.1524" layer="91"/>
<junction x="76.2" y="48.26"/>
</segment>
<segment>
<pinref part="A1" gate="G$1" pin="IO35"/>
<wire x1="187.96" y1="58.42" x2="190.5" y2="58.42" width="0.1524" layer="91"/>
<label x="190.5" y="58.42" size="1.27" layer="95" xref="yes"/>
</segment>
</net>
<net name="N$7" class="0">
<segment>
<pinref part="R6" gate="G$1" pin="1"/>
<pinref part="RIGHT" gate="G$1" pin="1"/>
<wire x1="71.12" y1="25.4" x2="76.2" y2="25.4" width="0.1524" layer="91"/>
<pinref part="RIGHT" gate="G$1" pin="2"/>
<wire x1="76.2" y1="22.86" x2="76.2" y2="25.4" width="0.1524" layer="91"/>
<junction x="76.2" y="25.4"/>
</segment>
</net>
<net name="N$8" class="0">
<segment>
<pinref part="R5" gate="G$1" pin="1"/>
<pinref part="DOWN" gate="G$1" pin="1"/>
<wire x1="71.12" y1="40.64" x2="76.2" y2="40.64" width="0.1524" layer="91"/>
<pinref part="DOWN" gate="G$1" pin="2"/>
<wire x1="76.2" y1="38.1" x2="76.2" y2="40.64" width="0.1524" layer="91"/>
<junction x="76.2" y="40.64"/>
</segment>
</net>
<net name="BAT_SENSE" class="0">
<segment>
<pinref part="R12" gate="G$1" pin="2"/>
<pinref part="R11" gate="G$1" pin="1"/>
<wire x1="114.3" y1="109.22" x2="114.3" y2="114.3" width="0.1524" layer="91"/>
<junction x="114.3" y="109.22"/>
<pinref part="C5" gate="G$1" pin="1"/>
<wire x1="114.3" y1="109.22" x2="121.92" y2="109.22" width="0.1524" layer="91"/>
<wire x1="121.92" y1="109.22" x2="124.46" y2="111.76" width="0.1524" layer="91"/>
<junction x="121.92" y="109.22"/>
<label x="124.46" y="111.76" size="1.27" layer="95" rot="R90" xref="yes"/>
</segment>
<segment>
<pinref part="A1" gate="G$1" pin="SENSOR_VN"/>
<wire x1="157.48" y1="88.9" x2="154.94" y2="88.9" width="0.1524" layer="91"/>
<label x="154.94" y="88.9" size="1.27" layer="95" rot="R90" xref="yes"/>
</segment>
</net>
<net name="DAT0" class="0">
<segment>
<pinref part="A1" gate="G$1" pin="IO2"/>
<wire x1="157.48" y1="76.2" x2="154.94" y2="76.2" width="0.1524" layer="91"/>
<label x="154.94" y="76.2" size="1.27" layer="95" rot="R180" xref="yes"/>
</segment>
<segment>
<pinref part="J2" gate="G$1" pin="DAT0_DO"/>
<wire x1="203.2" y1="137.16" x2="200.66" y2="137.16" width="0.1524" layer="91"/>
<label x="200.66" y="137.16" size="1.27" layer="95" rot="R180" xref="yes"/>
</segment>
<segment>
<pinref part="R13" gate="G$1" pin="2"/>
<wire x1="170.18" y1="121.92" x2="175.26" y2="121.92" width="0.1524" layer="91"/>
<label x="175.26" y="121.92" size="1.27" layer="95" xref="yes"/>
</segment>
</net>
<net name="CMD" class="0">
<segment>
<pinref part="A1" gate="G$1" pin="IO15"/>
<wire x1="157.48" y1="60.96" x2="154.94" y2="60.96" width="0.1524" layer="91"/>
<label x="154.94" y="60.96" size="1.27" layer="95" rot="R180" xref="yes"/>
</segment>
<segment>
<pinref part="J2" gate="G$1" pin="CMD_DIN"/>
<wire x1="203.2" y1="157.48" x2="200.66" y2="157.48" width="0.1524" layer="91"/>
<label x="200.66" y="157.48" size="1.27" layer="95" rot="R180" xref="yes"/>
</segment>
<segment>
<pinref part="R9" gate="G$1" pin="2"/>
<wire x1="170.18" y1="129.54" x2="175.26" y2="129.54" width="0.1524" layer="91"/>
<label x="175.26" y="129.54" size="1.27" layer="95" xref="yes"/>
</segment>
</net>
<net name="CLK" class="0">
<segment>
<pinref part="A1" gate="G$1" pin="IO14"/>
<wire x1="157.48" y1="63.5" x2="154.94" y2="63.5" width="0.1524" layer="91"/>
<label x="154.94" y="63.5" size="1.27" layer="95" rot="R180" xref="yes"/>
</segment>
<segment>
<pinref part="J2" gate="G$1" pin="CLK"/>
<wire x1="203.2" y1="147.32" x2="200.66" y2="147.32" width="0.1524" layer="91"/>
<label x="200.66" y="147.32" size="1.27" layer="95" rot="R180" xref="yes"/>
</segment>
<segment>
<pinref part="R14" gate="G$1" pin="2"/>
<wire x1="170.18" y1="114.3" x2="175.26" y2="114.3" width="0.1524" layer="91"/>
<label x="175.26" y="114.3" size="1.27" layer="95" xref="yes"/>
</segment>
</net>
<net name="D-" class="0">
<segment>
<pinref part="U2" gate="U1" pin="UD-"/>
<wire x1="78.74" y1="160.02" x2="76.2" y2="160.02" width="0.1524" layer="91"/>
<label x="76.2" y="160.02" size="1.27" layer="95" rot="R180" xref="yes"/>
</segment>
<segment>
<pinref part="J1" gate="J1" pin="D-"/>
<wire x1="20.32" y1="167.64" x2="22.86" y2="167.64" width="0.1524" layer="91"/>
<label x="22.86" y="167.64" size="1.27" layer="95" xref="yes"/>
</segment>
</net>
<net name="D+" class="0">
<segment>
<pinref part="U2" gate="U1" pin="UD+"/>
<wire x1="78.74" y1="162.56" x2="76.2" y2="162.56" width="0.1524" layer="91"/>
<label x="76.2" y="162.56" size="1.27" layer="95" rot="R180" xref="yes"/>
</segment>
<segment>
<pinref part="J1" gate="J1" pin="D+"/>
<wire x1="20.32" y1="165.1" x2="22.86" y2="165.1" width="0.1524" layer="91"/>
<label x="22.86" y="165.1" size="1.27" layer="95" xref="yes"/>
</segment>
</net>
<net name="N$5" class="0">
<segment>
<pinref part="U2" gate="U1" pin="XI"/>
<pinref part="C7" gate="G$1" pin="1"/>
<wire x1="78.74" y1="157.48" x2="58.42" y2="157.48" width="0.1524" layer="91"/>
<wire x1="58.42" y1="157.48" x2="58.42" y2="152.4" width="0.1524" layer="91"/>
<pinref part="X1" gate="G$1" pin="1"/>
<wire x1="58.42" y1="152.4" x2="58.42" y2="149.86" width="0.1524" layer="91"/>
<wire x1="58.42" y1="152.4" x2="60.96" y2="152.4" width="0.1524" layer="91"/>
<junction x="58.42" y="152.4"/>
</segment>
</net>
<net name="N$6" class="0">
<segment>
<pinref part="C8" gate="G$1" pin="1"/>
<wire x1="68.58" y1="149.86" x2="68.58" y2="152.4" width="0.1524" layer="91"/>
<pinref part="U2" gate="U1" pin="XO"/>
<wire x1="68.58" y1="152.4" x2="68.58" y2="154.94" width="0.1524" layer="91"/>
<wire x1="68.58" y1="154.94" x2="78.74" y2="154.94" width="0.1524" layer="91"/>
<pinref part="X1" gate="G$1" pin="2"/>
<wire x1="66.04" y1="152.4" x2="68.58" y2="152.4" width="0.1524" layer="91"/>
<junction x="68.58" y="152.4"/>
</segment>
</net>
<net name="N$9" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="PROG"/>
<wire x1="30.48" y1="111.76" x2="25.4" y2="111.76" width="0.1524" layer="91"/>
<pinref part="R17" gate="G$1" pin="1"/>
<wire x1="25.4" y1="111.76" x2="25.4" y2="104.14" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$10" class="0">
<segment>
<pinref part="R15" gate="G$1" pin="2"/>
<pinref part="IC1" gate="G$1" pin="CHRG"/>
<wire x1="60.96" y1="111.76" x2="58.42" y2="111.76" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$11" class="0">
<segment>
<pinref part="IC1" gate="G$1" pin="STDBY"/>
<pinref part="R16" gate="G$1" pin="2"/>
<wire x1="58.42" y1="109.22" x2="60.96" y2="109.22" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$12" class="0">
<segment>
<pinref part="R15" gate="G$1" pin="1"/>
<wire x1="71.12" y1="111.76" x2="73.66" y2="111.76" width="0.1524" layer="91"/>
<pinref part="D1" gate="G$1" pin="C"/>
<wire x1="73.66" y1="111.76" x2="73.66" y2="116.84" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$13" class="0">
<segment>
<pinref part="R16" gate="G$1" pin="1"/>
<wire x1="71.12" y1="109.22" x2="81.28" y2="109.22" width="0.1524" layer="91"/>
<pinref part="D3" gate="G$1" pin="C"/>
<wire x1="81.28" y1="109.22" x2="81.28" y2="116.84" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$14" class="0">
<segment>
<pinref part="D3" gate="G$1" pin="A"/>
<pinref part="R18" gate="G$1" pin="2"/>
<wire x1="81.28" y1="124.46" x2="81.28" y2="129.54" width="0.1524" layer="91"/>
<wire x1="81.28" y1="129.54" x2="73.66" y2="129.54" width="0.1524" layer="91"/>
<pinref part="D1" gate="G$1" pin="A"/>
<wire x1="73.66" y1="129.54" x2="58.42" y2="129.54" width="0.1524" layer="91"/>
<wire x1="58.42" y1="129.54" x2="38.1" y2="129.54" width="0.1524" layer="91"/>
<wire x1="73.66" y1="124.46" x2="73.66" y2="129.54" width="0.1524" layer="91"/>
<junction x="73.66" y="129.54"/>
<pinref part="IC1" gate="G$1" pin="CE"/>
<wire x1="58.42" y1="114.3" x2="58.42" y2="129.54" width="0.1524" layer="91"/>
<junction x="58.42" y="129.54"/>
<pinref part="IC1" gate="G$1" pin="VCC"/>
<wire x1="30.48" y1="106.68" x2="22.86" y2="106.68" width="0.1524" layer="91"/>
<wire x1="22.86" y1="106.68" x2="22.86" y2="129.54" width="0.1524" layer="91"/>
<wire x1="22.86" y1="129.54" x2="38.1" y2="129.54" width="0.1524" layer="91"/>
<junction x="38.1" y="129.54"/>
<pinref part="C10" gate="G$1" pin="1"/>
<wire x1="22.86" y1="129.54" x2="12.7" y2="129.54" width="0.1524" layer="91"/>
<wire x1="12.7" y1="129.54" x2="12.7" y2="116.84" width="0.1524" layer="91"/>
<junction x="22.86" y="129.54"/>
</segment>
</net>
<net name="IO0" class="0">
<segment>
<pinref part="A1" gate="G$1" pin="IO0"/>
<wire x1="157.48" y1="78.74" x2="154.94" y2="78.74" width="0.1524" layer="91"/>
<label x="154.94" y="78.74" size="1.27" layer="95" rot="R180" xref="yes"/>
</segment>
<segment>
<pinref part="R19" gate="G$1" pin="1"/>
<wire x1="111.76" y1="66.04" x2="116.84" y2="66.04" width="0.1524" layer="91"/>
<label x="116.84" y="66.04" size="1.27" layer="95" xref="yes"/>
</segment>
<segment>
<pinref part="Q3" gate="G$1" pin="C"/>
<wire x1="55.88" y1="58.42" x2="55.88" y2="55.88" width="0.1524" layer="91"/>
<wire x1="55.88" y1="55.88" x2="63.5" y2="55.88" width="0.1524" layer="91"/>
<label x="63.5" y="55.88" size="1.27" layer="95" xref="yes"/>
</segment>
<segment>
<pinref part="SELECT" gate="G$1" pin="1"/>
<wire x1="111.76" y1="33.02" x2="109.22" y2="33.02" width="0.1524" layer="91"/>
<label x="109.22" y="33.02" size="1.27" layer="95" rot="R180" xref="yes"/>
</segment>
</net>
<net name="N$15" class="0">
<segment>
<pinref part="R20" gate="G$1" pin="1"/>
<pinref part="Q2" gate="G$1" pin="B"/>
<wire x1="48.26" y1="78.74" x2="50.8" y2="78.74" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$16" class="0">
<segment>
<pinref part="R21" gate="G$1" pin="1"/>
<pinref part="Q3" gate="G$1" pin="B"/>
<wire x1="48.26" y1="63.5" x2="50.8" y2="63.5" width="0.1524" layer="91"/>
</segment>
</net>
<net name="DTR" class="0">
<segment>
<pinref part="R20" gate="G$1" pin="2"/>
<wire x1="38.1" y1="78.74" x2="33.02" y2="78.74" width="0.1524" layer="91"/>
<wire x1="38.1" y1="78.74" x2="38.1" y2="68.58" width="0.1524" layer="91"/>
<junction x="38.1" y="78.74"/>
<pinref part="Q3" gate="G$1" pin="E"/>
<wire x1="38.1" y1="68.58" x2="55.88" y2="68.58" width="0.1524" layer="91"/>
<label x="33.02" y="78.74" size="1.27" layer="95" rot="R180" xref="yes"/>
</segment>
<segment>
<pinref part="U2" gate="U1" pin="!DTR"/>
<wire x1="99.06" y1="162.56" x2="101.6" y2="162.56" width="0.1524" layer="91"/>
<label x="101.6" y="162.56" size="1.27" layer="95" xref="yes"/>
</segment>
</net>
<net name="RTS" class="0">
<segment>
<pinref part="R21" gate="G$1" pin="2"/>
<wire x1="38.1" y1="63.5" x2="35.56" y2="63.5" width="0.1524" layer="91"/>
<pinref part="Q2" gate="G$1" pin="E"/>
<wire x1="35.56" y1="63.5" x2="33.02" y2="63.5" width="0.1524" layer="91"/>
<wire x1="55.88" y1="73.66" x2="35.56" y2="73.66" width="0.1524" layer="91"/>
<wire x1="35.56" y1="73.66" x2="35.56" y2="63.5" width="0.1524" layer="91"/>
<junction x="35.56" y="63.5"/>
<label x="33.02" y="63.5" size="1.27" layer="95" rot="R180" xref="yes"/>
</segment>
<segment>
<pinref part="U2" gate="U1" pin="!RTS"/>
<wire x1="99.06" y1="165.1" x2="101.6" y2="165.1" width="0.1524" layer="91"/>
<label x="101.6" y="165.1" size="1.27" layer="95" xref="yes"/>
</segment>
</net>
<net name="SDA" class="0">
<segment>
<pinref part="A1" gate="G$1" pin="IO21"/>
<wire x1="157.48" y1="53.34" x2="154.94" y2="53.34" width="0.1524" layer="91"/>
<label x="154.94" y="53.34" size="1.27" layer="95" rot="R180" xref="yes"/>
</segment>
<segment>
<pinref part="J4" gate="G$1" pin="2"/>
<wire x1="88.9" y1="93.98" x2="91.44" y2="93.98" width="0.1524" layer="91"/>
<label x="91.44" y="93.98" size="1.27" layer="95" xref="yes"/>
</segment>
</net>
<net name="SCL" class="0">
<segment>
<pinref part="A1" gate="G$1" pin="IO22"/>
<wire x1="157.48" y1="50.8" x2="154.94" y2="50.8" width="0.1524" layer="91"/>
<label x="154.94" y="50.8" size="1.27" layer="95" rot="R180" xref="yes"/>
</segment>
<segment>
<pinref part="J4" gate="G$1" pin="1"/>
<wire x1="88.9" y1="91.44" x2="91.44" y2="91.44" width="0.1524" layer="91"/>
<label x="91.44" y="91.44" size="1.27" layer="95" xref="yes"/>
</segment>
</net>
<net name="BCK" class="0">
<segment>
<pinref part="J3" gate="G$1" pin="2"/>
<wire x1="17.78" y1="30.48" x2="20.32" y2="30.48" width="0.1524" layer="91"/>
<label x="20.32" y="30.48" size="1.27" layer="95" xref="yes"/>
</segment>
<segment>
<pinref part="A1" gate="G$1" pin="IO26"/>
<wire x1="187.96" y1="45.72" x2="190.5" y2="45.72" width="0.1524" layer="91"/>
<label x="190.5" y="45.72" size="1.27" layer="95" xref="yes"/>
</segment>
</net>
<net name="DIN" class="0">
<segment>
<pinref part="J3" gate="G$1" pin="3"/>
<wire x1="17.78" y1="33.02" x2="20.32" y2="33.02" width="0.1524" layer="91"/>
<label x="20.32" y="33.02" size="1.27" layer="95" xref="yes"/>
</segment>
<segment>
<pinref part="A1" gate="G$1" pin="IO4"/>
<wire x1="157.48" y1="73.66" x2="154.94" y2="73.66" width="0.1524" layer="91"/>
<label x="154.94" y="73.66" size="1.27" layer="95" rot="R180" xref="yes"/>
</segment>
</net>
<net name="LCK" class="0">
<segment>
<pinref part="J3" gate="G$1" pin="4"/>
<wire x1="17.78" y1="35.56" x2="20.32" y2="35.56" width="0.1524" layer="91"/>
<label x="20.32" y="35.56" size="1.27" layer="95" xref="yes"/>
</segment>
<segment>
<pinref part="A1" gate="G$1" pin="IO25"/>
<wire x1="157.48" y1="45.72" x2="154.94" y2="45.72" width="0.1524" layer="91"/>
<label x="154.94" y="45.72" size="1.27" layer="95" rot="R180" xref="yes"/>
</segment>
</net>
<net name="N$3" class="0">
<segment>
<pinref part="SW1" gate="G$1" pin="P"/>
<pinref part="U1" gate="G$1" pin="EN"/>
<wire x1="149.86" y1="152.4" x2="152.4" y2="152.4" width="0.1524" layer="91"/>
</segment>
</net>
</nets>
</sheet>
</sheets>
<errors>
<approved hash="201,1,30.48,134.62,VCC,3V3\, VBAT\, VBUS,,,,"/>
<approved hash="201,1,50.8,167.64,VCC,3V3\, VBAT\, VBUS,,,,"/>
<approved hash="201,1,55.88,167.64,VCC,3V3\, VBAT\, VBUS,,,,"/>
<approved hash="201,1,22.86,165.1,VCC,3V3\, VBAT\, VBUS,,,,"/>
<approved hash="201,1,154.94,132.08,VCC,3V3\, VBAT\, VBUS,,,,"/>
<approved hash="201,1,114.3,129.54,VCC,3V3\, VBAT\, VBUS,,,,"/>
<approved hash="201,1,91.44,60.96,VCC,3V3\, VBAT\, VBUS,,,,"/>
<approved hash="201,1,124.46,175.26,VCC,3V3\, VBAT\, VBUS,,,,"/>
<approved hash="201,1,137.16,175.26,VCC,3V3\, VBAT\, VBUS,,,,"/>
<approved hash="201,1,200.66,99.06,VCC,3V3\, VBAT\, VBUS,,,,"/>
<approved hash="201,1,190.5,170.18,VCC,3V3\, VBAT\, VBUS,,,,"/>
<approved hash="201,1,137.16,101.6,VCC,3V3\, VBAT\, VBUS,,,,"/>
<approved hash="201,1,175.26,162.56,VCC,3V3\, VBAT\, VBUS,,,,"/>
<approved hash="204,1,187.96,38.1,A1,EXP,,,,"/>
</errors>
</schematic>
</drawing>
<compatibility>
<note version="8.2" severity="warning">
Since Version 8.2, EAGLE supports online libraries. The ids
of those online libraries will not be understood (or retained)
with this version.
</note>
<note version="8.3" severity="warning">
Since Version 8.3, EAGLE supports URNs for individual library
assets (packages, symbols, and devices). The URNs of those assets
will not be understood (or retained) with this version.
</note>
<note version="8.3" severity="warning">
Since Version 8.3, EAGLE supports the association of 3D packages
with devices in libraries, schematics, and board files. Those 3D
packages will not be understood (or retained) with this version.
</note>
</compatibility>
</eagle>

license: MIT

license_type: permissive

branch_name: refs/heads/master


text:
/*
 * SurfaceTriangle.h
 *
 *  Created on: 20/ago/2014
 *      Author: sebastian
 */

#ifndef DESCRIPTOREVALUATION_BACKUP_SRC_DOCKINGMETHODS_SURFACETRIANGLE_H_
#define DESCRIPTOREVALUATION_BACKUP_SRC_DOCKINGMETHODS_SURFACETRIANGLE_H_

#include "../SurfacePatch/CompactPatchDescriptor.h"
#include <unordered_map>

#define ANGLE_MAX (M_PI / 4)
#define DIST_MAX 4
#define DIST_MIN 1

using namespace std;

/**
 * There are six possible ways to position a triangle over another one, depending on
 * the chosen vertex association. Let's call the first triangle A1B1C1, where A1, B1
 * and C1 are the names of its vertices, and let's call the second triangle A2B2C2
 * where A2, B2 and C2 are its vertices. There are six possible combinations:
 * 1) {(A1, A2), (B1, B2), (C1, C2)} = ABC
 * 2) {(A1, A2), (B1, C2), (C1, B2)} = ACB
 * 3) {(A1, B2), (B1, A2), (C1, C2)} = BAC
 * 4) {(A1, B2), (B1, C2), (C1, A2)} = BCA
 * 5) {(A1, C2), (B1, A2), (C1, B2)} = CAB
 * 6) {(A1, C2), (B1, B2), (C1, A2)} = CBA
 */
typedef enum vertexPermutation { ABC, ACB, BAC, BCA, CAB, CBA } vertexPermutation;

/**
 * This struct defines a triangle formed by three distinct patch centers
 * on the same molecular surface. The patch normals must be coherent with
 * the triangle plane (within a certain tolerance), and the triangle
 * vertexes must be within a certain distance interval, i.e. AB >= DIST_MIN,
 * and AB <= DIST_MAX, where A and B are generic vertexes of a triangle.
 * In order to generate e docking pose, two surface triangles must match,
 * i.e. there must be high similarity between corresponding surface patches,
 * the patch centers must be within some tolerance distance, and the
 * patch normals of the first triangle must be coherent with those on the
 * second one.
 */
typedef struct SurfaceTriangle {
	CompactPatchDescriptor const *p1, *p2, *p3;
	SurfaceTriangle();
	SurfaceTriangle(CompactPatchDescriptor const & p1,
			CompactPatchDescriptor const & p2,
			CompactPatchDescriptor const & p3);
	SurfaceTriangle(CompactPatchDescriptor const * p1,
			CompactPatchDescriptor const * p2,
			CompactPatchDescriptor const * p3);
	SurfaceTriangle(SurfaceTriangle const & tr);
	/**
	 * Copy assignment operator
	 */
	SurfaceTriangle & operator=(SurfaceTriangle const & tr);
	double getPerimeter();
	double getSArea();
	double getArea();
	friend ostream & operator<<(ostream & os, SurfaceTriangle const & t);

	static bool compatibleSurfaceTriangle(CompactPatchDescriptor const & p1,
			CompactPatchDescriptor const & p2, CompactPatchDescriptor const & p3);
	static void generateSurfaceTriangles(vector<CompactPatchDescriptor> const & patchList,
			vector<SurfaceTriangle> & surfTriangles);
	static void generateSurfaceTriangles(vector<CompactPatchDescriptor> const & patchList,
			int k, vector<SurfaceTriangle> & surfTriangles);
	static void generateSurfaceTriangles(vector<CompactPatchDescriptor> const & patchList,
			float radius, vector<SurfaceTriangle> & surfTriangles);
	static void createTriangleMultimap(vector<SurfaceTriangle> const & surfTriangleList,
			unordered_multimap<CompactPatchDescriptor const *, SurfaceTriangle const *> & surfTriangleMap);
	SurfaceTriangle trPermutation1(CompactPatchDescriptor const * cpd) const;
	SurfaceTriangle trPermutation2(CompactPatchDescriptor const * cpd) const;

	double getSimilarityScore(SurfaceTriangle const & t, vertexPermutation alignment = ABC) const;

private:
	/**
	 * Simple method to calculate Pearson's correlation between two
	 * three-dimensional arrays.
	 * @param x		first data array
	 * @param y		second data array
	 * @return		the Pearson's coefficient, a number in [-1, 1]
	 */
	static inline double correlation(double x[3], double y[3]) {
		double Ex = (x[0] + x[1] + x[2]) / 3;
		double Ey = (y[0] + y[1] + y[2]) / 3;

		double Sxx = 0, Syy = 0, Sxy = 0;

		for (int ii = 0; ii < 3; ++ii) {
			double dx = x[ii] - Ex;
			double dy = y[ii] - Ey;
			Sxx += dx * dx;
			Syy += dy * dy;
			Sxy += dx * dy;
		}
		/*
		 * TINY_VALUE could be something like 1e-20 and is used to "compensate"
		 * perfect correlation case (and avoid special verification).
		 */
		double TINY_VALUE = 1e-20;
		return Sxy / (sqrt(Sxx * Syy) + TINY_VALUE);
	};

} SurfaceTriangle;

#endif /* DESCRIPTOREVALUATION_BACKUP_SRC_DOCKINGMETHODS_SURFACETRIANGLE_H_ */

extension: h