← Commit history

Regenerate .lbr with adom-lbr 2.23.0: pin lengths map to the nearest EAGLE stop (overlapping pins fixed), unnamed pins take the pad number instead of ~ and ~@2, symbol body graphics are preserved, descriptions on the symbol, deviceset and package rows, and the package takes the footprint's own name so variants of one part share one footprint. Verified with lint and validate.

John Lauer ·ed7cf5aa60 ·1mo ago ·parent 783a52b
1 file changed +16−6
B2B-PH-K-S.lbr+16−6
@@ -52,8 +52,8 @@ <library> <description>Generic connector, single row, 01x02, script generated (kicad-library-utils/schlib/autogen/connector/)</description> <packages>-<package name="Conn_01x02">-  <description>Conn_01x02</description>+<package name="JST_PH_B2B-PH-K_1x02_P2.00mm_Vertical">+  <description>JST, 2.00 mm pitch. JST PH series connector, B2B-PH-K</description>   <pad name="1" x="0.0000" y="-0.0000" drill="0.7500" diameter="1.2000" shape="round"/>   <pad name="2" x="2.0000" y="-0.0000" drill="0.7500" diameter="1.7500" shape="long"/>   <wire x1="-2.0600" y1="1.8100" x2="4.0600" y2="1.8100" width="0.1200" layer="21"/>@@ -93,14 +93,17 @@ </packages> <symbols> <symbol name="Conn_01x02">+  <description>Generic connector, single row, 01x02, script generated (kicad-library-utils/schlib/autogen/connector/)</description>   <wire x1="-1.27" y1="1.27" x2="1.27" y2="1.27" width="0.254" layer="94"/>   <wire x1="1.27" y1="1.27" x2="1.27" y2="-3.81" width="0.254" layer="94"/>   <wire x1="1.27" y1="-3.81" x2="-1.27" y2="-3.81" width="0.254" layer="94"/>   <wire x1="-1.27" y1="-3.81" x2="-1.27" y2="1.27" width="0.254" layer="94"/>+  <rectangle x1="-1.2700" y1="0.1270" x2="0.0000" y2="-0.1270" layer="94"/>+  <rectangle x1="-1.2700" y1="-2.4130" x2="0.0000" y2="-2.6670" layer="94"/>   <text x="0" y="3.81" size="1.27" layer="95" align="bottom-center">&gt;NAME</text>   <text x="0" y="-6.35" size="1.27" layer="96" align="top-center">&gt;VALUE</text>-  <pin name="Pin_1" x="-5.08" y="0" length="middle" direction="pas"/>-  <pin name="Pin_2" x="-5.08" y="-2.54" length="middle" direction="pas"/>+  <pin name="Pin_1" x="-5.08" y="0" length="short" direction="pas"/>+  <pin name="Pin_2" x="-5.08" y="-2.54" length="short" direction="pas"/> </symbol> </symbols> <devicesets>@@ -110,12 +113,19 @@     <gate name="G$1" symbol="Conn_01x02" x="0" y="0"/>   </gates>   <devices>-    <device name="" package="Conn_01x02">+    <device name="" package="JST_PH_B2B-PH-K_1x02_P2.00mm_Vertical">       <connects>         <connect gate="G$1" pin="Pin_1" pad="1"/>         <connect gate="G$1" pin="Pin_2" pad="2"/>       </connects>-      <technologies><technology name=""/></technologies>+      <technologies>+        <technology name="">+          <attribute name="MPN" value="B2B-PH-K-S" constant="no"/>+          <attribute name="MANUFACTURER" value="JST" constant="no"/>+          <attribute name="MOUSER_PN" value="https://www.mouser.com/c/?q=B2B-PH-K-S" constant="no"/>+          <attribute name="DIGIKEY_PN" value="https://www.digikey.com/en/products/result?keywords=B2B-PH-K-S" constant="no"/>+        </technology>+      </technologies>     </device>   </devices> </deviceset>