<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="7.3.0">
<drawing>
<board>
<plain>
<wire x1="1.5" y1="0" x2="18.5" y2="0" width="0" layer="20"/>
<wire x1="20" y1="1.5" x2="20" y2="18.5" width="0" layer="20"/>
<wire x1="1.5" y1="0" x2="0" y2="1.5" width="0" layer="20" curve="-90"/>
<wire x1="18.5" y1="0" x2="20" y2="1.5" width="0" layer="20" curve="90"/>
<wire x1="1.5" y1="20" x2="18.5" y2="20" width="0" layer="20"/>
<wire x1="0" y1="18.5" x2="1.5" y2="20" width="0" layer="20" curve="-90"/>
<wire x1="18.5" y1="20" x2="20" y2="18.5" width="0" layer="20" curve="-90"/>
<wire x1="0" y1="1.5" x2="0" y2="18.5" width="0" layer="20"/>
<text>CS</text>
<text>CL</text>
<text>D0</text>
<text>3V3 5V</text>
</plain>
<libraries>
<library name="adafruit">
<packages>
<package name="C0603K">
<description>&lt;b&gt;Ceramic Chip Capacitor KEMET 0603 Reflow solder&lt;/b&gt;&lt;p&gt;
Metric Code Size 1608</description>
</package>
<package name="CHIPLED_0603">
<description>&lt;b&gt;CHIPLED&lt;/b&gt;&lt;p&gt;
Source: http://www.osram.convergy.de/ ... LG_LY Q971.pdf</description>
</package>
<package name="R0603">
<description>&lt;b&gt;RESISTOR&lt;/b&gt;&lt;p&gt;
chip</description>
</package>
</packages>
</library>
<library name="SparkFun-Retired">
<description>&lt;h3&gt;SparkFun Electronics' preferred foot prints&lt;/h3&gt;
In this library you'll find all manner of retired footprints for resistors, capacitors, board names, ICs, etc., that are no longer used in our catalog.&lt;br&gt;&lt;br&gt;
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 www.sparkfun.com.
&lt;br&gt;&lt;br&gt;
&lt;b&gt;Licensing:&lt;/b&gt;Creative Commons ShareAlike 4.0 International - https://creativecommons.org/licenses/by-sa/4.0/
&lt;br&gt;&lt;br&gt;
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="SJ_3_PASTE1&amp;2&amp;3">
</package>
</packages>
</library>
<library name="austriamicrosystems">
<packages>
<package name="SSOP16">
<description>&lt;b&gt;Small Shrink Outline Package&lt;/b&gt; SSOP 16 (5.3mm x 6.2mm)&lt;p&gt;
Source: www.austriamicrosystems.com .. AS5040DataSheetRev12.pdf</description>
</package>
</packages>
</library>
<library name="jst-ph">
<packages>
<package name="JST-PH4">
</package>
</packages>
</library>
<library name="SparkFun-Connectors">
<description>&lt;h3&gt;SparkFun Electronics' preferred foot prints&lt;/h3&gt;
In this library you'll find connectors and sockets- basically anything that can be plugged into or onto.&lt;br&gt;&lt;br&gt;
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 www.sparkfun.com.
&lt;br&gt;&lt;br&gt;
&lt;b&gt;Licensing:&lt;/b&gt; Creative Commons ShareAlike 4.0 International - https://creativecommons.org/licenses/by-sa/4.0/ 
&lt;br&gt;&lt;br&gt;
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="1X03">
</package>
</packages>
</library>
<library name="SparkFun-Electromechanical">
<description>&lt;h3&gt;SparkFun Electronics' preferred foot prints&lt;/h3&gt;
In this library you'll find anything that moves- switches, relays, buttons, potentiometers. Also, anything that goes on a board but isn't electrical in nature- screws, standoffs, etc.&lt;br&gt;&lt;br&gt;
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 www.sparkfun.com.
&lt;br&gt;&lt;br&gt;
&lt;b&gt;Licensing:&lt;/b&gt; Creative Commons ShareAlike 4.0 International - https://creativecommons.org/licenses/by-sa/4.0/ 
&lt;br&gt;&lt;br&gt;
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="STAND-OFF">
<description>&lt;b&gt;Stand Off&lt;/b&gt;&lt;p&gt;
This is the mechanical footprint for a #4 phillips button head screw. Use the keepout ring to avoid running the screw head into surrounding components. SKU : PRT-00447</description>
</package>
</packages>
</library>
</libraries>
<attributes>
</attributes>
<variantdefs>
</variantdefs>
<elements>
<element name="C1" library="adafruit" package="C0603K" value="100n">
<attribute name="NAME"/>
<attribute name="VALUE"/>
</element>
<element name="C2" library="adafruit" package="C0603K" value="100n">
<attribute name="NAME"/>
<attribute name="VALUE"/>
</element>
<element name="DEC" library="adafruit" package="CHIPLED_0603" value="">
<attribute name="NAME"/>
<attribute name="VALUE"/>
</element>
<element name="INC" library="adafruit" package="CHIPLED_0603" value="">
<attribute name="NAME"/>
<attribute name="VALUE"/>
</element>
<element name="R1" library="adafruit" package="R0603" value="1k">
<attribute name="NAME"/>
<attribute name="VALUE"/>
</element>
<element name="R2" library="adafruit" package="R0603" value="1k">
<attribute name="NAME"/>
<attribute name="VALUE"/>
</element>
<element name="R5" library="adafruit" package="R0603" value="10k">
<attribute name="NAME"/>
<attribute name="VALUE"/>
</element>
<element name="3V35V" library="SparkFun-Retired" package="SJ_3_PASTE1&amp;2&amp;3" value="">
<attribute name="VALUE"/>
</element>
<element name="5040" library="austriamicrosystems" package="SSOP16" value="AS5040">
<attribute name="NAME"/>
<attribute name="VALUE"/>
</element>
<element name="P1" library="jst-ph" package="JST-PH4" value=""/>
<element name="JP1" library="SparkFun-Connectors" package="1X03" value="">
<attribute name="VALUE"/>
</element>
<element name="STANDOFF1" library="SparkFun-Electromechanical" package="STAND-OFF" value="STAND-OFF"/>
<element name="STANDOFF2" library="SparkFun-Electromechanical" package="STAND-OFF" value="STAND-OFF"/>
</elements>
<signals>
<signal name="N$1">
<contactref element="R2" pad="1"/>
<contactref element="INC" pad="A"/>
</signal>
<signal name="N$2">
<contactref element="R1" pad="1"/>
<contactref element="DEC" pad="A"/>
</signal>
<signal name="N$6">
<contactref element="5040" pad="16"/>
<contactref element="C1" pad="1"/>
<contactref element="3V35V" pad="3"/>
</signal>
<signal name="N$7">
<contactref element="5040" pad="15"/>
<contactref element="C2" pad="1"/>
<contactref element="3V35V" pad="1"/>
</signal>
<signal name="A">
<contactref element="5040" pad="3"/>
<contactref element="P1" pad="2"/>
</signal>
<signal name="B">
<contactref element="5040" pad="4"/>
<contactref element="P1" pad="3"/>
</signal>
<signal name="D0">
<contactref element="5040" pad="9"/>
<contactref element="JP1" pad="3"/>
</signal>
<signal name="CLK">
<contactref element="5040" pad="10"/>
<contactref element="JP1" pad="2"/>
</signal>
<signal name="CS">
<contactref element="5040" pad="11"/>
<contactref element="R5" pad="1"/>
<contactref element="JP1" pad="1"/>
</signal>
<signal name="VCC">
<contactref element="3V35V" pad="2"/>
<contactref element="R2" pad="2"/>
<contactref element="R1" pad="2"/>
<contactref element="P1" pad="4"/>
</signal>
<signal name="GND">
<contactref element="5040" pad="7"/>
<contactref element="C1" pad="2"/>
<contactref element="C2" pad="2"/>
<contactref element="R5" pad="2"/>
<contactref element="P1" pad="1"/>
</signal>
<signal name="N$3">
<contactref element="INC" pad="C"/>
<contactref element="5040" pad="1"/>
</signal>
<signal name="N$4">
<contactref element="5040" pad="2"/>
<contactref element="DEC" pad="C"/>
</signal>
</signals>
</board>
</drawing>
</eagle>
