← Commit history

orderable attributes: rebuild .lbr with adom-lbr 2.18.0 so MPN, MANUFACTURER and the distributor part numbers reach <technology> (LCSC_PN C2977777). The published library carried no attributes at all, so a BOM had nothing to buy from. Distributor PNs matched on exact MPN AND corroborating manufacturer.

Ray ·6f057122e0 · ·parent 346e121
2 files changed +25−5
ch340n.lbr+22−4
@@ -62,6 +62,18 @@   <smd name="6" x="2.4750" y="-0.6350" dx="1.9500" dy="0.6000" layer="1"/>   <smd name="7" x="2.4750" y="0.6350" dx="1.9500" dy="0.6000" layer="1"/>   <smd name="8" x="2.4750" y="1.9050" dx="1.9500" dy="0.6000" layer="1"/>+  <polygon width="0.1200" layer="21">+    <vertex x="-2.6000" y="2.4700"/>+    <vertex x="-2.8400" y="2.8000"/>+    <vertex x="-2.3600" y="2.8000"/>+  </polygon>+  <polygon width="0.1000" layer="51">+    <vertex x="-0.9750" y="2.4500"/>+    <vertex x="1.9500" y="2.4500"/>+    <vertex x="1.9500" y="-2.4500"/>+    <vertex x="-1.9500" y="-2.4500"/>+    <vertex x="-1.9500" y="1.4750"/>+  </polygon>   <wire x1="-2.0600" y1="2.5600" x2="2.0600" y2="2.5600" width="0.1200" layer="21"/>   <wire x1="-2.0600" y1="2.4650" x2="-2.0600" y2="2.5600" width="0.1200" layer="21"/>   <wire x1="-2.0600" y1="-2.5600" x2="-2.0600" y2="-2.4650" width="0.1200" layer="21"/>@@ -70,7 +82,7 @@   <wire x1="2.0600" y1="-2.5600" x2="-2.0600" y2="-2.5600" width="0.1200" layer="21"/>   <text x="0" y="3.480" size="1.27" layer="25" align="bottom-center">&gt;NAME</text>   <text x="0" y="-3.480" size="1.27" layer="27" align="top-center">&gt;VALUE</text>-<!--adom-pin1--><polygon width="0.0500" layer="21"><vertex x="-2.6000" y="2.4700"/><vertex x="-2.8400" y="2.8000"/><vertex x="-2.3600" y="2.8000"/></polygon></package>+</package> </packages> <symbols> <symbol name="CH340N">@@ -83,7 +95,7 @@   <pin name="UD+" x="15.24" y="0" length="middle" direction="io" rot="R180"/>   <pin name="UD-" x="15.24" y="-2.54" length="middle" direction="io" rot="R180"/>   <pin name="GND" x="-15.24" y="-2.54" length="middle" direction="pwr"/>-  <pin name="~{RTS}" x="15.24" y="5.08" length="middle" direction="out" rot="R180"/>+  <pin name="RTS" x="15.24" y="5.08" length="middle" direction="out" rot="R180"/>   <pin name="VCC" x="-15.24" y="-5.079999999999999" length="middle" direction="pwr"/>   <pin name="TXD" x="15.24" y="7.62" length="middle" direction="out" rot="R180"/>   <pin name="RXD" x="-15.24" y="7.62" length="middle" direction="in"/>@@ -102,13 +114,19 @@         <connect gate="G$1" pin="UD+" pad="1"/>         <connect gate="G$1" pin="UD-" pad="2"/>         <connect gate="G$1" pin="GND" pad="3"/>-        <connect gate="G$1" pin="~{RTS}" pad="4"/>+        <connect gate="G$1" pin="RTS" pad="4"/>         <connect gate="G$1" pin="VCC" pad="5"/>         <connect gate="G$1" pin="TXD" pad="6"/>         <connect gate="G$1" pin="RXD" pad="7"/>         <connect gate="G$1" pin="V3" pad="8"/>       </connects>-      <technologies><technology name=""/></technologies>+      <technologies>+        <technology name="">+          <attribute name="MPN" value="CH340N" constant="no"/>+          <attribute name="MANUFACTURER" value="WCH Jiangsu Qin Heng" constant="no"/>+          <attribute name="LCSC_PN" value="C2977777" constant="no"/>+        </technology>+      </technologies>     </device>   </devices> </deviceset>
page.json+3−1
@@ -26,7 +26,9 @@       "model_3d_step": "ch340n.step",       "lbr": "ch340n.lbr"     },-    "distributor_links": {},+    "distributor_links": {+      "lcsc": "C2977777"+    },     "pins": [       {         "number": "1",