<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="9.6.1">
<drawing>
<board>
<plain>
<wire x1="-4.7752" y1="1.2192" x2="38.08" y2="1.27" width="0" layer="20"/>
<wire x1="38.08" y1="1.27" x2="38.0746" y2="11.43" width="0" layer="20"/>
<wire x1="38.0746" y1="11.43" x2="-4.7752" y2="11.3792" width="0" layer="20"/>
<wire x1="-4.7752" y1="11.3792" x2="-4.7752" y2="1.2192" width="0" layer="20"/>
<text>PicoPower! By TinLethax
Designed in Thailand</text>
<text>STM8L151F3U6</text>
<text>rev2</text>
<text>VCC</text>
<text>A0</text>
<text>GND</text>
<text>D0</text>
<text>C6</text>
<text>A1</text>
<text>C5</text>
<text>C4</text>
<text>C1</text>
<text>C0</text>
<text>A2</text>
<text>A3</text>
<text>B0</text>
<text>B1</text>
<text>B2</text>
<text>B3</text>
<text>B4</text>
<text>B5</text>
<text>B6</text>
<text>B7</text>
<text>p1c0
p0w3r</text>
<text>p1c0
p0w3r</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="R0603">
<description>&lt;b&gt;RESISTOR&lt;/b&gt;&lt;p&gt;
chip</description>
</package>
<package name="1X10-BIG">
</package>
</packages>
</library>
<library name="SparkFun-Switches">
<description>&lt;h3&gt;SparkFun Switches, Buttons, Encoders&lt;/h3&gt;
In this library you'll find switches, buttons, joysticks, and anything that moves to create or disrupt an electrical connection.
&lt;br&gt;
&lt;br&gt;
We've spent an enormous amount of time creating and checking these footprints and parts, but it is &lt;b&gt; the end user's responsibility&lt;/b&gt; to ensure correctness and suitablity for a given componet or application. 
&lt;br&gt;
&lt;br&gt;If you enjoy using this library, please buy one of our products at &lt;a href=" www.sparkfun.com"&gt;SparkFun.com&lt;/a&gt;.
&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="TACTILE_SWITCH_SMD_6.0X3.5MM">
<description>&lt;h3&gt;Momentary Switch (Pushbutton) - SPST - SMD, 6.0 x 3.5 mm&lt;/h3&gt;
&lt;p&gt;Normally-open (NO) SPST momentary switches (buttons, pushbuttons).&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.sparkfun.com/datasheets/Components/1101.pdf"&gt;Datasheet&lt;/a&gt;&lt;/p&gt;</description>
</package>
</packages>
</library>
<library name="KE_DIP_SWITCH_2">
<packages>
<package name="SOIC127P835X230-4N">
<description>4-SOIC, 1.27 mm pitch, 8.35 mm span, 3.95 X 5.35 X 2.30 mm body
&lt;p&gt;4-pin SOIC package with 1.27 mm pitch, 8.35 mm span with body size 3.95 X 5.35 X 2.30 mm&lt;/p&gt;</description>
</package>
</packages>
</library>
<library name="STM8L151F3">
<packages>
<package name="UFQFPN-20">
<description>UFQFPN20 Package 3x3mm</description>
</package>
</packages>
</library>
<library name="CH330">
<packages>
<package name="SOIC127P600X150-8N">
<description>8-SOIC, 1.27 mm pitch, 6.00 mm span, 4.95 X 3.95 X 1.50 mm body
&lt;p&gt;8-pin SOIC package with 1.27 mm pitch, 6.00 mm span with body size 4.95 X 3.95 X 1.50 mm&lt;/p&gt;</description>
</package>
</packages>
</library>
<library name="con-hirose">
<description>&lt;b&gt;Hirose Connectors&lt;/b&gt;&lt;p&gt;
www.hirose.co.jp&lt;p&gt;
Include : &lt;br&gt;
con-hirose-df12d(3.0)60dp0.5v80.lbr from Bob Starr &amp;lt;rtzaudio@mindspring.com&amp;gt;&lt;br&gt;
con-hirose.lbr from Bob Starr &amp;lt;rtzaudio@mindspring.com&amp;gt;&lt;br&gt;</description>
<packages>
<package name="UX60A-MB-5ST">
<description>&lt;b&gt;MINI USB Connector HI-SPEED Certified&lt;/b&gt; Metal Shield SMT Type Without Positioning Post&lt;p&gt;
Source: http://www.hirose.co.jp/cataloge_hp/e24000019.pdf</description>
</package>
</packages>
</library>
<library name="AMS1117">
<packages>
<package name="SOT223">
<description>&lt;b&gt;Smal Outline Transistor&lt;/b&gt;</description>
</package>
</packages>
</library>
</libraries>
<attributes>
</attributes>
<variantdefs>
</variantdefs>
<elements>
<element name="C1" library="adafruit" package="C0603K" value="100nF">
<attribute name="NAME"/>
<attribute name="VALUE"/>
</element>
<element name="C2" library="adafruit" package="C0603K" value="100uF">
<attribute name="NAME"/>
<attribute name="VALUE"/>
</element>
<element name="C3" library="adafruit" package="C0603K" value="100nF">
<attribute name="NAME"/>
<attribute name="VALUE"/>
</element>
<element name="C4" library="adafruit" package="C0603K" value="100nF">
<attribute name="NAME"/>
<attribute name="VALUE"/>
</element>
<element name="R1" library="adafruit" package="R0603" value="0R">
<attribute name="NAME"/>
<attribute name="VALUE"/>
</element>
<element name="R2" library="adafruit" package="R0603" value="10k">
<attribute name="NAME"/>
<attribute name="VALUE"/>
</element>
<element name="S1" library="SparkFun-Switches" package="TACTILE_SWITCH_SMD_6.0X3.5MM" value="">
<attribute name="NAME"/>
<attribute name="PROD_ID" value="SWCH-00815"/>
<attribute name="SF_SKU" value="COM-08229"/>
<attribute name="VALUE"/>
</element>
<element name="U$1" library="adafruit" package="1X10-BIG" value="">
<attribute name="NAME"/>
<attribute name="VALUE"/>
</element>
<element name="U$2" library="adafruit" package="1X10-BIG" value="">
<attribute name="NAME"/>
<attribute name="VALUE"/>
</element>
<element name="2DIP" library="KE_DIP_SWITCH_2" package="SOIC127P835X230-4N" value="2DIPSWITCH">
<attribute name="NAME"/>
<attribute name="PACKAGE" value="SOP4"/>
<attribute name="VALUE"/>
</element>
<element name="STM8L" library="STM8L151F3" package="UFQFPN-20" value="STM8L151F3"/>
<element name="CH330" library="CH330" package="SOIC127P600X150-8N" value="CH330">
<attribute name="DESCRIPTION" value="CH330 Super small Serial to USB chip  "/>
<attribute name="NAME"/>
<attribute name="PACKAGE" value="SOP8"/>
<attribute name="PARTNO" value="CH330"/>
<attribute name="VALUE"/>
</element>
<element name="MINIUSB" library="con-hirose" package="UX60A-MB-5ST" value="">
<attribute name="MF" value=""/>
<attribute name="MPN" value=""/>
<attribute name="NAME"/>
<attribute name="OC_FARNELL" value="unknown"/>
<attribute name="OC_NEWARK" value="unknown"/>
<attribute name="POPULARITY" value="1"/>
<attribute name="VALUE"/>
</element>
<element name="U$3" library="AMS1117" package="SOT223" value="AMS1117">
<attribute name="NAME"/>
<attribute name="PARTNO" value="AMS1117"/>
<attribute name="VALUE"/>
</element>
</elements>
<signals>
<signal name="N$1">
<contactref element="CH330" pad="7"/>
<contactref element="2DIP" pad="1"/>
</signal>
<signal name="N$3">
<contactref element="2DIP" pad="4"/>
<contactref element="STM8L" pad="PA2"/>
<contactref element="U$1" pad="1"/>
</signal>
<signal name="N$4">
<contactref element="2DIP" pad="3"/>
<contactref element="STM8L" pad="PA3"/>
<contactref element="U$1" pad="2"/>
</signal>
<signal name="N$2">
<contactref element="CH330" pad="6"/>
<contactref element="2DIP" pad="2"/>
</signal>
<signal name="N$5">
<contactref element="CH330" pad="5"/>
<contactref element="C1" pad="2"/>
<contactref element="R1" pad="1"/>
</signal>
<signal name="GND">
<contactref element="C1" pad="1"/>
<contactref element="CH330" pad="3"/>
<contactref element="STM8L" pad="VSS"/>
<contactref element="C2" pad="1"/>
<contactref element="C3" pad="2"/>
<contactref element="S1" pad="1"/>
<contactref element="C4" pad="1"/>
<contactref element="U$2" pad="3"/>
<contactref element="MINIUSB" pad="5"/>
<contactref element="U$3" pad="1"/>
</signal>
<signal name="VCC">
<contactref element="MINIUSB" pad="1"/>
<contactref element="U$3" pad="3"/>
</signal>
<signal name="N$6">
<contactref element="C3" pad="1"/>
<contactref element="CH330" pad="8"/>
<contactref element="STM8L" pad="VDD"/>
<contactref element="C2" pad="2"/>
<contactref element="R2" pad="2"/>
<contactref element="U$2" pad="1"/>
<contactref element="U$3" pad="2"/>
<contactref element="R1" pad="2"/>
</signal>
<signal name="N$8">
<contactref element="STM8L" pad="PB0"/>
<contactref element="U$1" pad="3"/>
</signal>
<signal name="N$9">
<contactref element="STM8L" pad="PB1"/>
<contactref element="U$1" pad="4"/>
</signal>
<signal name="N$10">
<contactref element="STM8L" pad="PB2"/>
<contactref element="U$1" pad="5"/>
</signal>
<signal name="N$11">
<contactref element="STM8L" pad="PB3"/>
<contactref element="U$1" pad="6"/>
</signal>
<signal name="N$12">
<contactref element="STM8L" pad="PB4"/>
<contactref element="U$1" pad="7"/>
</signal>
<signal name="N$13">
<contactref element="STM8L" pad="PB5"/>
<contactref element="U$1" pad="8"/>
</signal>
<signal name="N$14">
<contactref element="STM8L" pad="PB6"/>
<contactref element="U$1" pad="9"/>
</signal>
<signal name="N$15">
<contactref element="U$1" pad="10"/>
<contactref element="STM8L" pad="PB7"/>
</signal>
<signal name="N$16">
<contactref element="STM8L" pad="PC0"/>
<contactref element="U$2" pad="10"/>
</signal>
<signal name="N$17">
<contactref element="STM8L" pad="PC1"/>
<contactref element="U$2" pad="9"/>
</signal>
<signal name="N$18">
<contactref element="STM8L" pad="PC4"/>
<contactref element="U$2" pad="8"/>
</signal>
<signal name="N$19">
<contactref element="STM8L" pad="PC5"/>
<contactref element="U$2" pad="7"/>
</signal>
<signal name="N$20">
<contactref element="STM8L" pad="PC6"/>
<contactref element="U$2" pad="6"/>
</signal>
<signal name="N$22">
<contactref element="STM8L" pad="NRST/PA1"/>
<contactref element="U$2" pad="4"/>
<contactref element="R2" pad="1"/>
<contactref element="S1" pad="2"/>
<contactref element="C4" pad="2"/>
</signal>
<signal name="N$23">
<contactref element="STM8L" pad="PA0"/>
<contactref element="U$2" pad="2"/>
</signal>
<signal name="N$24">
<contactref element="STM8L" pad="PD0"/>
<contactref element="U$2" pad="5"/>
</signal>
<signal name="N$21">
<contactref element="MINIUSB" pad="2"/>
<contactref element="CH330" pad="2"/>
</signal>
<signal name="N$25">
<contactref element="MINIUSB" pad="3"/>
<contactref element="CH330" pad="1"/>
</signal>
</signals>
</board>
</drawing>
</eagle>
